Class AbstractLdapConnection

    • Field Detail

      • schemaManager

        protected SchemaManager schemaManager
        the schema manager
      • messageId

        protected AtomicInteger messageId
        A Message ID which is incremented for each operation
    • Constructor Detail

      • AbstractLdapConnection

        protected AbstractLdapConnection()
        Creates a new instance of an AbstractLdapConnection
      • AbstractLdapConnection

        protected AbstractLdapConnection​(LdapApiService codec)
    • Method Detail

      • bind

        public void bind​(Dn name)
                  throws LdapException
        Unauthenticated authentication bind on a server.
        Specified by:
        bind in interface LdapConnection
        Parameters:
        name - The name used to authenticate the user.
        Throws:
        LdapException - if some error occurred
      • bind

        public void bind​(String name)
                  throws LdapException
        Unauthenticated authentication bind on a server.
        Specified by:
        bind in interface LdapConnection
        Parameters:
        name - The name used to authenticate the user. It must be a valid distinguished name.
        Throws:
        LdapException - if some error occurred
      • bind

        public void bind​(String name,
                         String credentials)
                  throws LdapException
        Simple bind on a server.
        Specified by:
        bind in interface LdapConnection
        Parameters:
        name - The name used to authenticate the user. It must be a valid distinguished name.
        credentials - The password, it can't be null
        Throws:
        LdapException - if some error occurred
      • bind

        public void bind​(Dn name,
                         String credentials)
                  throws LdapException
        Simple bind on a server.
        Specified by:
        bind in interface LdapConnection
        Parameters:
        name - The name used to authenticate the user.
        credentials - The password, it can't be null
        Throws:
        LdapException - if some error occurred
      • createBindRequest

        protected BindRequest createBindRequest​(String name,
                                                byte[] credentials,
                                                String saslMechanism,
                                                Control... controls)
        Create a complete BindRequest ready to be sent.
        Parameters:
        name - The DN to bind with
        credentials - The user's password
        saslMechanism - The SASL mechanism to use
        controls - The controls to send
        Returns:
        The created BindRequest