[Samba-it] Samba 3.0 e gruppi locali

Simone Sorato srtsmn at inwind.it
Wed Oct 15 13:58:02 MDT 2003


On Mon, 13 Oct 2003 20:11:24 +0200 Simo Sorce wrote:

> fai ciò che si fa sui sistemi su cui winbindd non è disponibile o come
> si faceva prima che venisse creato winbindd. Non è comodo ma basta che
> crei l'utente in passwd col nome identico a quello sul PDC (la cosa è
> automatizzabile via "add user script" e similari).
> Cmq la situazione migliore è aggiungere i gruppi sul PDC.

Grazie per la legnata sulla testa ;) ha fatto effetto !!!
La soluzione sta nella direttiva "add user script" o meglio se leggi il
manuale parola prola trovi la soluzione. Dal man di smb.conf:

"When the Windows user attempts to access the Samba server, at login
(session setup in the SMB protocol) time, smbd(8) contacts the password
server and attempts to authenticate the given user with the given
password. If the authentication succeeds then smbd attempts to find a
UNIX user in the UNIX password database to map the Windows user into. If
this lookup fails, and add user script  is set then smbd will call the
specified script AS ROOT, expanding any %u argument to be the user name
to create.

If this script successfully creates the user then smbd will continue on
as though the UNIX user already existed. In this way, UNIX users are
dynamically created to match existing Windows NT accounts."

Tradotto, samba prima autentifica l'account sul PDC e poi se non lo
trova su /etc/passwd esegue lo script definito da "add user script" con
parametro %u
Per gli account con spazi o lettere maiscule lo crei sempre con il
precedente script, sostituendo le lettere maiuscole con le minuscole,
gli spazi con "_" e poi mappi gli account locali con quelli del PDC nel
file definito dalla direttiva "username map".

Sara' una soddisfazione incredibile esguire un bel fdisk su un
server NT :))

Ciao,
          Simone



More information about the samba-it mailing list