From: Flamand, J. <Jul...@lu...> - 2000-12-12 20:29:20
|
Hello, I am french so excuse me in advance, my english is not very good. 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; use Mozilla::LDAP::Utils; use Mozilla::LDAP::Entry; use Mozilla::LDAP::LDIF; $base =3D "OU=3DLumos_users,DC=3Dlumos,DC=3Dcom"; $conn =3D new Mozilla::LDAP::Conn("glisten", "389", "", ""); die "No LDAP connection" unless $conn; $entry =3D $conn->search($base, "base", "(objectclass=3Duser)"); if (! $entry) { print " handle this event, no entries found, dude!\n" } else { while ($entry) { $entry->printLDIF(); $entry =3D $conn->nextEntry(); } } Please tell me how to access to the informations of the users. What is wrong with my script ?? Thanks in advance. Julien Flamand MIS Lumos Technologies Inc. 2500 Broadway Avenue, Suite 170 Santa Monica, CA 90404 Tel: 310-453-5852 Fax: 310-829-0665=20 |