win32security.DsBind

PyDS_HANDLE = DsBind(DomainController, DnsDomainName )

Creates a connection to a directory service

Parameters

DomainController : PyUnicode

Name of domain controller to contact, can be None

DnsDomainName : PyUnicode

Dotted name of domain to bind to, can be None