Пример #1
0
        public LdapServer(string hostName, int hostPort, string dirRoot, string serverType)
        {
            conn = new LdapConnection();

            host   = hostName;
            port   = hostPort;
            rootDN = dirRoot;
            sType  = serverType;
            adInfo = new ActiveDirectoryInfo();

            SetServerType();
        }
Пример #2
0
        public LdapServer(string hostName, int hostPort, string serverType)
        {
            conn = new LdapConnection();

            host       = hostName;
            port       = hostPort;
            sType      = serverType;
            rootDN     = null;
            encryption = EncryptionType.None;

            adInfo = new ActiveDirectoryInfo();

            SetServerType();
        }
Пример #3
0
        public LdapServer(ConnectionData connectionData)
        {
            conn = new LdapConnection();

            host       = connectionData.Host;
            port       = connectionData.Port;
            sType      = Util.GetServerType(connectionData.ServerType);
            encryption = connectionData.Encryption;

            if (connectionData.DirectoryRoot != "")
            {
                rootDN = connectionData.DirectoryRoot;
            }

            profileName = connectionData.Name;

            adInfo = new ActiveDirectoryInfo();
            SetServerType();
        }
Пример #4
0
        public LdapServer(ConnectionData connectionData)
        {
            conn = new LdapConnection ();

            host = connectionData.Host;
            port = connectionData.Port;
            sType = Util.GetServerType (connectionData.ServerType);
            encryption = connectionData.Encryption;

            if (connectionData.DirectoryRoot != "")
                rootDN = connectionData.DirectoryRoot;

            profileName = connectionData.Name;

            adInfo = new ActiveDirectoryInfo ();
            SetServerType ();
        }
Пример #5
0
        public LdapServer(string hostName, int hostPort, string dirRoot, string serverType)
        {
            conn = new LdapConnection ();

            host = hostName;
            port = hostPort;
            rootDN = dirRoot;
            sType = serverType;
            adInfo = new ActiveDirectoryInfo ();

            SetServerType ();
        }
Пример #6
0
        public LdapServer(string hostName, int hostPort, string serverType)
        {
            conn = new LdapConnection ();

            host = hostName;
            port = hostPort;
            sType = serverType;
            rootDN = null;
            encryption = EncryptionType.None;

            adInfo = new ActiveDirectoryInfo ();

            SetServerType ();
        }