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

Re: Startup problem



On Sun, Sep 25, 2011 at 6:27 AM, Andreas Rudat <rudat@endstelle.de> wrote:
> Hello,
>
> I have big problems to setup my ldap server. I want it to use for samba
> later.
> Here my config.
> Samba 3.4.7
> slapd 2.4.21
>
> ldap.conf
> BASE dc=stud,dc=intern
> URI ldap://127.0.0.1
>
> slapd.conf
> include /etc/ldap/schema/core.schema
> include /etc/ldap/schema/cosine.schema
> include /etc/ldap/schema/nis.schema
> include /etc/ldap/schema/inetorgperson.schema
> include /etc/ldap/schema/samba.schema
>
>
>
> database bdb
> suffix „dc=stud,dc=intern"
> rootdn „cn=root,dc=stud,dc=intern"
> rootpw test
> directory /var/lib/ldap
>
      I take those lowrider double quotes were due to your mail client.

      Also did you check if that rootdn works? You know, like

ldapsearch -D cn=root,dc=stud,dc=intern -w secret

> admin.ldif
> dn: cn=root,dc=stud,dc=intern
> objectclass: organizationalRole
> cn: root
> uid: root
> uidNumber: 0
> gidNumber: 100
>
>
> ldapadd -D "cn=root,dc=stud,dc=intern" -x -W -f admin.ldif
> Enter LDAP Password:
> ldap_bind: Invalid credentials (49)
>
      See if something like

ldapadd -Y EXTERNAL -H ldapi:/// -f admin.ldif

would do the trick.

> debug output
> slapd starting
> connection_get(10)
> ldap_read: want=8, got=8
> 0000: 30 2d 02 01 01 60 28 02 0-...`(.
> ldap_read: want=39, got=39
> 0000: 01 03 04 19 63 6e 3d 72 6f 6f 74 2c 64 63 3d 73 ....cn=root,dc=s
> 0010: 74 75 64 2c 64 63 3d 69 6e 74 65 72 6e 80 08 54 tud,dc=intern..t
> 0020: 65 73 74 65 72 33 32 est
> ldap_read: want=8 error=Resource temporarily unavailable
> => ldap_bv2dn(cn=root,dc=stud,dc=intern,0)
> <= ldap_bv2dn(cn=root,dc=stud,dc=intern)=0
> => ldap_dn2bv(272)
> <= ldap_dn2bv(cn=root,dc=stud,dc=intern)=0
> => ldap_dn2bv(272)
> <= ldap_dn2bv(cn=root,dc=stud,dc=intern)=0
> send_ldap_result: err=49 matched="" text=""
> ldap_write: want=14, written=14
> 0000: 30 0c 02 01 01 61 07 0a 01 31 04 00 04 00 0....a...1....
> connection_get(10)
> ldap_read: want=8, got=0
>
> any idea?
>
> Much Thanks
> Andreas
>
>