[global]

    workgroup = HOME
    server string = SAMBA
    passwd program = /usr/local/sbin/smbldap-passwd.pl -o %u
    passwd chat = *new*password* %n\n *new*password* %n\n *successfully*
    unix password sync = yes
    hosts allow = 192.168.0. 127.
    idmap uid = 10000-15000
    idmap gid = 10000-15000 
    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

    ldap suffix = "dc=setran,dc=pa,dc=gov,dc=br"
    ldap admin dn = "cn=admin,dc=setran,dc=pa,dc=gov,dc=br"
    ldap filter = "(%(uid=%u) (objectclass=sambaAccount))"
    ldap port = 389
    ldap server = 127.0.0.1
    ldap ssl = no

    add user script = /usr/local/sbin/smbldap-useradd.pl -w %u
    
    ;domain admin group = @root
    ;admin users = @root
    
    log file = /var/log/samba-alpha-ldap/log.%m
    max log size = 50
   
    security = user
    encrypt passwords = yes
    os level = 80
    password level = 0
    username level = 1 
    local master = yes
    domain master = yes
    domain logons = yes
    wins support = yes

[homes]
    comment = Home Directories
    browseable = no
    writable = yes

[netlogon]
    comment = Network Logon Service
    path = /usr/local/samba-alpha-ldap/profiles/netlogon
    guest ok = yes
    writable = no
    share modes = no
    root preexec = /usr/local/samba-alpha-ldap/profiles/netlogon/login.pl %U
    root postexec = /usr/local/samba-alpha-ldap/profiles/netlogon/logout.pl %U

