|
From: Flamand, J. <Jul...@lu...> - 2000-12-13 20:24:24
|
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=3D* i retrieve =
informations,
but if I try to use objectclass=3Duser or objectcategory=3Dperson there =
is
not entry found. I don't know why. Users are in OU=3DLumos_Users,
DC=3Dlumos, DC=3Dcom.... Here is my perl script.
use Mozilla::LDAP::Conn;
$base =3D "DC=3Dlumos, DC=3Dcom";
$conn =3D new Mozilla::LDAP::Conn("glisten", "389", "",""); die "No
LDAP connection" unless $conn;
$who =3D "*";
$entry =3D $conn->search($base, "sub", "objectclass=3D$who");
if (! $entry)
{ print " handle this event, no entries found, dude!\n"
}
else
{
while ($entry)
{
$entry->printLDIF();
$entry =3D $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=20
|