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

Re: Still I am uanble to execute ldapsearch



Hi,

-D "your binddn", NOT your suffix.

Judging from slapd.conf you allow all read so you
don't need the binddn, so

ldapsearch -b "o=stixen.co.uk,c=uk" -x "objectclass=*"
should work.

Of course you can do:

ldapsearch -D "cn=Lucid,o=stixen.co.uk,c=uk" -b
"o=stixen.co.uk,c=uk" -x -W "objectclass=*"

and supply the rootdn password.

Chee Wai
--- shreedhar <shreedhar@lucidindia.net> wrote:
> Hello Chris,
> 
> Good Morning,
> 
> If I attach ldif, I got message that data has added.
> 
> [root@devserv ldap]# /usr/local/bin/ldapadd -x -n -D
> "cn=Lucid,
> o=stixen.co.uk, c=uk" -w secret -f
> /home/shreedhar/ldap/plip.ldif
> 
> !adding new entry "o=stixen.co.uk, c=uk"
> 
> !adding new entry "ou=People, o=stixen.co.uk, c=uk"
> 
> !adding new entry "ou=Architecture, o=stixen.co.uk,
> c=uk"
> 
> !adding new entry "ou=Developement, o=stixen.co.uk,
> c=uk"
> 
> !adding new entry "ou=Communications,
> ou=Developement, o=stixen.co.uk, c=uk"
> 
> !adding new entry "ou=Applications, ou=Developement,
> o=stixen.co.uk, c=uk"
> 
> !adding new entry "cn=Rick Stones, ou =people,
> o=stixen.co.uk, c=uk"
> 
> !adding new entry "cn=Sreedhar B, ou =people,
> o=stixen.co.uk, c=uk"
> 
> !adding new entry "cn=Arun Lal, ou =people,
> o=stixen.co.uk, c=uk"
> 
> IF I tried to search,
> 
> [root@devserv stixen]# /usr/local/bin/ldapsearch -n
> -D "o=stixen.co.uk,
> c=uk"
> -b "o=stixen.co.uk, o=uk" -x -W 'ojectclass=*'
> Enter LDAP Password:secret(given by me)
> ldap_bind: Invalid credentials (49)
> 
> I had given directory as
> '/home/shreedhar/ldap/stixen/ ', But no files has
> created that directory after adding entries.
> 
> I am attching 'slapd.conf' and 'plip.ldif' files
> which I used for this.
> 
> I am very sorry for giving trouble to you all every
> time.
> 
> With Best Regards,
> 
> Sreedhar
> 
> 
> 
> 
> 
> ----- Original Message -----
> From: "Christian Pohl"
> <list-openldap-software@mail2news-gw.secaron.de>
> To: <openldap-software@OpenLDAP.org>
> Sent: Friday, May 30, 2003 7:26 PM
> Subject: Re: Still I am uanble to execute ldapsearch
> 
> 
> > shreedhar wrote:
> > > Hello Christian Pohl ,
> > >
> > > I modified slapd.conf file suffix as well as
> rootdn
> > >
> > > If I execute the following command
> > >
> > > 1. [root@devserv Database]#
> /usr/local/bin/ldapadd  -n  -D "cn=Manager,
> > > o=stixen.co.uk, c=uk(objectclass=organization)"
> -w secret
> > >
> > > I have not got any prompt
> >
> > that's correct. It's waiting for your input! you
> are successfully
> > authenticatet (no error is displayed) :-) If you
> do not use -f
> > <ldif-file>, then ldapadd reads from stdin.
> >
> > Just type the entries you want to add in the same
> way you would type it
> > in an ldif
> > or just use the additional -f <ldif-file> to add
> you entries.
> >
> > And Remember 1st. the tree beginning from our root
> (=suffix in slapd.conf)
> > and at last: the leaves (your user)
> >
> > Kind regards,
> >
> > Chris
> >
> >
> > --
> > Christian Pohl
> > »|secaron
> >
> > --
> > The From: and Reply-To: addresses are internal
> news2mail gateway
> addresses.
> > Reply to the list or to Christian Pohl
> <pohl@secaron.de>
> >
> 

> ATTACHMENT part 2 application/octet-stream
name=slapd.conf


> ATTACHMENT part 3 application/octet-stream
name=plip.ldif



__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com