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

Re: Building ldap directory - How?



Hi

You will have to bind as someone. And the suffix must exist. 
So if your slapd.conf looks like this:
> include  /etc/openldap/slapd.at.conf
> include  /etc/openldap/slapd.oc.conf
> schemacheck off
> 
> pidfile  /var/slapd.pid
> argsfile /var/slapd.args
> 
> database ldbm
> suffix "o=sososo, c=DE"
> 
> rootdn "cn=FAG-Manager, o=sososo, c=DE"
> rootpw secret
> directory /usr/tmp

Then 
ldapadd -D "cn=FAG-Manager, o=sososo, c=DE" -w secret -f tps.ldif -d "o=sososo, c=de"

should work. 

/Urban

tschweikle@FIDUCIA.de wrote:
> 
> Hi!
> 
> I have tried to build a directory with openldap. After setting up openldap I
> created a ldif file:
> 
> dn: o=sososo, c=de
>   o:  sososo
>   sn: SSS
>   objectclass: organisation
> 
> dn: ou=irgendwer, o=sososo, c=de
>   ou: irgendwer
>   sn: iw
>   objectclass: organisationalunit
> 
> dn: cn=Thomas Schweikle, ou=irgendwer
>   cn: Thomas Schweikle
>   sn: tps
>   uid: xch4008
>   mail: tschweikle@fiducia.de
>   objectclass: person
> 
> ...
> 
> Reading the data with ldapadd gives me:
> 
> junifer:/nwh/xch4008 # ldapadd -w secret -c -f tps.ldif \
>    -d "o=sososo, c=de"
> ldapadd: no attributes to change or add
>   (entry o=sososo, c=de
>       o: sososo sn: FAG objectclass: organisation)
> 
> But the database is definitively empty. All items should be added.
> 
> My slapd.conf looks like:
> 
> include  /etc/openldap/slapd.at.conf
> include  /etc/openldap/slapd.oc.conf
> schemacheck off
> 
> pidfile  /var/slapd.pid
> argsfile /var/slapd.args
> 
> database ldbm
> suffix "o=FIDUCIA Informationszentrale AG, c=DE"
> 
> rootdn "cn=FAG-Manager, o=FIDUCIA Informationszentrale AG, c=DE"
> rootpw secret
> directory /usr/tmp
> 
> I would appreciate any help!
> 
> --
> Thomas
begin:vcard 
n:Lindberg;Urban
tel;home:060-150108
tel;work:060-641141
x-mozilla-html:FALSE
org:Systech
adr:;;;;;;
version:2.1
email;internet:urban.lindberg@systech.se
note:070 - 312 91 97
x-mozilla-cpt:;0
fn:Urban Lindberg
end:vcard