Samba OpenLDAP: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „Kategorie:Samba Kategorie:LDAP * Datenbankschema von Samba zu LDAP kopieren * '''scp smb://usr/share/doc/samba/examples/LDAP/samba.ldif ldap:/root/'''…“) |
|||
| (Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
[[Kategorie:Samba]] | [[Kategorie:Samba]] | ||
[[Kategorie:LDAP]] | [[Kategorie:LDAP]] | ||
| + | * LDAP-Konfigurationsskripte auf Samba-Server installieren | ||
| + | * '''apt install smbldap-tools''' | ||
* Datenbankschema von Samba zu LDAP kopieren | * Datenbankschema von Samba zu LDAP kopieren | ||
* '''scp smb://usr/share/doc/samba/examples/LDAP/samba.ldif ldap:/root/''' | * '''scp smb://usr/share/doc/samba/examples/LDAP/samba.ldif ldap:/root/''' | ||
* Auf dem LDAP-Server die Datei ''samba.ldif'' hinzufügen | * Auf dem LDAP-Server die Datei ''samba.ldif'' hinzufügen | ||
* '''ldapadd -Y EXTERNAL -H ldapi:/// -f ''samba.ldif'' ''' | * '''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 | ||
| + | ... | ||
| + | |||
| + | * '''smbldap-config''' | ||
| + | * '''smbldap-populate''' | ||
| + | * '''smbldap-useradd -a -m user.name''' | ||
| + | * '''smbldap-passwd user.name''' | ||
Aktuelle Version vom 29. August 2024, 08:23 Uhr
- LDAP-Konfigurationsskripte auf Samba-Server installieren
- apt install smbldap-tools
- 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 ...
- smbldap-config
- smbldap-populate
- smbldap-useradd -a -m user.name
- smbldap-passwd user.name