4.1.2.2.3 ConnectToDCWithCreds
-
procedure ConnectToDCWithCreds( dcname: unicodestring, username: unicodestring, pwd: unicodestring, domain: unicodestring): ConnectionCtx
Creates a ConnectionCtx for the DC named by dcname, associating the credentials of user username, password pwd, and user-domain domain with the ConnectionCtx. dcname can be the Internet host name or the NetBIOS name of the DC. If the ConnectionCtx cannot be created, it returns null.