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

Re: Still I am uanble to execute ldapsearch



Hi,

Chris is right: I missed the "-n" flag. Please take
out the -n flag and try ldapadd again.

Chee Wai

--- shreedhar <shreedhar@lucidindia.net> wrote:
> 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
> 
=== message truncated ===

> ATTACHMENT part 2 application/octet-stream
name=Test2.ldif


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



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