Logo Search packages:      
Sourcecode: lat version File versions  Download package

void lat::LdapServer::Connect ( EncryptionType  encryptionType  )  [inline]

Connects to the directory server.

Parameters:
encryptionType Type of encryption to use for session

Definition at line 133 of file LdapServer.cs.

            {
                  encryption = encryptionType;              
      
                  if (encryption == EncryptionType.SSL)
                        conn.SecureSocketLayer = true;

                  conn.UserDefinedServerCertValidationDelegate += new 
                        CertificateValidationCallback(SSLHandler);

                  conn.Connect (host, port);

                  if (encryption == EncryptionType.TLS) {
                        conn.startTLS ();
                  }
                  
                  if (schemaDN == null)
                        schemaDN = "cn=subschema";

                  if (rootDN == null)
                        QueryRootDSE ();

                  Log.Debug ("Connected to '{0}' on port {1}", host, port);
                  Log.Debug ("Base: {0}", rootDN);
                  Log.Debug ("Using encryption type: {0}", encryptionType.ToString());
            }


Generated by  Doxygen 1.6.0   Back to index