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

Re: Still I am uanble to execute ldapsearch



Hello Pohl and Chee Wai,

I removed '-n' and included '-v' again I got following error.

[root@devserv stixen]# /usr/local/bin/ldapadd -x -v -D "cn=Lucid,
o=stixen.co.u
k, c=uk" -w secret -f /home/shreedhar/ldap/Test2.ldif
ldap_initialize( <DEFAULT> )
ldap_bind: Invalid credentials (49)
[root@devserv stixen]# /usr/local/bin/ldapadd -x -v -D "cn=Lucid,
o=stixen.co.u
k, c=uk" -w secret -f /home/shreedhar/ldap/Test1.ldif
ldap_initialize( <DEFAULT> )
ldap_bind: Invalid credentials (49)

Thanks & Regards,
Sreedhar

----- Original Message -----
From: "Christian Pohl" <list-openldap-software@mail2news-gw.secaron.de>
To: <openldap-software@OpenLDAP.org>
Sent: Monday, June 02, 2003 12:03 PM
Subject: Re: Still I am uanble to execute ldapsearch


> shreedhar 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>
> >>
>
> Hi,
>
> leave away the -n flag from your ldapadd:
>
> from man ldapadd:
>
>          -n     Show what would be done, but  don't  actually  modify
> entries.
>       Useful for debugging in conjunction with -v.
>
> the manual pages are your friend!
> http://www.openldap.org --> manual pages
>
> 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>
>