| ActiveDirectory Constructor (String, String, String) |
Binds to Active Directory. Uses the current session credentials to authenticate.
Namespace:
Galactic.ActiveDirectory
Assembly:
Galactic.ActiveDirectory (in Galactic.ActiveDirectory.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax public ActiveDirectory(
string domainName = null,
string ouDn = null,
string siteName = "Default-First-Site-Name"
)
Public Sub New (
Optional domainName As String = Nothing,
Optional ouDn As String = Nothing,
Optional siteName As String = "Default-First-Site-Name"
)
public:
ActiveDirectory(
String^ domainName = nullptr,
String^ ouDn = nullptr,
String^ siteName = L"Default-First-Site-Name"
)
new :
?domainName : string *
?ouDn : string *
?siteName : string
(* Defaults:
let _domainName = defaultArg domainName null
let _ouDn = defaultArg ouDn null
let _siteName = defaultArg siteName "Default-First-Site-Name"
*)
-> ActiveDirectory
Parameters
- domainName (Optional)
- Type: SystemString
(Optional) The DNS style domain name of the Active Directory to connect to. If left unspecified, the domain that the computer is currently connected to will be used. - ouDn (Optional)
- Type: SystemString
(Optional) The distinguished name of the OU to use as a base for operations. If left unspecified, the root of the domain will be used. - 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