From: <ce...@ca...> - 2000-12-12 20:31:53
|
Sam, I know it's possible, as I am doing it. Here's what my code looks like: my $ldapServer = "xxx.xxx.xxx.xxx"; my $authLogin = "cn=My Name;cn=Users;dc=foo;dc=test;dc=com"; my $pass = "password"; $ldap = Net::LDAP->new($ldapServer,debug=>1) || die &returnErr("Failed to create an LDAP object"); $ldap->bind ( dn => $authLogin, password => $pass ) || die &returnErr("Could not bind."); I don't think that I changed the out-of-the-box security settings for Active Directory, but I did a lot of my work so far under sleep-deprived and caffeine-enhanced conditions, so it's possible. My only suggestion in this regard is to verify the permissions on the User account that you're using to bind with. Maybe someone else has more complete information? ---Corey Sent by: per...@li... To: <per...@li...> cc: Subject: Is Net::LDAP binding to Active Directiry possible? Hello all. I'm trying to bind() to an Active Directory server using Net::LDAP. So far no matter what I try to use for a "dn" I get an AccessSecurityContext error in response. I can get access to the LDAP services with the LDP.EXE crap-ware provided with Windows 2000. Binding from within LDP.EXE works unless I uncheck NTLM Domain. Is it possible I need to turn off some MS-specific bind requirements? Kerberos, perhaps? I can post my test script if it would help. I can also run any queries you might want to see from the LDP.EXE program. Thanks for your help and advice. -sam |