Configure samba with PAM point 2 different LDAP

Hi,

I would like to configure samba with PEM (with LDAP). I've already found, on the server, configured the PAM Authentication(with LDAP) for ssh. I wanted to know if it was possible to configure PAM for to authenticate to another LDAP only for SAMBA.
Is possibile duplicate the /etc/pam_ldap.conf let it point to another LDAP and then configure SAMBA to use this new file?

The /etc/pam_ldap.conf

#####################
uri ldap://server1
uri ldap://server2

base group ou=esercizio,ou=Groups,dc=soc
base passwd ou=esercizio,ou=People,dc=soc
base shadow ou=esercizio,ou=People,dc=soc


scope passwd onelevel
#filter passwd (eraccountpamstatus=0)
scope group onelevel
scope shadow onelevel

base dc=soc
#uid nslcd
#gid ldap

ssl start_tls
tls_cacertdir /etc/openldap/cacerts
#####################

Thanks

Marcello

Samba can interact directly with LDAP without the need for PAM.

password server = XXXXXX

You may also need some other fields like security.

Thanks for reply,
it is possible to authenticate SAMBA with PAM in a different LDAP?
I already configured PAM with another LDAP (that is different from LDAP for SAMBA)