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

Re: Still I am uanble to execute ldapsearch



Hi Chee Wai,

I did as you says.

[root@devserv ldap]# /usr/local/bin/ldapadd -x -n -D "cn=Lucid,
o=stixen.co.uk,
 c=uk" -w secret -f /home/shreedhar/ldap/Test2.ldif
!adding new entry "o=stixen.co.uk, c=uk"

[root@devserv ldap]# /usr/local/bin/ldapadd -x -n -D "cn=Lucid,
o=stixen.co.uk,
 c=uk" -w secret -f /home/shreedhar/ldap/Test1.ldif
!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 check '/home/shreedhar/ldap/stixen ' folder which has given directory
path of slapd.conf is still empty.
I am attaching 'Test2.ldif and Test1.ldif' along with this mail.

Thanks Alot for your kind cooperation.

Sreedhar
----- Original Message -----
From: "Chee Wai Yeung" <cheewai_yeung2003@yahoo.com.hk>
To: "shreedhar" <shreedhar@lucidindia.net>
Sent: Monday, June 02, 2003 11:04 AM
Subject: Re: Still I am uanble to execute ldapsearch


> OK, next question, is the slapd.conf file the one you
> sent out (ie. the one which specify /home/....... as
> the data directory)?
>
> If so, then check if it is still empty. If so, then
> I'd suggest you cut out the *first* ldap entry from
> your ldif file and put this entry in a different ldif
> file, then ldapadd it this entry to see if it works.
> In your ldapadd command add the option -d 255 and send
> me the output so that I can check.
>
>
> --- shreedhar <shreedhar@lucidindia.net> wrote:
> > Yes, I started slapd
> >
> > [root@devserv shreedhar]# /usr/local/libexec/slapd
> > -f
> > /usr/local/etc/opnldap/slapd.conf
> >
> > > ps -el
> > showing the following information
> >
> > 140 S     0  1040     1  0  75   0    -  3611 rt_sig
> > ?        00:00:00 slapd
> >
> > Regards,
> > Sreedhar
> >
> > ----- Original Message -----
> > From: "Chee Wai Yeung"
> > <cheewai_yeung2003@yahoo.com.hk>
> > To: "shreedhar" <shreedhar@lucidindia.net>; "Kurt D.
> > Zeilenga"
> > <Kurt@OpenLDAP.org>
> > Cc: <openldap-software@OpenLDAP.org>; "Christian
> > Pohl"
> > <list-openldap-software@mail2news-gw.secaron.de>
> > Sent: Monday, June 02, 2003 10:32 AM
> > Subject: Re: Still I am uanble to execute ldapsearch
> >
> >
> > > How did you start slapd?
> > >
> > > --- shreedhar <shreedhar@lucidindia.net> wrote:
> > > > Many I know where those information will be
> > stored.
> > > > Is it in the path where
> > > > slapd directory mentioned. But in my case it is
> > > > empty.
> > > >
> > > > I think it might be the problem. So how can we
> > take
> > > > care  of that?
> > > >
> > > > Regards,
> > > > Sreedhar
> > > > ----- Original Message -----
> > > > From: "Kurt D. Zeilenga" <Kurt@OpenLDAP.org>
> > > > To: "shreedhar" <shreedhar@lucidindia.net>
> > > > Cc: "Christian Pohl"
> > > >
> > <list-openldap-software@mail2news-gw.secaron.de>;
> > > > <openldap-software@OpenLDAP.org>
> > > > Sent: Sunday, June 01, 2003 6:30 AM
> > > > Subject: Re: Still I am uanble to execute
> > ldapsearch
> > > >
> > > >
> > > > > At 10:03 PM 5/30/2003, shreedhar wrote:
> > > > > >If I attach ldif, I got message that data has
> > > > added.
> > > > >
> > > > > Actually, you got a message that no data was
> > > > added.
> > > > > See ldapadd(1) for the semantics of the -n
> > flag.
> > > > >
> > > > >
> > > > > >[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>
> > > > > >>
> > > > > >
> > > > >
> > > >
> > >
> > >
> >
> === message truncated ===
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
> http://calendar.yahoo.com
>

Attachment: Test2.ldif
Description: Binary data

Attachment: Test1.ldif
Description: Binary data