Samba

Aus Goobi

Wechseln zu: Navigation, Suche

Inhaltsverzeichnis

Installation des Samba Servers mit LDAP Authentifizierung

Voraussetzungen

  • Samba mit LDAP installieren
USE="-ldap pam" emerge samba

oder

echo "net-fs/samba -ldap pam" >> /etc/portage/package.use 

bzw. bearbeiten, danach Samba installieren:

emerge samba

Erweiterung der OpenLDAP Konfiguration

  • Samba Schema in das Schema Verzeichniss kopieren
cp /usr/portage/net-fs/samba/files/config/samba.schema /etc/openldap/schema

Schema in OpenLDAP Konfiguration (/etc/openldap/samba.schema) einfügen:

include         /etc/openldap/schema/samba.schema
  • Danach müssen die Indexierungsregeln angepasst werden, z.B.:
index           sambaSID,sambaPrimaryGroupSID,sambaDomainName  eq
  • Danach "slapindex" ausführen:
slapindex

Samba Konfiguration

  • /etc/samba/smb.conf

Weitere Dokumentation unter http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/passdb.html#confldapex

[global]
# ohne SSL
passdb backend = ldapsam:ldap://localhost
#mit SSL
passdb backend = ldapsam:ldaps://localhost
ldap suffix = ou=goobi,dc=bib,dc=uni,dc=de
#ldap machine suffix = ou=users
ldap user suffix = ou=users
ldap group suffix = ou=groups
#ldap idmap suffix = ou=users
ldap admin dn = cn=Manager,dc=bib,dc=uni,dc=de
ldap ssl = no
ldap passwd sync = Yes
ldap delete dn = no

[homes]
path = /home/%U
browseable = no
valid users = %S
read only = no
guest ok = no
inherit permissions = yes
  • LDAP Admindn Passwort speichern
smbpasswd -W