Class LdapProtocol

  • Direct Known Subclasses:
    LdapSslProtocol

    public class LdapProtocol
    extends Object
    Class encapsulating Ldap protocol configuration
    • Constructor Detail

      • LdapProtocol

        public LdapProtocol​(org.pentaho.di.core.logging.LogChannelInterface log,
                            org.pentaho.di.core.variables.VariableSpace variableSpace,
                            LdapMeta meta,
                            Collection<String> binaryAttributes)
    • Method Detail

      • getConnectionPrefix

        protected String getConnectionPrefix()
      • getName

        public static String getName()
        Method signature used by factory to get display name, method should exist in every ldap protocol
        Returns:
        the display name
      • setupEnvironment

        protected void setupEnvironment​(Map<String,​String> env,
                                        String username,
                                        String password)
                                 throws org.pentaho.di.core.exception.KettleException
        Throws:
        org.pentaho.di.core.exception.KettleException
      • doConnect

        protected void doConnect​(String username,
                                 String password)
                          throws org.pentaho.di.core.exception.KettleException
        Throws:
        org.pentaho.di.core.exception.KettleException
      • connect

        public final void connect​(String username,
                                  String password)
                           throws org.pentaho.di.core.exception.KettleException
        Throws:
        org.pentaho.di.core.exception.KettleException
      • close

        public void close()
                   throws org.pentaho.di.core.exception.KettleException
        Throws:
        org.pentaho.di.core.exception.KettleException