| LDAP Constructor |
Establishes a connection with an LDAP server that can be used to query or modify its contents.
A list of servers by fully qualified domain name, host name, ip address, or null.The port number on the LDAP server that is listening for requests.(Optional) The type of authentication to use when connecting with the server. By default this is set to Anonymous (i.e. no credentials required).(Optional) The user name to use when connecting to the LDAP server.(Optional) The password to use with the user name provided to connect to the LDAP server.(Optional) The domain or computer name associated with the user credentials provided.(Optional) If enabled, the LDAP connection will use the logon credentials from the current session. Disabled by default.
Namespace:
Galactic.LDAP
Assembly:
Galactic.LDAP (in Galactic.LDAP.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax public LDAP(
List<string> servers,
int portNumber,
AuthType authType = AuthType.Anonymous,
string userName = null,
SecureString password = null,
string domainName = null,
bool useLogonCredentials = false
)
Public Sub New (
servers As List(Of String),
portNumber As Integer,
Optional authType As AuthType = AuthType.Anonymous,
Optional userName As String = Nothing,
Optional password As SecureString = Nothing,
Optional domainName As String = Nothing,
Optional useLogonCredentials As Boolean = false
)
public:
LDAP(
List<String^>^ servers,
int portNumber,
AuthType authType = AuthType::Anonymous,
String^ userName = nullptr,
SecureString^ password = nullptr,
String^ domainName = nullptr,
bool useLogonCredentials = false
)
new :
servers : List<string> *
portNumber : int *
?authType : AuthType *
?userName : string *
?password : SecureString *
?domainName : string *
?useLogonCredentials : bool
(* Defaults:
let _authType = defaultArg authType AuthType.Anonymous
let _userName = defaultArg userName null
let _password = defaultArg password null
let _domainName = defaultArg domainName null
let _useLogonCredentials = defaultArg useLogonCredentials false
*)
-> LDAP
Parameters
- servers
- Type: System.Collections.GenericListString
- portNumber
- Type: SystemInt32
- authType (Optional)
- Type: System.DirectoryServices.ProtocolsAuthType
- userName (Optional)
- Type: SystemString
- password (Optional)
- Type: System.SecuritySecureString
- domainName (Optional)
- Type: SystemString
- useLogonCredentials (Optional)
- Type: SystemBoolean
See Also