fnd
16.10.08, 21:56
Hallöchen,
bin ein Neuling was LDAP angeht und habe ein Problem beim Adden der ldif-Datei :(
die konfi-Datein sehn folgendermaßen aus:
--------------------------------------------------------------------------
meine ldap.conf:
BASE dc=mycompany,dc=com
.....
port 389
--------------------------------------------------------------------------
meine slapd.conf:
....
suffix "dc=mycompany,dc=com"
# rootdn directive for specifying a superuser on the database. This is needed
# for syncrepl.
rootdn "cn=Manager,dc=mycompany,dc=com"
rootpw secret
.....
------------------------------------------------------------------------
und die auth.ldif:
# Define top-level entry
dn: dc=mycompany, dc=com
objectclass: organization
objectClass: top
objectClass: dcObject
dc: mycompany
o:mycompany
# Define an entry to contain people
# searches for users are based on this entry
dn: ou=people,dc=mycompany,dc=com
objectClass: organizationalUnit
ou: people
# Define a user entry for Janet Jones
dn: uid=jjones,ou=people,dc=mycompany,dc=com
objectClass: inetOrgPerson
uid: jjones
givenName: Janet
sn: Jones
cn: Gruppenleiter
cn: Einsatzleiter
description: bauamt_grundriss_r
description: bauamt_hydro_r
description: ema_r
description:erzeuge_hilfe
mail: enable
userPassword: janet
# Define a user entry for Tom Fire
dn: uid=tfire,ou=people,dc=mycompany,dc=com
objectClass: inetOrgPerson
uid: tfire
givenName: Tom
sn: Fire
cn: Gruppenleiter
description: bauamt_hydro_r
mail: enable
userPassword: tom
dn: uid=tadmin,ou=people,dc=mycompany,dc=com
objectClass: inetOrgPerson
uid: tadmin
givenName: Thomas
sn: admin
cn: admin
description: masterUser
mail: enable
userPassword: admin
#Rollendefinition:
dn: uid=admin,ou=people,dc=mycompany,dc=com
objectClass: inetOrgPerson
uid: admin
sn: admin
cn: DienstAdmin
dn: uid=Einsatzleiter,ou=people,dc=mycompany,dc=com
objectClass: inetOrgPerson
uid: Einsatzleiter
sn: Einsatzleiter
cn: bauamt_lageplan_r
cn: bauamt_grundriss_r
cn: bauamt_hydro_r
cn: ema_r
cn:erzeuge_hilfe
initials: role
dn: uid=Gruppenleiter,ou=people,dc=mycompany,dc=com
objectClass: inetOrgPerson
uid: Einsatzleiter
sn: Einsatzleiter
cn: bauamt_hydro_r
initials: role
# Define an entry to contain LDAP groups
# searches for roles are based on this entry
dn: ou=groups,dc=mycompany,dc=com
objectClass: organizationalUnit
ou: groups
# Define an entry for the "tomcat" role
dn: cn=tomcat,ou=groups,dc=mycompany,dc=com
objectClass: groupOfUniqueNames
cn: tomcat
uniqueMember: uid=jjones,ou=people,dc=mycompany,dc=com
uniqueMember: uid=tfire,ou=people,dc=mycompany,dc=com
uniqueMember: uid=tadmin,ou=people,dc=mycompany,dc=com
---------------------------------------------------------------------
Wenn ich nun per ldapadd -x -D cn=Manager,dc=mycompany,dc=com -W -f auth.ldif die Struktur einfügen will, kommt folgende Fehlermeldung:
Enter LDAP Password:
ldap_bind: Invalid credentials (49)
...
ALso ich gehe stark davon aus, dass in meiner auth.ldif was falsch ist... ??!!
Bin euch dankbar für jede Hilfe....:confused:
bin ein Neuling was LDAP angeht und habe ein Problem beim Adden der ldif-Datei :(
die konfi-Datein sehn folgendermaßen aus:
--------------------------------------------------------------------------
meine ldap.conf:
BASE dc=mycompany,dc=com
.....
port 389
--------------------------------------------------------------------------
meine slapd.conf:
....
suffix "dc=mycompany,dc=com"
# rootdn directive for specifying a superuser on the database. This is needed
# for syncrepl.
rootdn "cn=Manager,dc=mycompany,dc=com"
rootpw secret
.....
------------------------------------------------------------------------
und die auth.ldif:
# Define top-level entry
dn: dc=mycompany, dc=com
objectclass: organization
objectClass: top
objectClass: dcObject
dc: mycompany
o:mycompany
# Define an entry to contain people
# searches for users are based on this entry
dn: ou=people,dc=mycompany,dc=com
objectClass: organizationalUnit
ou: people
# Define a user entry for Janet Jones
dn: uid=jjones,ou=people,dc=mycompany,dc=com
objectClass: inetOrgPerson
uid: jjones
givenName: Janet
sn: Jones
cn: Gruppenleiter
cn: Einsatzleiter
description: bauamt_grundriss_r
description: bauamt_hydro_r
description: ema_r
description:erzeuge_hilfe
mail: enable
userPassword: janet
# Define a user entry for Tom Fire
dn: uid=tfire,ou=people,dc=mycompany,dc=com
objectClass: inetOrgPerson
uid: tfire
givenName: Tom
sn: Fire
cn: Gruppenleiter
description: bauamt_hydro_r
mail: enable
userPassword: tom
dn: uid=tadmin,ou=people,dc=mycompany,dc=com
objectClass: inetOrgPerson
uid: tadmin
givenName: Thomas
sn: admin
cn: admin
description: masterUser
mail: enable
userPassword: admin
#Rollendefinition:
dn: uid=admin,ou=people,dc=mycompany,dc=com
objectClass: inetOrgPerson
uid: admin
sn: admin
cn: DienstAdmin
dn: uid=Einsatzleiter,ou=people,dc=mycompany,dc=com
objectClass: inetOrgPerson
uid: Einsatzleiter
sn: Einsatzleiter
cn: bauamt_lageplan_r
cn: bauamt_grundriss_r
cn: bauamt_hydro_r
cn: ema_r
cn:erzeuge_hilfe
initials: role
dn: uid=Gruppenleiter,ou=people,dc=mycompany,dc=com
objectClass: inetOrgPerson
uid: Einsatzleiter
sn: Einsatzleiter
cn: bauamt_hydro_r
initials: role
# Define an entry to contain LDAP groups
# searches for roles are based on this entry
dn: ou=groups,dc=mycompany,dc=com
objectClass: organizationalUnit
ou: groups
# Define an entry for the "tomcat" role
dn: cn=tomcat,ou=groups,dc=mycompany,dc=com
objectClass: groupOfUniqueNames
cn: tomcat
uniqueMember: uid=jjones,ou=people,dc=mycompany,dc=com
uniqueMember: uid=tfire,ou=people,dc=mycompany,dc=com
uniqueMember: uid=tadmin,ou=people,dc=mycompany,dc=com
---------------------------------------------------------------------
Wenn ich nun per ldapadd -x -D cn=Manager,dc=mycompany,dc=com -W -f auth.ldif die Struktur einfügen will, kommt folgende Fehlermeldung:
Enter LDAP Password:
ldap_bind: Invalid credentials (49)
...
ALso ich gehe stark davon aus, dass in meiner auth.ldif was falsch ist... ??!!
Bin euch dankbar für jede Hilfe....:confused: