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

Re: search not working



ashish wrote:

> hello everbody,
>
>   i have tried to add an entry but the error the machine throws is that
> the entry already exists.but when i try to search and find out the entry
> it is unable to so.
>
> it works in the following way:-
>
> [root@yamuna /root]# ldapadd -f/temp/newentry -v -D
> "cn=Manager,dc=pcquest,dc=com" -W -h 192.168.1.62 -p 389
> Enter LDAP Password:
> add dc:
>         pcquest
> add objectclass:
>         top
>         organization
>         dcobject
> add description:
>         this is my first entry
> adding new entry dc=pcquest, dc=com
> ldap_add: Already exists
>
> [root@yamuna /root]# ldapsearch -D
> "dc=pcquest,dc=com" "(objectclass=*)"  -h 192.168.1.62 -p 389 -W -v
> ldap_init( 192.168.1.62, 389 )
> Enter LDAP Password:
> filter pattern: (objectclass=*)
> returning: ALL
> filter is: ((objectclass=*))
> ldap_search: No such object
> 0 matches
>
> can anybody please help.
>
> thank you in anticipation
> bfn,
>   ashish

I guess your search is missing the base, i.e.
ldapsearch ... -b YOUR_NAMING_CONTEXT ...

Pierangelo


--
Dr. Pierangelo Masarati               | voice: +39 02 2399 8365
Dip. Ing. Aerospaziale                | fax:   +39 02 2399 8334
Politecnico di Milano                 | mailto:masarati@aero.polimi.it
via La Masa 34, 20156 Milano, Italy   | http://www.aero.polimi.it/~masarati