Class LDAPConnectionFactory
java.lang.Object
de.xima.fc.ldap.LDAPConnectionFactory
Deprecated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.unboundid.ldap.sdk.LDAPConnectiongetConnection(LDAPGruppe gruppe, MandantLdapData data) Deprecated.MandantLdapData&LDAPGruppeare deprecated since version 8.0.0.static com.unboundid.ldap.sdk.LDAPConnectiongetConnection(LDAPGruppe gruppe, MandantLdapData data, String username, String password) Deprecated.MandantLdapData&LDAPGruppeare deprecated since version 8.0.0.static com.unboundid.ldap.sdk.LDAPConnectiongetConnection(LDAPZugriff zugriff) Deprecated.static com.unboundid.ldap.sdk.LDAPConnectiongetConnection(MandantLdapData data) Deprecated.MandantLdapDatais deprecated since version 8.0.0.static com.unboundid.ldap.sdk.LDAPConnectiongetConnection(MandantLdapData data, String username, String password) Deprecated.MandantLdapDatais deprecated since version 8.0.0.static com.unboundid.ldap.sdk.LDAPConnectiongetConnection(String host, int port, String bindDN, String bindPassword, boolean useSSL, Integer hopCount) Deprecated.Since 8.5.0.static com.unboundid.ldap.sdk.LDAPConnectiongetConnection(SocketFactory socketFactory, com.unboundid.ldap.sdk.LDAPConnectionOptions options, String host, int port, String bindDN, String bindPassword) Deprecated.static com.unboundid.ldap.sdk.LDAPConnectionDeprecated.static com.unboundid.ldap.sdk.LDAPConnectionDeprecated.static booleantestConnection(String host, int port, String bindDN, String bindPassword, boolean useSSL, Integer hopCount) Deprecated.Since 8.5.0.
-
Constructor Details
-
LDAPConnectionFactory
public LDAPConnectionFactory()Deprecated.
-
-
Method Details
-
getConnection
public static com.unboundid.ldap.sdk.LDAPConnection getConnection(SocketFactory socketFactory, com.unboundid.ldap.sdk.LDAPConnectionOptions options, String host, int port, String bindDN, String bindPassword) throws com.unboundid.ldap.sdk.LDAPException Deprecated.- Throws:
com.unboundid.ldap.sdk.LDAPException
-
getConnection
@Deprecated public static com.unboundid.ldap.sdk.LDAPConnection getConnection(String host, int port, String bindDN, String bindPassword, boolean useSSL, Integer hopCount) throws GeneralSecurityException, com.unboundid.ldap.sdk.LDAPException Deprecated.Since 8.5.0. UseILdapService.createConnection(LdapConnectionConfig)instead.Creates a new LDAP connection.- Parameters:
host- The LDAP server host.port- The LDAP server port.bindDN- The bind DN (Distinguished Name).bindPassword- The bind password.useSSL- Whether to use SSL.hopCount- The referral hop count.- Returns:
- A new LDAP connection.
- Throws:
GeneralSecurityException- If the connection could not be established due to a security issue.com.unboundid.ldap.sdk.LDAPException- If the connection could not be established.- See Also:
-
getConnection
public static com.unboundid.ldap.sdk.LDAPConnection getConnection(LDAPZugriff zugriff) throws com.unboundid.ldap.sdk.LDAPException, GeneralSecurityException Deprecated.- Throws:
com.unboundid.ldap.sdk.LDAPExceptionGeneralSecurityException
-
getConnection
@Deprecated public static com.unboundid.ldap.sdk.LDAPConnection getConnection(MandantLdapData data) throws GeneralSecurityException, com.unboundid.ldap.sdk.LDAPException Deprecated.MandantLdapDatais deprecated since version 8.0.0. LDAP-Connections for login may be set up asIAuthenticators.- Throws:
GeneralSecurityExceptioncom.unboundid.ldap.sdk.LDAPException
-
getConnection
@Deprecated public static com.unboundid.ldap.sdk.LDAPConnection getConnection(MandantLdapData data, String username, String password) throws GeneralSecurityException, com.unboundid.ldap.sdk.LDAPException Deprecated.MandantLdapDatais deprecated since version 8.0.0. LDAP-Connections for login may be set up asIAuthenticators.- Throws:
GeneralSecurityExceptioncom.unboundid.ldap.sdk.LDAPException
-
getConnection
@Deprecated public static com.unboundid.ldap.sdk.LDAPConnection getConnection(LDAPGruppe gruppe, MandantLdapData data) throws com.unboundid.ldap.sdk.LDAPException, GeneralSecurityException Deprecated.MandantLdapData&LDAPGruppeare deprecated since version 8.0.0. LDAP-Connections for login may be set up asIAuthenticators.- Throws:
com.unboundid.ldap.sdk.LDAPExceptionGeneralSecurityException
-
getConnection
@Deprecated public static com.unboundid.ldap.sdk.LDAPConnection getConnection(LDAPGruppe gruppe, MandantLdapData data, String username, String password) throws com.unboundid.ldap.sdk.LDAPException, GeneralSecurityException Deprecated.MandantLdapData&LDAPGruppeare deprecated since version 8.0.0. LDAP-Connections for login may be set up asIAuthenticators.- Throws:
com.unboundid.ldap.sdk.LDAPExceptionGeneralSecurityException
-
getKerberosConnection
public static com.unboundid.ldap.sdk.LDAPConnection getKerberosConnection() throws com.unboundid.ldap.sdk.LDAPException, GeneralSecurityExceptionDeprecated.- Throws:
com.unboundid.ldap.sdk.LDAPExceptionGeneralSecurityException
-
getNTLMLConnection
@Deprecated public static com.unboundid.ldap.sdk.LDAPConnection getNTLMLConnection() throws com.unboundid.ldap.sdk.LDAPException, GeneralSecurityExceptionDeprecated.NTLM cannot be configured anymore in the UI and will be removed in the future. Use Kerberos instead.- Returns:
- A new LDAP connection
- Throws:
com.unboundid.ldap.sdk.LDAPException- If the connection could not be establishedGeneralSecurityException- If the connection could not be established due to a security issue.
-
testConnection
@Deprecated public static boolean testConnection(String host, int port, String bindDN, String bindPassword, boolean useSSL, Integer hopCount) throws GeneralSecurityException, com.unboundid.ldap.sdk.LDAPException Deprecated.Since 8.5.0. Don't use the LDAPConnectionFactory statically anymore. Use an instance of the LDAPConnectionFactory instead and create a connection withILdapService.testConnection(LdapConnectionConfig)Tests the connection to an LDAP server.- Parameters:
host- The LDAP server host.port- The LDAP server port.bindDN- The bind DN (Distinguished Name).bindPassword- The bind password.useSSL- Whether to use SSL.hopCount- The referral hop count.- Returns:
- True if the connection is successful, false otherwise.
- Throws:
GeneralSecurityException- If the connection could not be established due to a security issue.com.unboundid.ldap.sdk.LDAPException- If the connection could not be established.- See Also:
-
ILdapServiceinstead to create LDAP connections.