From: Mark W. <mew...@un...> - 2000-12-14 02:16:30
|
Sorry, wrong list. This on Net::LDAP (called perl-ldap because it's written in Pure perl. We had the name first, netscape took it for their Perl wrapper to the C SDK). Try the newgroups at www.mozilla.org/directory/ Mark "Flamand, Julien" wrote: > Hello, > > I do not manage to search in Active Directory at the level wanted. I > want retrieve users information (like sAMAccountName). I use perl with > perlDAP module. When I use filter objectclass=* i retrieve > informations, but if I try to use objectclass=user or > objectcategory=person there is not entry found. I don't know why. > Users are in OU=Lumos_Users, DC=lumos, DC=com.... Here is my perl > script. > > use Mozilla::LDAP::Conn; > > $base = "DC=lumos, DC=com"; > $conn = new Mozilla::LDAP::Conn("glisten", "389", "",""); die "No > LDAP connection" unless $conn; > > $who = "*"; > > $entry = $conn->search($base, "sub", "objectclass=$who"); > if (! $entry) > { print " handle this event, no entries found, dude!\n" > } > else > { > while ($entry) > { > $entry->printLDIF(); > $entry = $conn->nextEntry(); > } > } > > please help me !!! > > Best regards > > > Julien Flamand > MIS > Lumos Technologies Inc. > 2500 Broadway Avenue, Suite 170 > Santa Monica, CA 90404 > Tel: 310-453-5852 > Fax: 310-829-0665 > |