tronic
(usa Debian)
Enviado em 02/12/2008 - 07:18h
################ smb.conf ##########################
####################################################
workgroup = ID
server string = Servidor de Arquivos
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
password level = 8
username level = 8
unix password sync = Yes
log level = 1
log file = /var/log/samba/log.%m
max log size = 50
read raw = No
write raw = No
name resolve order = wins lmhosts bcast
time server = Yes
keepalive = 20
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u
logon script = %G.bat
logon path = \\%L\Profiles\%U
logon drive = F:
domain logons = Yes
os level = 99
preferred master = Yes
domain master = Yes
dns proxy = No
wins support = Yes
printing = cups
print command = /usr/bin/lpr -P%p -r %s
lpq command = /usr/bin/lpq -P%p
lprm command = /usr/bin/lprm -P%p %j
lppause command = /usr/sbin/lpc hold %p %j
lpresume command = /usr/sbin/lpc release %p %j
queuepause command = /usr/sbin/lpc -P%p disable
queueresume command = /usr/sbin/lpc -P%p enable
case sensitive = No
winbind enum groups = yes
winbind nested groups = yes
passdb backend = ldapsam:ldap://127.0.0.1
ldap suffix = dc=id
ldap machine suffix = ou=computadores
ldap user suffix = ou=usuarios
ldap group suffix = ou=grupos
ldap admin dn = cn=admin,dc=id
ldap delete dn = no
domain logons = yes
enable privileges = yes
idmap backend=ldap:ldap://127.0.0.1
idmap uid=10000-20000
idmap giu=10000-20000
[homes]
comment = Diretós dos Usuáarios
browseable = No
[netlogon]
comment = Network Logon Service
path = /home/netlogon
guest ok = no
browseable = No
share modes = No
[home]
comment = Diretorio Home
path = /home
read only = No
create mask = 0777
directory mask = 0770
[Profiles]
comment = Network User Profiles
path = /home/profiles
read only = No
create mask = 0777
directory mask = 0770
################ slapd.conf ########################
####################################################
include /etc/ldap/schema/core.schema
include /etc/ldap/schema/cosine.schema
include /etc/ldap/schema/nis.schema
include /etc/ldap/schema/inetorgperson.schema
include /etc/ldap/schema/samba.schema
include /etc/ldap/schema/misc.schema
pidfile /var/run/slapd/slapd.pid
argsfile /var/run/slapd/slapd.args
loglevel 0
modulepath /usr/lib/ldap
moduleload back_bdb
sizelimit 500
tool-threads 1
backend bdb
checkpoint 512 30
database bdb
suffix "dc=id"
directory "/var/lib/ldap"
dbconfig set_cachesize 0 2097152 0
dbconfig set_lk_max_objects 1500
dbconfig set_lk_max_locks 1500
dbconfig set_lk_max_lockers 1500
index objectClass eq
lastmod on
access to attrs=userPassword,shadowLastChange
by dn="cn=admin,dc=id" write
by anonymous auth
by self write
by * none
access to dn.base="" by * read
access to *
by dn="cn=admin,dc=id" write
by * read