1 2 3 4 5 6 | ;LDAP-specific settings ldap admin dn = "cn=Manager,dc=syroidmanor,dc=com" ldap server = localhost ldap port = 389 ldap ssl = no ldap suffix = "ou=Users,dc=syroidmanor,dc=com" |
1 | smbpasswd -w |
1 2 3 4 5 6 7 8 9 | ;password sync passwd program = /usr/local/sbin/smbldap-passwd.pl -o %u passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated* unix password sync = Yes ;automatically add trust accounts add user script = /usr/local/sbin/smbldap-useradd.pl -m -d /dev/null -g computers -s /bin/false |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | # /usr/local/samba/lib/smb.conf # samba configuration file # last updated: 4/19/2002 by tms [global] ;basic server settings workgroup = SYROIDMANOR netbios name = THOR server string = Samba-LDAP PDC running %v socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192 DC and master browser settings os level = 64 preferred master = yes local master = yes domain master = yes wins support = yes ;security and logging settings security = user encrypt passwords = yes log file = /var/log/samba/log.%m log level = 2 max log size = 50 hosts allow = 127.0.0.1 192.168.1.0/255.255.255.0 ;password sync passwd program = /usr/local/sbin/smbldap-passwd.pl -o %u passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated* unix password sync = Yes ;LDAP-specific settings ldap admin dn = "cn=Manager,dc=syroidmanor,dc=com" ldap server = localhost ldap port = 389 ldap ssl = no ldap suffix = "ou=Users,dc=syroidmanor,dc=com" ;user profiles and home directory logon home = \\%L\%U\ logon drive = H: logon path = \\%L\profiles\%U logon script = netlogon.bat ;automatically add trust accounts add user script = /usr/local/sbin/smbldap-useradd.pl -m -d /dev/null -g computers -s /bin/false # ==== shares ==== [homes] comment = Home Directories valid users = %S browseable = no writeable = yes create mask = 0664 directory mask = 0775 [profiles] path = /home/samba/profiles writeable = yes browseable = no create mask = 0600 directory mask = 0700 [netlogon] comment = Network Logon Service path = /home/netlogon read only = yes browseable = no write list = tom |
1 | /etc/init.d/smb start [或者如果 Samba 已经运行,restart] |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |