Hi all, I have compiled samba3.0.0beta1 with the options: ./configure --enable-static=yes --with-smbmount --with-ldapsam I'm using "passdb backend = ldapsam:ldap://localhost" and when I try to add a user using smbpasswd I got the message: Error loading module '/usr/local/samba/lib/pdb/ldapsam.so': /usr/local/samba/lib/pdb/ldapsam.so: cannot open shared object file: No such file or directory No builtin nor plugin backend for ldapsam found Loading ldapsam:ldap://localhost failed What else do I have to do? Please, sombebody help me. Thanks
Hi Fabricio, check first if you have installed the LDAP headers and libraries (openldap2-devel). Look also in the source/config.log if ldap is used. Hubertus -----Urspr?ngliche Nachricht----- Von: Fabricio Adorno [mailto:fabricio@dr.ufu.br] Gesendet: Donnerstag, 12. Juni 2003 20:30 An: Samba@lists.samba.org Betreff: [Samba] LDAP problem Hi all, I have compiled samba3.0.0beta1 with the options: ./configure --enable-static=yes --with-smbmount --with-ldapsam I'm using "passdb backend = ldapsam:ldap://localhost" and when I try to add a user using smbpasswd I got the message: Error loading module '/usr/local/samba/lib/pdb/ldapsam.so': /usr/local/samba/lib/pdb/ldapsam.so: cannot open shared object file: No such file or directory No builtin nor plugin backend for ldapsam found Loading ldapsam:ldap://localhost failed What else do I have to do? Please, sombebody help me. Thanks -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Hi Bartkowski, Thanks very much, that solved the problem. ------------------------------------ Hi Fabricio, check first if you have installed the LDAP headers and libraries (openldap2-devel). Look also in the source/config.log if ldap is used. Hubertus -----Urspr?ngliche Nachricht----- Von: Fabricio Adorno [mailto:fabricio@dr.ufu.br] Gesendet: Donnerstag, 12. Juni 2003 20:30 An: Samba@lists.samba.org Betreff: [Samba] LDAP problem Hi all, I have compiled samba3.0.0beta1 with the options: ./configure --enable-static=yes --with-smbmount --with-ldapsam I'm using "passdb backend = ldapsam:ldap://localhost" and when I try to add a user using smbpasswd I got the message: Error loading module '/usr/local/samba/lib/pdb/ldapsam.so': /usr/local/samba/lib/pdb/ldapsam.so: cannot open shared object file: No such file or directory No builtin nor plugin backend for ldapsam found Loading ldapsam:ldap://localhost failed What else do I have to do? Please, sombebody help me. Thanks
We use samba 2.2.8a, openldap 2.1.12
When adding a workstation to the PDC normally a machine account is added with a
script (e.g. /usr/local/bin/smbaddmachine). The script runs with the userid
root.
That is neccesary because smbpasswd requires root-id for running:
smbpasswd -m -a machinename
We have written a shellscript that works fine: an account is added to the LDAP
tree
and sambaaccount is added with smbpasswd. It works only from the commandline
and it must be run as root because of smbpasswd.
When using this script from an unattend install from a W2K client it won't
work
because root is in /etc/passwd and not in de LDAP tree. But we can't add
root as a
samba account because root is not in de LDAP tree. So we can't use root as
account to run the script.
Using another userid is not possible because smbpasswd requires root. Sudo
smbpasswd won't because all samba userid are not in /etc/passwd but in de
LDAP
tree and therefore they can't run sudo.
Any idea how to solve this problem?
Met vriendelijke groet/Regards,
Prompt
R.J. Baart
Marktveldpassage 35c
5261 ED Vught
Netherlands
Mailto:R.J.Baart@Prompt.NL
Http://WWW.Prompt.NL
Tel.: +31 73 6567041
Fax.: +31 73 6573513