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

Re: openldap 2.0.11 search problem



----- Original Message -----
From: Fabrice Nouet <f_nouet@hotmail.com>
To: <dm@belkam.com>
Sent: Thursday, September 06, 2001 6:36 PM
Subject: Re: openldap 2.0.11 search problem


> Mmmh !!!
>
> What is InetPerson Object !
Yes. I removed InetPerson and now can search it.
Looks like I need to be more careful with openldap2.0 then with 1.2 ;)
Thank you!


> take care about your dn :
> - with dm you use belkam
> - with zvp you use Belkam
>
> try your test without being dm user
> try to replace $user by zvp in the first filter to see what appends
>
>
> >From: Dmitry Melekhov <dm@belkam.com>
> >To: openldap-software@OpenLDAP.org
> >Subject: openldap 2.0.11 search problem
> >Date: Thu, 06 Sep 2001 17:21:28 -0400
> >
> >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 [:(]
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>