I use the following script:<br><br>from win32com.client import GetObject, Dispatch<br><br>user=''<br>password=''<br>default_naming_context = GetObject("LDAP://rootDSE").Get("defaultNamingContext")<br>ad = GetObject("LDAP:").OpenDSObject("LDAP://%s" % default_naming_context, user, password, 1 + 512)
<br><br>If user & password contain a correct value the script works. According to the ADSI documentation, replacing user and password with NULLstrings should use the credentials of the currently logged on user. In VBScript this works, but in Python I get different errormessages depending on what I pass as value to these parameters.
<br><br>Can somebody tell me how to do this? How can I pass a NULL-string here<br><br>Thanks in advance,<br><br>Rudy<br clear="all"><br><br>