Samba

From wiki.techunit.org
Jump to: navigation, search

Authenticating Samba with OpenLDAP

This article provides a guide to use OpenLDAP authentication on Samba.

Minimal configuration

This configuration is for a guest only share. Good for create a simple share for Windows at home.

[global]
workgroup = WORKGROUP
server string = %h server (Samba)
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
security = user
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
guest account = nobody
load printers = yes
printing = cups
printcap name = cups
usershare allow guests = yes
guest account = nobody

[public]
comment = Public Shares
path = /srv/downloads
browsable = yes
writable = yes
read only = no
guest only = yes
guest ok = yes
create mask = 0644
directory mask = 0755

Elliot
techUnit's cofounder