elxdio
19.05.05, 18:54
moin
auf meinem debian sarge installierte ich slapd & ldap-utils.
editierte anschliessend die configfiles /etc/ldap/slapd.conf & /etc/ldap/ldap.conf und
erstelle ein ldif viele.
nun wollte ich mit slapadd und ldapadd die daten integrieren, ging aber nicht.
mein versuch mit slapadd
slapadd -v < tuxin.ldfi
slapadd :could not parse entry (line=37)
mit ldapadd
ldapadd -D "cn:admin,dc=tux,dc=in" -W -v -f tuxin.ldfi
was muss ich da oder in den konfig anpassen damit es funktioniert?
/etc/ldap/tuxin.ldif
dn: dc=tux, dc=in
o: tuxCompany
l: biel
##
dn: cn=admin, dc=tux, dc=in
cn: Manager
sn: Manager
objectclass: person
dn: ou=IT, dc=tux, dc=in
ou: IT
objectclass: top
objectclass: organizationalUnit
##
dn: ou=Finanzen, dc=tux, dc=in
ou: Finanzen
#objectclass: top
objectclass: organizationalUnit
##
dn: cn=Volker Schwaberow, ou=IT, dc=tux, dc=in
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
cn: Volker Schwaberow
sn: Schwaberow
telephonenumber: 0209/4712
##
dn: cn=Bernd Schlaefer, ou=Finanzen, dc=tux, dc=in
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
cn: Bernd Schlaefer
sn: Schlaefer
telephonenumber: 0209/4713
##
/etc/ldap/slapd.conf
allow bind_v2
# Schema and objectClass definitions
include /etc/ldap/schema/core.schema
include /etc/ldap/schema/cosine.schema
include /etc/ldap/schema/nis.schema
include /etc/ldap/schema/inetorgperson.schema
schemacheck on
pidfile /var/run/slapd/slapd.pid
argsfile /var/run/slapd.args
loglevel 0
modulepath /usr/lib/ldap
moduleload back_bdb
backend bdb
checkpoint 512 30
database bdb
suffix "dc=tux,dc=in"
directory "/var/lib/ldap"
index objectClass eq
lastmod on
access to attrs=userPassword
by dn="cn=admin,dc=tux,dc=in" write
by anonymous auth
by self write
by * none
access to dn.base="" by * read
access to *
by dn="cn=admin,dc=tux,dc=in" write
by * read
/etc/ldap/ldap.conf
BASE dc=tux, dc=in
auf meinem debian sarge installierte ich slapd & ldap-utils.
editierte anschliessend die configfiles /etc/ldap/slapd.conf & /etc/ldap/ldap.conf und
erstelle ein ldif viele.
nun wollte ich mit slapadd und ldapadd die daten integrieren, ging aber nicht.
mein versuch mit slapadd
slapadd -v < tuxin.ldfi
slapadd :could not parse entry (line=37)
mit ldapadd
ldapadd -D "cn:admin,dc=tux,dc=in" -W -v -f tuxin.ldfi
was muss ich da oder in den konfig anpassen damit es funktioniert?
/etc/ldap/tuxin.ldif
dn: dc=tux, dc=in
o: tuxCompany
l: biel
##
dn: cn=admin, dc=tux, dc=in
cn: Manager
sn: Manager
objectclass: person
dn: ou=IT, dc=tux, dc=in
ou: IT
objectclass: top
objectclass: organizationalUnit
##
dn: ou=Finanzen, dc=tux, dc=in
ou: Finanzen
#objectclass: top
objectclass: organizationalUnit
##
dn: cn=Volker Schwaberow, ou=IT, dc=tux, dc=in
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
cn: Volker Schwaberow
sn: Schwaberow
telephonenumber: 0209/4712
##
dn: cn=Bernd Schlaefer, ou=Finanzen, dc=tux, dc=in
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
cn: Bernd Schlaefer
sn: Schlaefer
telephonenumber: 0209/4713
##
/etc/ldap/slapd.conf
allow bind_v2
# Schema and objectClass definitions
include /etc/ldap/schema/core.schema
include /etc/ldap/schema/cosine.schema
include /etc/ldap/schema/nis.schema
include /etc/ldap/schema/inetorgperson.schema
schemacheck on
pidfile /var/run/slapd/slapd.pid
argsfile /var/run/slapd.args
loglevel 0
modulepath /usr/lib/ldap
moduleload back_bdb
backend bdb
checkpoint 512 30
database bdb
suffix "dc=tux,dc=in"
directory "/var/lib/ldap"
index objectClass eq
lastmod on
access to attrs=userPassword
by dn="cn=admin,dc=tux,dc=in" write
by anonymous auth
by self write
by * none
access to dn.base="" by * read
access to *
by dn="cn=admin,dc=tux,dc=in" write
by * read
/etc/ldap/ldap.conf
BASE dc=tux, dc=in