Let's start configuring the smbldap-tools scripts ...
. workgroup name: name of the domain Samba act as a PDC workgroup name [easy-pdc] > . netbios name: netbios name of the samba controler netbios name [PDC] > . logon drive: local path to which the home directory will be connected (for NT Workstations). Ex: 'H:' logon drive [H:] > . logon home: home directory location (for Win95/98 or NT Workstation). (use %U as username) Ex:'\\PDC\%U' logon home (press the "." character if you don't want homeDirectory) [\\PDC\%U] > . logon path: directory where roaming profiles are stored. Ex:'\\PDC\profiles\%U' logon path (press the "." character if you don't want roaming profile) [\\PDC\profiles\%U] > . (输入“.”) . home directory prefix (use %U as username) [/home/%U] > . default users' homeDirectory mode [700] > . default user netlogon script (use %U as username) [%U.bat] > default password validation time (time in days) [45] > . ldap suffix [dc=easy,dc=com] > . ldap group suffix [ou=Groups] > . ldap user suffix [ou=Users] >
继续smb.conf文件内容:
详细配置内容: . ldap machine suffix [ou=Computers] > . Idmap suffix [ou=Idmap] > . sambaUnixIdPooldn: object where you want to store the next uidNumber and gidNumber available for new users and groups sambaUnixIdPooldn object (relative to ${suffix}) [sambaDomainName=easy-pdc] > . ldap master server: IP adress or DNS name of the master (writable) ldap server ldap master server [127.0.0.1] > . ldap master port [389] > . ldap master bind dn [cn=Manager,dc=easy,dc=com] > . ldap master bind password [] > jinbiao (Samba admin dn的ldap管理密码) . ldap slave server: IP adress or DNS name of the slave ldap server: can also be the master one ldap slave server [127.0.0.1] > . ldap slave port [389] > . ldap slave bind dn [cn=Manager,dc=easy,dc=com] > . ldap slave bind password [] > jinbiao (Samba admin dn的ldap管理密码) . ldap tls support (1/0) [0] > . SID for domain easy-pdc: SID of the domain (can be obtained with 'net getlocalsid PDC') SID for domain easy-pdc [S-1-5-21-2425048407-535062381-2029233160] > . unix password encryption: encryption used for unix passwords unix password encryption (CRYPT, MD5, SMD5, SSHA, SHA) [SSHA] > . default user gidNumber [513] > . default computer gidNumber [515] > . default login shell [/bin/bash] >