[Samba] 3.0.10 mysql pdbedit
anton at abutsyk.sumy.ua
anton at abutsyk.sumy.ua
Tue May 17 18:43:34 GMT 2005
Hi
Follow the sample come with samba source:
---------
[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
----------
In your smb.conf just replace as above:
...
passdb backend = mysql:kodos
kodos:mysql user = samba
kodos:mysql password = samba
...
-butsyk
> Hello -
>
> A little mysql/samba help if I can get it.
>
> I'm running samba 3.0.10.
>
> configured with : ./configure --with-mysql-prefix=/usr
> --prefix=/usr/local/samba-3.0.10 --with-expsam=mysql
>
> [smb.conf]
> netbios name= KODOS
> passdb backend = mysql:mysql
> kodos:mysql user = samba
> kodos:mysql password = samba
> kodos:mysql database = samba
> kodos:domain column = 'PVPSC'
> kodos:fullname column = CONCAT(firstname, ' ', surname);
> kodos:lanman pass column = lm_pass;
> kodos:nt pass column = nt_pass;
> kodos:unknown 3 column = NULL
>
> when I run "pbdedit -L" as a test of the mysql plugin I get:
>
> Connecting to database server, host: localhost, user: samba, password: ,
> database: samba, port: 3306
> Failed to connect to mysql database: error: Access denied for user:
> 'samba at localhost' (Using password: NO)
> pdb backend mysql:mysql did not correctly init (error was
> NT_STATUS_UNSUCCESSFUL)
> Loading mysql:mysql failed!
>
> What concerns me is the blank password that pdbedit returns. There is a
> password defined it the conf file, but it looks like it doesn't make it
> over to here. I made created the mysql user already:'
>
> GRANT ALL PRIVILEGES ON samba.* TO 'samba'@'localhost' IDENTIFIED BY
> 'samba' WITH GRANT OPTION;
>
> Anyone have a similiar issue? Or am I missing something simple?
>
> thanks
>
> -peter
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/listinfo/samba
>
More information about the samba
mailing list