Samba4 should use ldapsam passdb backend as it was in samba3 to interact with LDAP.However in samba4 package there is no ldapsam.so module. Only ldap.so which actually has ldapsam support.<br />
The problem is when i do like this in smb.conf:<br />
passdb backend = ldapsam:"<a href="ldaps://<my">ldaps://<my</a> [<a href="ldaps://<my" target="_blank">^</a>] ldap server>"<br />
samba complains on : <br />
/usr/lib64/samba/pdb/ldapsam.so: cannot open shared object file: No such file or directory<br />
If i do like this:<br />
passdb backend = ldap:ldapsam:"<a href="ldaps://<my">ldaps://<my</a> [<a href="ldaps://<my" target="_blank">^</a>] ldap server>"<br />
samba complains on : Plugin is available, but doesn't register passdb backend ldap<br />
<br />
The only one solution i came up with was simply to create a symlink like this:<br />
ln -s /usr/lib64/samba/pdb/ldap.so /usr/lib64/samba/pdb/ldapsam.so<br />
<br />
And this actually solved my problem.<br />
There was a same problem with Fedora18 long ago but they fixed it and put changes in their repo.<br />
<br />
Here is the link to the problem :<br />
<a href="https://bugzilla.redhat.com/show_bug.cgi?id=908353">https://bugzilla.redhat.com/show_bug.cgi?id=908353</a> [<a href="https://bugzilla.redhat.com/show_bug.cgi?id=908353" target="_blank">^</a>]<br />
<br />
Can you apply the same fix for samba4 package for Centos?<br />
<br />
Thank You.
↧