Class UnboundLDAPConnector

java.lang.Object
org.graylog.security.authservice.ldap.UnboundLDAPConnector

@Singleton public class UnboundLDAPConnector extends Object
  • Constructor Details

  • 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

      public LDAPEntry createLDAPEntry(com.unboundid.ldap.sdk.Entry entry, String uniqueIdAttribute)
    • createLDAPUser

      public LDAPUser createLDAPUser(UnboundLDAPConfig config, com.unboundid.ldap.sdk.Entry entry)
    • createLDAPUser

      public LDAPUser createLDAPUser(UnboundLDAPConfig config, LDAPEntry ldapEntry)