| ActiveDirectory Constructor (String, String, String, SecureString, String) |
Constructs an Active Directory object with a base of the specified OU. Binds to Active Directory.
Namespace:
Galactic.ActiveDirectory
Assembly:
Galactic.ActiveDirectory (in Galactic.ActiveDirectory.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax public ActiveDirectory(
string domainName,
string ouDn,
string userName,
SecureString password,
string siteName = "Default-First-Site-Name"
)
Public Sub New (
domainName As String,
ouDn As String,
userName As String,
password As SecureString,
Optional siteName As String = "Default-First-Site-Name"
)
public:
ActiveDirectory(
String^ domainName,
String^ ouDn,
String^ userName,
SecureString^ password,
String^ siteName = L"Default-First-Site-Name"
)
new :
domainName : string *
ouDn : string *
userName : string *
password : SecureString *
?siteName : string
(* Defaults:
let _siteName = defaultArg siteName "Default-First-Site-Name"
*)
-> ActiveDirectory
Parameters
- domainName
- Type: SystemString
The DNS style domain name of the Active Directory to connect to. - ouDn
- Type: SystemString
The distinguished name of the OU to use as a base for operations. - userName
- Type: SystemString
The username of the account in AD to use when making the connection. - password
- Type: System.SecuritySecureString
The password of the account. - siteName (Optional)
- Type: SystemString
(Optional)The name of a site in Active Directory to use the domain controllers from. Defaults to DEFAULT_FIRST_SITE_NAME if not supplied.
See Also