[samba] office-server: samba+ldap+...
Maks Re
=?iso-8859-1?q?admaks_=CE=C1_gmail=2Ecom?=
Чт Июл 24 16:03:22 MSD 2008
где то-так
# cat /etc/samba/smb.conf|grep ^[^#]
[global]
server string = Server SRV-1
workgroup = Star
netbios name = srv-1
printcap name = cups
load printers = yes
printing = cups
log file = /var/log/samba/log.%m
max log size = 512
log level = 4
hosts allow = 192.168.47. 127.
security = domain
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
unix password sync = No
socket options = TCP_NODELAY
interfaces = 192.168.47.1/24
local master = yes
os level = 255
domain master = yes
preferred master = yes
wins support = yes
dns proxy = no
use sendfile = yes
passdb backend = ldapsam:ldap://srv-1.star.spb.ru
ldap ssl = off
ldap admin dn = "cn=admin,dc=star,dc=spb,dc=ru
ldap suffix = dc=star,dc=spb,dc=ru
admin users = admin
ldap admin dn = "cn=admin,dc=star,dc=spb,dc=ru
ldap user suffix = ou=People
ldap group suffix = ou=Group
ldap machine suffix = ou=Computers
ldap delete dn = no
ldap passwd sync = yes
add machine script = /usr/sbin/smbldap-useradd -w %u
add user script = /usr/local/sbin/smbldap-useradd -m %u
delete user script = /usr/sbin/smbldap-userdel "%u"
add group script = /usr/sbin/smbldap-groupadd -p "%g"
delete group script = /usr/sbin/smbldap-groupdel "%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
[homes]
comment = Home Directory for '%u'
browseable = no
writable = yes
[share]
create mask = 0765
read only = No
only guest = yes
guest ok = Yes
path = /home/smb/shared
comment = Common shares
public = yes
writable = yes
printable = no
[bases]
create mask = 0765
read only = No
only guest = yes
guest ok = Yes
path = /home/smb/bases
comment = Bases shares
public = yes
writable = yes
printable = no
--
С уважением,
Макс.
Подробная информация о списке рассылки Samba