es.caib.bpm.utils
Class LDAPManager

java.lang.Object
  extended by es.caib.bpm.utils.LDAPManager

public class LDAPManager
extends java.lang.Object


Field Summary
 org.apache.log4j.Logger log
           
 
Constructor Summary
LDAPManager(java.lang.String[] params)
          Constructor
 
Method Summary
 void closeConnection()
          Cierra la conexion con el directorio LDAP.
 com.novell.ldap.LDAPConnection getConnection()
          obtiene conexión con el directorio LDAP
 java.lang.String getSearchBase()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public org.apache.log4j.Logger log
Constructor Detail

LDAPManager

public LDAPManager(java.lang.String[] params)
Constructor

Parameters:
params - Parámetros de configuración:
  • 0 = código de usuario LDAP
  • 1 = contraseña de acceso LDAP
  • 2 = host
  • 3 = Rama base del arbol
  • Method Detail

    getConnection

    public com.novell.ldap.LDAPConnection getConnection()
                                                 throws java.io.UnsupportedEncodingException,
                                                        com.novell.ldap.LDAPException
    obtiene conexión con el directorio LDAP

    Throws:
    InternalErrorException - imposible conectar con el servidor LDAP
    java.io.UnsupportedEncodingException
    com.novell.ldap.LDAPException

    closeConnection

    public void closeConnection()
                         throws com.novell.ldap.LDAPException
    Cierra la conexion con el directorio LDAP.

    Throws:
    com.novell.ldap.LDAPException

    getSearchBase

    public java.lang.String getSearchBase()


    Copyright © 2012 Direcció General de Tecnologia i Comunicacions. Govern de les Illes Balears. All Rights Reserved.