Exemplo n.º 1
0
        void SetServerType()
        {
            switch (sType.ToLower())
            {
            case "microsoft active directory":
                ldapServerType      = LdapServerType.ActiveDirectory;
                defaultSearchFilter = "";
                break;

            case "openldap":
                ldapServerType      = LdapServerType.OpenLDAP;
                defaultSearchFilter = "(objectClass=*)";
                break;

            case "fedora directory server":
                ldapServerType      = LdapServerType.FedoraDirectory;
                defaultSearchFilter = "(objectClass=*)";
                break;

            case "generic":
                ldapServerType      = LdapServerType.Generic;
                defaultSearchFilter = "(objectClass=*)";
                break;

            default:
                ldapServerType      = LdapServerType.Unknown;
                defaultSearchFilter = "";
                break;
            }
        }
Exemplo n.º 2
0
 public ConnectionData(string name, string hostName, int port, string directoryRoot, string userName, bool savePassword, EncryptionType encryptionType, LdapServerType serverType, bool dynamic)
 {
     this.name             = name;
     this.hostName         = hostName;
     this.port             = port;
     this.directoryRoot    = directoryRoot;
     this.userName         = userName;
     this.dontSavePassword = savePassword;
     this.encryptionType   = encryptionType;
     this.serverType       = serverType;
     this.dynamic          = dynamic;
 }
Exemplo n.º 3
0
Arquivo: Util.cs Projeto: MrJoe/lat
        public static string GetServerType(LdapServerType serverType)
        {
            switch (serverType)
            {
            case LdapServerType.ActiveDirectory:
                return("microsoft active directory");

            case LdapServerType.FedoraDirectory:
                return("fedora directory server");

            case LdapServerType.Generic:
                return("generic ldap server");

            case LdapServerType.OpenLDAP:
                return("openldap");

            default:
                return("unknown");
            }
        }
Exemplo n.º 4
0
Arquivo: Util.cs Projeto: MrJoe/lat
        public static string GetServerType(LdapServerType serverType)
        {
            switch (serverType) {

            case LdapServerType.ActiveDirectory:
                return "microsoft active directory";

            case LdapServerType.FedoraDirectory:
                return "fedora directory server";

            case LdapServerType.Generic:
                return "generic ldap server";

            case LdapServerType.OpenLDAP:
                return "openldap";

            default:
                return "unknown";
            }
        }
Exemplo n.º 5
0
        void SetServerType()
        {
            switch (sType.ToLower()) {

            case "microsoft active directory":
                ldapServerType = LdapServerType.ActiveDirectory;
                defaultSearchFilter = "";
                break;

            case "openldap":
                ldapServerType = LdapServerType.OpenLDAP;
                defaultSearchFilter = "(objectClass=*)";
                break;

            case "fedora directory server":
                ldapServerType = LdapServerType.FedoraDirectory;
                defaultSearchFilter = "(objectClass=*)";
                break;

            case "generic":
                ldapServerType = LdapServerType.Generic;
                defaultSearchFilter = "(objectClass=*)";
                break;

            default:
                ldapServerType = LdapServerType.Unknown;
                defaultSearchFilter = "";
                break;
            }
        }
 public LdapNames(LdapServerType serverType)
 {
     _serverType = serverType;
 }