Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "DsBind" in [All]

ntdsapi

.
Summary
The DsBindWithCred function binds to a domain controller using the specified credentials.
.

CharSet = CharSet.Unicode, EntryPoint = "DsBindWithCredW", SetLastError = true)]

.

public static extern UInt32 DsBindWithCred(

.

Declare Function DsBindWithCred Lib "ntdsapi.dll" (TODO) As TODO

.
Documentation
[DsBindWithCred] on MSDN
.
Summary
The DsBindWithCred function binds to a domain controller using the specified credentials.
.

CharSet = CharSet.Unicode, EntryPoint = "DsBindWithCredW", SetLastError = true)]

.

public static extern UInt32 DsBindWithCred(

.

Declare Function DsBindWithCred Lib "ntdsapi.dll" (TODO) As TODO

.
Documentation
[DsBindWithCred] on MSDN
.

The success of the name conversion request depends on where the client is bound. Clients bind to specific instances of the directory service using some variant of DsBind. If bound to a global catalog, the scope of the name mapping is the entire forest. If not bound to a global catalog, the scope of the name mapping is the domain not covered by a global catalog for that domain controller. If not bound to a global catalog and a name is not found, but the input name unambiguously identifies its domain and this domain is in the forest, then the return data identifies the DNS domain name for the domain of interest. Clients are expected to use this data to bind to the correct domain controller or global catalog and call DsCrackNames again with the new bind handle.

.

         uint res = DsBind(domainControllerName, dnsDomainName, out handle);

.

       public static extern uint DsBind(

.

    static public extern uint DsBind(

.

        uint ret = NtdsHelper.DsBind("sdbad10004", "dom1.ad.sys", out hDC);

.
Summary
The DsMakePasswordCredentials function constructs a credential handle suitable for use with the DsBindWithCred function.
.

Requires DsBind, recommend DsUnBind and DsFreeSchemaGuidMap

.

        result = DsBind(domainController, domain, out phDS);

.

    static public extern uint DsBind(


 
Access PInvoke.net directly from VS: