Click or drag to resize
Galactic API

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"
)

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