mohamedrabeek has asked for the wisdom of the Perl Monks concerning the following question:

Hello Perl Monks, I am able to connect to my Active Directory Server using Win32::OLE and able to create new users and groups. I am using the following PERL snippet to connect to the ADS and get the object .
Win32::OLE->GetObject("LDAP://" . $parentMember); My question is how I am able to connect to LDAP without specifying my username and password. Does the above code assumes my current userId and Password from my domain ? or is it connected to LDAP using anonymous user. I don't think that the connection was established as an anonymous user because if it is the case then I would not have been able to create users and groups. Please clarify me.

Thanks & Regards,
Mohamed

Replies are listed 'Best First'.
Re: Accessing LDAP using Win32::OLE
by Corion (Patriarch) on Jan 26, 2009 at 21:56 UTC
Re: Accessing LDAP using Win32::OLE
by bingos (Vicar) on Jan 27, 2009 at 09:52 UTC