Part 3
【リスト9】  LDAPサーバー用のsmb.conf

[global]
    dos charset = CP932
    unix charset = EUCJP-MS
    display charset = CP932
    workgroup = SAMBA30
    passdb backend = ldapsam
    ldap suffix = dc=miraclelinux,dc=com
    ldap machine suffix = ou=Computers
    ldap user suffix = ou=Users
    ldap group suffix = ou=Groups
    ldap idmap suffix = ou=idmap
    ldap admin dn = cn=Manager,dc=miraclelinux,dc=com
    ldap delete dn = yes
    add machine script = /usr/local/sbin/smbldap-useradd.pl -m '%u'
    add user script = /usr/local/sbin/smbldap-useradd.pl '%u'
    delete group script = /usr/local/sbin/smbldap-groupdel.pl '%g'
    add group script = /usr/local/bin/smbgroupadd.sh '%g'
    add user to group script = /usr/local/bin/smbadduser2group.sh '%u' '%g'
    delete user from group script = /usr/local/bin/smbdeluser_group.sh '%u '%g'
    delete user script = /usr/local/sbin/userdel.pl '%u'
    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    domain logons = Yes
    domain master = Yes
    os level = 64
    wins support = yes
    dos filetimes = Yes
    dos filetime resolution = Yes
[homes]
    comment = %S's Home Directories
    read only = No
    browseable = No
[NETLOGON]
    comment = Script for Domain Logon
    path = /var/samba/netlogon
[profiles]
    path = /var/samba/profiles
    writeable = yes
    browseable = no
    create mode = 0600
    directory mode = 0700

閉じる