Samba OpenLDAP: Unterschied zwischen den Versionen

Aus Xinux Wiki
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/'''…“)
 
Zeile 5: Zeile 5:
 
* 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
 +
...

Version vom 29. August 2024, 08:22 Uhr

  • 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
	...