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

Re: problem with 2.0.19




> > hi-
> >
> > i'm new to ldap, so i may not be diagnosing this problem correctly.
> >
> > i've compiled and installed 2.0.19, and everything starts up fine. when i
> > try to add to the directory, i get the following:
> >
> > 	root@mail:/opt/openldap/ldif > /opt/openldap/bin/ldapadd -f test.ldif -w
> > 	test -D "cn=manager" -v
> > 	ldap_initialize( <DEFAULT> )
> > 	ldap_bind: Invalid credentials
> >
> > the following shows up in syslog:
> >
> > 	Dec 21 11:29:40 mail slapd[720]: daemon: conn=3 fd=9 connection from IP=127.0.0.1:32776 (IP=0.0.0.0:34049) accepted.
> > 	Dec 21 11:29:40 mail slapd[723]: conn=3 op=0 BIND dn="CN=MANAGER" method=128
> > 	Dec 21 11:29:40 mail slapd[723]: conn=3 op=0 RESULT tag=97 err=49 text=
> > 	Dec 21 11:29:40 mail slapd[720]: conn=-1 fd=9 closed
> >
> > my ldif:
> >
> > 	root@mail:/opt/openldap/ldif > cat test.ldif
> > 	dn: o=dev.thesquare.net
> > 	objectclass: top
> >
> > manager's password from slapd.conf:
> >
> > 	rootdn          "cn=manager"
> > 	rootpw          test
>
> my slapd.conf has the following:
>
> #suffix          "o=sql,c=RU"
> #rootdn          "cn=root,o=sql,c=RU"
> suffix          "ou=test,dc=drivel,dc=aldigital,dc=co,dc=uk"
> rootdn          "cn=admin,ou=People,dc=drivel,dc=aldigital,dc=co,dc=uk"
>
> so your rootdn looks wrong to me. What is your suffix? Your rootdn needs to have your suffix as its last part. (as in each of the suffix/rootdn pairs above).

adding the suffix to the root dn solved the problem.

> > anyone know if this is a linux problem, or an openldap problem?
>
> looks more like a dan problem :-)

was indeed a dan problem ;)

i'm curious though, after adding the suffix to the rootdn, restarting
slapd, and re-adding, strace shows that the shmat error happens on every
add, successful or not. what's going on?

> >
> > thanks-
> >
> > dan
> >
>
> Bob
> --
> Blessed are the geeks for they shall inherit the earth.
>