====== PDC ======
Vorraussetzung: weiterer Rechner ist [[samba-ldap-pdc]]
====== Winbind ldap Konfiguration ======
''/etc/samba/smb.conf'' :
[global]
  workgroup = kurs
  security = domain
  idmap uid = 20000 - 30000
  idmap gid = 20000 - 30000
  template shell = /bin/bash
  winbind use default domain = Yes
  idmap backend = ldap:ldap://villa.local
  ldap admin = cn=nssadmin,dc=villa,dc=local
  ldap suffix = dc=villa,dc=local
  ldap idmap suffix = ou=idmap
[freigabe]
  path = /tmp
  writable = yes
====== Rechner in die Domäne aufnehmen ======
  net rpc join -U root
===== Domänenaufname testen =====
  wbinfo -t
  wbinfo -a kurs\\iw%villa
====== Linux Benutzer über winbind beziehen ======
''/etc/nsswitch.conf'' :
passwd:         compat winbind
group:          compat winbind
shadow:         compat winbind
===== testen =====
  getent passwd iw