[Samba] pdb_mysql question...
Jelmer Vernooij
jelmer at samba.org
Sat Sep 27 16:35:45 GMT 2003
Hi,
On Sat, Sep 27, 2003 at 05:35:15PM +0100, Luís Miguel Silva wrote about '[Samba] pdb_mysql question...':
> Iam trying to install samba 3.0 with pdb_mysql support though im getting some trouble i cant understand.
> After reading the output of ./configure --help, i used the following configure args:
> ./configure --with-expsam=xml,mysql --with-pam --with-pam_smbpass
> make
> make install
> then i took a look at ./examples/pdb/mysql/smb.conf and:
> root at auth /usr/src/installs/samba-3.0.0/examples/pdb/mysql# cat smb.conf
> [global]
> netbios name = FOOBAR
> workgroup = TESTGROUP
> security = domain
> domain logons = yes
> domain master = yes
> passdb backend = plugin:/usr/local/samba/lib/pdb_mysql.so:mysql
> mysql:mysql host = rhonwyn
> mysql:mysql user = samba
> mysql:mysql password = ambas
> mysql:mysql database = samba
> root at auth /usr/src/installs/samba-3.0.0/examples/pdb/mysql# ls -l /usr/local/samba/lib/pdb_mysql.so
> /bin/ls: /usr/local/samba/lib/pdb_mysql.so: No such file or directory
> root at auth /usr/src/installs/samba-3.0.0/examples/pdb/mysql# ls -l /usr/local/samba/lib/pdb/mysql.so
> -rwxr-xr-x 1 root root 270098 Sep 27 17:15 /usr/local/samba/lib/pdb/mysql.so*
> root at auth /usr/src/installs/samba-3.0.0/examples/pdb/mysql#
> So i made up a simple test with:
> root at auth /usr/src/installs/samba-3.0.0/examples/pdb/mysql# cat /usr/local/samba/lib/smb.conf
> [global]
> netbios name = FOOBAR
> workgroup = TESTGROUP
> security = domain
> domain logons = yes
> domain master = yes
> passdb backend = plugin:/usr/local/samba/lib/pdb/mysql.so:mysql
> mysql:mysql host = localhost
> mysql:mysql user = samba
> mysql:mysql password = ambas
> mysql:mysql database = samba
> root at auth /usr/src/installs/samba-3.0.0/examples/pdb/mysql#
> It booted up correctly but when i try to had a user i get:
> root at auth /usr/local/samba/bin# ./smbpasswd -a lms
> New SMB password:
> Retype new SMB password:
> No builtin nor plugin backend for plugin found
> Loading plugin:/usr/local/samba/lib/pdb/mysql.so:mysql failed!
> Failed initialise SAM_ACCOUNT for user lms.
> Failed to modify password entry for user lms
> root at auth /usr/local/samba/bin#
> Can anybody tell me how to solve this? i cant find this "error" mentioned anywhere on the net.
> I need to upgrade a server to use this auth in a couple of days so im pretty desperate.
Try the following in your smb.conf:
passdb backend = mysql:mysql
(the 'plugin' backend is obsolete).
Jelmer
--
Jelmer Vernooij <jelmer at nl.linux.org> - http://jelmer.vernstok.nl/
More information about the samba
mailing list