Autentificación LDAP y servidor SAMBA

23 12 2010

Para utilizar la autentificación de LDAP en un servidor SAMBA hay que seguir los siguientes pasos:

# apt-get install libnss-ldap nscd

Configurar los parámetros en el archivo /etc/ldap.conf

host IP
base dc=domain
uri ldap:///IP
ldap_version 2
rootbinddn cn=root,dc=domain
pam_password md5

Cambiar la configuración de nsswitch.conf:

passwd: compat ldap
group: compat ldap
shadow: compat ldap

comprobar que todo funciona:

# getent passwd

modificar samaba /etc/samba/smb.conf:

security = user
encrypt passwords = true
#passdb backend = tdbsam
passdb backend = ldapsam:ldap://IP
ldap admin dn = cn=root,dc=domain
ldap suffix = dc=domain
ldap user suffix = ou=Domains
ldap group suffix = ou=Groups
ldap ssl = no
obey pam restrictions = yes
invalid users = root
pam password change = no

Comprobar que funciona samba:

# smbclient //IP/disk -U user

Advertisements

Actions

Information

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




%d bloggers like this: