[Date Prev][Date Next] [Chronological] [Thread] [Top]

openldap 2.0.11 search problem



Hello!

I have problem with following filter ( in perl)[ root@dm bin]# ./userinfo_ldap.pl dm


$entry = $conn->search($base,"subtree","(&(objectclass=posixAccount)(uid=$user)


If I execute  perl script with parameter dm and it found user dm:

dn: uid=dm,dpt=dit,org=belkam,ou=People,o=Aspec,c=RU
proxylimit: 1048576
cn: dm
loginshell: /bin/bash
userpassword: {crypt}
uid: dm
uidnumber: 508
gidnumber: 510
objectclass: account
objectclass: posixAccount
objectclass: top
objectclass: shadowAccount
homedirectory: /home/samba/misc/home/dm

But it can't find user zvp:

[root@dm bin]# ./userinfo_ldap.pl zvp returns nothing.

But this record exists, and I can find it with filter
$entry = $conn->search($base,"subtree","(uid=$user)"); [root@dm bin]# ./userinfo_ldap.pl zvp
dn: uid=zvp,org=Belkam,ou=People,o=Aspec,c=RU
proxylimit: 1048576
loginshell: /bin/date
sn: Zubarik Vladimir Petrovich
cn: zvp
userpassword: {crypt}
uid: zvp
uidnumber: 780
objectclass: inetPerson
objectclass: account
objectclass: shadowAccount
objectclass: posixAccount
objectclass: top
gidnumber: 5255
homedirectory: /home/samba/misc/home/zvp



I can't understand what is wrong with this record [:(]