All pastes #468601 Raw Edit

Someone

public text v1 · immutable
·published 2007-05-03 06:57 UTC
rendered paste body
[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
   netbios name = chef
   workgroup = unipi.gr

# server string is the equivalent of the NT Description field
   server string = %h
#Ldap thingies
ldap passwd sync = Yes
passdb backend = ldapsam:ldap://x.x.x.x/
ldap admin dn = cn=koko,dc=lala
ldap suffix = dc=lala
ldap user suffix = ou=users
ldap group suffix = ou=groups
ldap machine suffix = ou=computers

add user script = /usr/sbin/smbldap-useradd -m "%u"
add machine script = /usr/sbin/smbldap-useradd -w "%u"
add group script = /usr/sbin/smbldap-groupadd -p "%g"
add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"

delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g"
set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u"

dns proxy = no
preferred master = yes
domain master = yes
domain logons = yes
logon drive = p:
logon home = \\%h\%U
logon path = \\%h\Profiles
logon script = logon.bat
os level = 99
hosts allow = 10.1.0.0/16 127.0.0.1
hosts deny = ALL
interfaces = 10.1.0.0/255.255.0.0 127.0.0.1
bind interfaces only = yes

syslog = 0

# Do something sensible when Samba crashes: mail the admin a backtrace
   panic action = /usr/share/samba/panic-action %d


####### Authentication #######


   security = user

   encrypt passwords = true
   obey pam restrictions = yes
   guest account = nobody
;   invalid users = root

   passwd program = /usr/sbin/smbldap-passwd %u
   passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .