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 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; }
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"); } }
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"; } }
public LdapNames(LdapServerType serverType) { _serverType = serverType; }