User erstellen für samba im LDAP

Hauke Homburg h.homburg at w3-creative.de
Tue Dec 6 12:01:32 CET 2005


Hallo,

ich habe versucht sowohl mit smbpasswd -a samba wie auch mit pdbedit -a samba 
einen user im ldap für samba zu erstellen. habe dabei leider folgende 
fehlermeldung bekommen:

ldapsam_modify_entry: Failed to add user dn= 
uid=samba,ou=samba,dc=w3-creative,dc=de with: Undefined attribute type
        rid: attribute type undefined
ldapsam_add_sam_account: failed to modify/add user with uid = samba (dn = 
uid=samba,ou=samba,dc=w3-creative,dc=de)
Unable to add user! (does it already exist?)

dabei ist es egal ob der user im ldap schon angelegt ist oder nicht. kann mir 
jemand sagen wo ich den fehler suchen kann?

in der slapd.conf ist folgendes freigeschaltet:

access to attrs=userPassword
        by dn="cn=admin,dc=w3-creative,dc=de" write
        by anonymous auth
        by self write
        by * none

access to attrs=sambaLMPassword,sambaNTPassword
        by dn="cn=samba-admin,dc=w3-creative,dc=de" write
        by anonymous auth
        by self write
        by * none

eine ou=samba ist angelegt.

die einträge für samba sehen so aus:

ldap admin dn           = cn=samba-admin,dc=w3-creative,dc=de
passdb backend          = ldapsam_compat:ldap://127.0.0.1
ldap suffix             = dc=w3-creative,dc=de
ldap user suffix        = ou=samba
ldap group suffix       = ou=group
#ldap machine suffix    = ou=machine
ldap filter             = "(&(uid=%U)(objectclass=sambaAccount))"
ldap ssl                = off

mit freundlichen grüssen

hauke



More information about the Linux mailing list