Samba OpenLDAP
Version vom 29. August 2024, 08:22 Uhr von Linkai.zhang (Diskussion | Beiträge)
- Datenbankschema von Samba zu LDAP kopieren
- scp smb://usr/share/doc/samba/examples/LDAP/samba.ldif ldap:/root/
- Auf dem LDAP-Server die Datei samba.ldif hinzufügen
- ldapadd -Y EXTERNAL -H ldapi:/// -f samba.ldif
- Auf dem Samba-Server die globale Konfiguration anpassen
- vim /etc/samba/smb.con
[global] workgroup = WORKGROUP security = user passdb backend = ldapsam:"ldap://ip.des.ldap.server" ldap suffix = dc=domain,dc=tld ldap admin dn = cn=admin,dc=domain,dc=tld ldap user suffix = ou=users ldap group suffix = ou=groups ldap machine suffix = ou=hosts ldap passwd sync = yes ldap ssl = no obey pam restrictions = yes pam password change = yes map to guest = Bad Password server role = standalone server netbios name = Samba server string = Samba Server ...