[Samba-it] pam_mkhomedir.so usa il pc name anziche' lo username

Maurizio Marini maumar at datalogica.com
Sat Feb 28 00:05:41 MST 2009


On Saturday 28 February 2009, simo wrote:
> On Sat, 2009-02-28 at 01:26 +0100, Maurizio Marini wrote:

>
> Magari se posti smb.conf ti si sa dire qualcosa di piu'.
>
hai ragione .. e' quella di greg, l'autore di zimbraSamba, bare bare:

[global]                                              
  workgroup = dominiont                             
  netbios name = zimbra                               
  os level = 33                                       
  preferred master = yes                              
  enable privileges = yes                             
  server string = %h server                           
  wins support =yes                                   
  dns proxy = no                                      
  name resolve order = wins bcast hosts               
  log file = /var/log/samba/log.%m                    
  log level = 3                                       
  max log size = 1000                                 
  syslog only = no                                    
  syslog = 0                                          
  panic action = /usr/share/samba/panic-action %d     
  security = user                                     
  encrypt passwords = true                            
  ldap passwd sync = yes                              

  passdb backend = ldapsam:ldap://zimbra.dominiont.it/
  ldap admin dn = "cn=config"                           
  ldap suffix = dc=dominiont,dc=it                    
  ldap group suffix = ou=groups                         
  ldap user suffix = ou=people                          
  ldap machine suffix = ou=machines                     

  obey pam restrictions = no
  passwd program = /usr/bin/passwd %u
  passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
  domain logons = yes                                                                                                     
;                                                                                                                         
; non abilitiamo i roaming profile                                                                                        
;                                                                                                                         
;  logon path = \\zimbra.dominiont.it\%U\profile                                                                        
  logon path =                                                                                                            
  logon home = \\zimbra.dominiont.it\%U                                                                                 
  logon drive = h:                                                                                                        
  logon script = logon.cmd                                                                                                


;  add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
;  add machine script = /usr/sbin/adduser --shell /bin/false --disabled-password --quiet --gecos "machine account" --force-badname %u                                                                                                                             

 add user script = /usr/sbin/adduser -c "" %u
 add machine script = /usr/sbin/adduser --shell /bin/false -c "machine account" %u


  socket options = TCP_NODELAY
  domain master = yes
  local master = yes
[homes]
  comment = Home Directories
  browseable =yes
  read only = No
  valid users = %S

[netlogon]
  comment = Network Logon Service
  path = /var/lib/samba/netlogon
  guest ok = yes
  locking = no
[profiles]
  comment = Users profiles
  path = /var/lib/samba/profiles
  read only = No
[profdata]
  comment = Profile Data Share
  path = /var/lib/samba/profdata
  read only = No
  profile acls = Yes
[printers]
  comment = All Printers
  browseable = no
  path = /tmp
  printable = yes
  public = no
  writable = no
  create mode = 0700
[print$]
  comment = Printer Drivers
  path = /var/lib/samba/printers
  browseable = yes
  read only = yes
  guest ok = no


Grazie

Maurizio



More information about the samba-it mailing list