Class UnboundLDAPConnector
java.lang.Object
org.graylog.security.authservice.ldap.UnboundLDAPConnector
-
Constructor Summary
ConstructorDescriptionUnboundLDAPConnector
(int connectionTimeout, TLSProtocolsConfiguration tlsConfiguration, TrustManagerProvider trustManagerProvider, EncryptedValueService encryptedValueService) -
Method Summary
Modifier and TypeMethodDescriptionboolean
authenticate
(com.unboundid.ldap.sdk.LDAPConnection connection, String bindDn, EncryptedValue password) com.unboundid.ldap.sdk.LDAPConnection
connect
(LDAPConnectorConfig ldapConfig) createLDAPEntry
(com.unboundid.ldap.sdk.Entry entry, String uniqueIdAttribute) createLDAPUser
(UnboundLDAPConfig config, com.unboundid.ldap.sdk.Entry entry) createLDAPUser
(UnboundLDAPConfig config, LDAPEntry ldapEntry) com.google.common.collect.ImmutableList<LDAPEntry>
search
(com.unboundid.ldap.sdk.LDAPConnection connection, String searchBase, com.unboundid.ldap.sdk.Filter filter, String uniqueIdAttribute, Set<String> attributes) searchUserByPrincipal
(com.unboundid.ldap.sdk.LDAPConnection connection, UnboundLDAPConfig config, String principal) searchUserByUniqueId
(com.unboundid.ldap.sdk.LDAPConnection connection, UnboundLDAPConfig config, byte[] uniqueId)
-
Constructor Details
-
UnboundLDAPConnector
@Inject public UnboundLDAPConnector(@Named("ldap_connection_timeout") int connectionTimeout, TLSProtocolsConfiguration tlsConfiguration, TrustManagerProvider trustManagerProvider, EncryptedValueService encryptedValueService)
-
-
Method Details
-
connect
public com.unboundid.ldap.sdk.LDAPConnection connect(LDAPConnectorConfig ldapConfig) throws GeneralSecurityException, com.unboundid.ldap.sdk.LDAPException - Throws:
GeneralSecurityException
com.unboundid.ldap.sdk.LDAPException
-
search
public com.google.common.collect.ImmutableList<LDAPEntry> search(com.unboundid.ldap.sdk.LDAPConnection connection, String searchBase, com.unboundid.ldap.sdk.Filter filter, String uniqueIdAttribute, Set<String> attributes) throws com.unboundid.ldap.sdk.LDAPException - Throws:
com.unboundid.ldap.sdk.LDAPException
-
searchUserByPrincipal
public Optional<LDAPUser> searchUserByPrincipal(com.unboundid.ldap.sdk.LDAPConnection connection, UnboundLDAPConfig config, String principal) throws com.unboundid.ldap.sdk.LDAPException - Throws:
com.unboundid.ldap.sdk.LDAPException
-
searchUserByUniqueId
public Optional<LDAPUser> searchUserByUniqueId(com.unboundid.ldap.sdk.LDAPConnection connection, UnboundLDAPConfig config, byte[] uniqueId) throws com.unboundid.ldap.sdk.LDAPException - Throws:
com.unboundid.ldap.sdk.LDAPException
-
authenticate
public boolean authenticate(com.unboundid.ldap.sdk.LDAPConnection connection, String bindDn, EncryptedValue password) throws com.unboundid.ldap.sdk.LDAPException - Throws:
com.unboundid.ldap.sdk.LDAPException
-
createLDAPEntry
-
createLDAPUser
-
createLDAPUser
-