From: Flamand, J. <Jul...@lu...> - 2000-12-12 23:07:22
|
Hello,=20 I am trying to retrieve informations about the users of my company stored in Active directory. I manage to bind the server, but I do not manage to search in the OU=3DLumos_users subtree. following my perl script: use Mozilla::LDAP::Conn;=20 use Mozilla::LDAP::Utils;=20 use Mozilla::LDAP::Entry;=20 use Mozilla::LDAP::LDIF;=20 $base =3D "OU=3DLumos_users,DC=3Dlumos,DC=3Dcom";=20 $conn =3D new Mozilla::LDAP::Conn("glisten", "389", "", ""); die "No = LDAP=20 connection" unless $conn;=20 $entry =3D $conn->search($base, "base", "(objectclass=3Duser)");=20 if (! $entry)=20 { print " handle this event, no entries found, dude!\n"=20 }=20 else=20 {=20 while ($entry)=20 {=20 $entry->printLDIF();=20 $entry =3D $conn->nextEntry();=20 }=20 } Please tell me how to access to the users informations. What is wrong with my script ??=20 Thanks in advance.=20 Julien Flamand MIS Lumos Technologies Inc. 2500 Broadway Avenue, Suite 170 Santa Monica, CA 90404 Tel: 310-453-5852 Fax: 310-829-0665=20 |