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

Re: OpenLDAP + RedHat 8.0 problem



On Wed, 19 Feb 2003, Jon Roberts wrote:

> Divyesh A. wrote:
> > On 18 Feb 2003, Adam Williams wrote:
> >
> >
> >>>when I tried openldap on redhat it was giving me some error while adding
> >>>with ldapadd like
> >>>	:No such arrtribute.
> >>>But slapdadd allowed me to add same entry so I was very surprised at that
> >>>time .
> >>
> >>slapadd doesn't sanity check like ldapadd does (against a running DSA)
> >
> >
> > As per your instruction I did like that ..
> >
> > 	I run " slapd -d 5 " in debugging more printed msg like that
> > 		....
> > 		daemon socket() failed error=97 (Address family not
> > 		supported by protocol
> > 		....
> > 		starting ..
> >
> > 	And after that with main.ldif ..
> > 		dn: dc=test, dc=com
> > 		objectclass: top
> >
> > 	I did "ldapadd -f main.ldif
> >
> > 	and I got error like
> > 		ldap_sasl_interactive_bind_s(): No such attributes ..
> >
> > 	So I could not figure out where the problem is
> >
> > 	suggest me some hint so I can do that !
>
> I had these same "problems" earlier this week, and Howard Chu set me
> straight. Check:
>
> http://www.openldap.org/faq/data/cache/53.html
>
> Turns out it was my problem. I searched the message archives and
> documentation, but I missed the faq. This particular page is worth a
> bookmark.

Job Roberts,

Have you solved the probs ?

I made it as I did with ldapadd with -x option and got it.

-x option for ldapadd, ldapeasrch, ldapmodify, ldapdelete will use the
simple ldap_bind_s() rather then ldap_sasl_interactive_bind_s() .

And for slapd I have changed like that ..
in  ../openldap-2.0.27/servers/slapd/daemon.c (line: 445)

it was like that ..
	l.sl_sd = socket( (*sal)->sa_family, SOCK_STREAM, 0);

I made it like this
	l.sl_sd = socket( AF_INET, SOCK_STREAM, 0);

and things are fine here ..


Ok. Fine !
Have a nice TIME !!

Divyesh Amipara

+++++++++++++++++++++++++++++++++++++++
Master is the person who knows
	something about everything !
    But,
    	Everything about Something !!
+++++++++++++++++++++++++++++++++++++++