[Samba] 3.0.10 mysql pdbedit
Peter Stickney
pstickney at pvpsc.com
Tue May 17 19:24:06 GMT 2005
That did it! I thought I had tried that, but apparently not. I guess
the only reason I was getting the host, user and database correctly
output from pdbedit was because it is the default values, and it wasnt
actually getting read from the conf file.
Sorry about hijacking this thread too. Accidental.
thanks
-peter
anton at abutsyk.sumy.ua wrote:
>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
>>
>>
>>
>
>
>
--
*Peter Stickney*
Systems Administrator / Network Administrator / IT Specialist
Prescription & Surgical Center - Executive Offices - Long Term Care -
InfusionCare
Phone: (401) 821-5721
Fax: (401) 822-1656 ATTN: Peter Stickney
*Pawtuxet Valley Executive Offices*
65 Sandy Bottom Rd.
Coventry, RI 02816
Phone: (401) 821-5721
Fax: (401) 822-1656
More information about the samba
mailing list