[Samba] Authentication problem with Mysql backend

Rodrigo De la Pena rodelapena at calipso.com.co
Wed Oct 26 19:44:10 GMT 2005


i'm using samba-3.0.20b, 

"did you create the unix user-account aswell ??"
do i have to create the accounts in the OS to use them with mysql? 
i create the account "rodelapena" whith its passwd and it failed by
NT_STATUS_BAD_NETWORK_NAME, in theory the authentication worked, but it
wont be necessary to create an OS account to could use it in mysql, am i
wrong??.

i made the changes to the smb.conf that you suggested me before the
creation of the OS account and authentication failed again. 

thanks.

On Wed, 2005-10-26 at 09:14 +0200, Collen Blijenberg wrote:
> Whoh man...
> 
> did you create the unix user-account aswell ??
> 
> also try to change these settings:
> 
> -> encrypt passwords = YES
> -> passdb backend = mysql:mysql
> -> #mysql:username column = username:
> -> #mysql:lanman pass column = lm_pw:
> -> #mysql:nt pass column = nt_pw:
> -> #mysql:plain pass column = plain_pw:
> -> #mysql:unknown_3 column = NULL
> 
> also what version of samba do you use ??
> 
> 
> 
> Rodrigo De la Pena wrote:
> > hi,
> > 
> > /****************************************************
> > i'm trying to configure samba with the mysql backend but it doesn't
> > work. my smb.conf file is this:
> > /****************************************************
> > #BOF
> > [global]
> > security = user
> > workgroup = CABRERA
> > encrypt passwords = no
> > ;passdb backend = mysql:/usr/local/samba/lib/pdb/mysql.so
> > passdb backend = mysql:mysql
> > mysql:mysql host = localhost
> > mysql:mysql user = samba
> > mysql:mysql password = abmas
> > mysql:mysql database = samba
> > mysql:mysql table = user
> > 
> > mysql:username column = username:
> > mysql:lanman pass column = lm_pw:
> > mysql:nt pass column = nt_pw:
> > ;mysql:plain pass column = plain_pw:
> > mysql:unknown_3 column = NULL
> > 
> > #EOF
> > 
> > /****************************************************
> > when i run smbclient it fails
> > /****************************************************
> > 
> > [root at ns ~]# smbclient  //localhost/rodelapena -U rodelapena -d 10
> > /****************************************************
> > the dir exists in the route showed up. //home2/rodelapena/
> > 
> > 
> > i don't know what is going on, the pdbedit command fails when i try to
> > create an user but doesn't when i update it.
> > 
> > I'm very new in samba, if you can help me with this problem i'll thank
> > you ever.
> > 
> > Thanks a lot.
> > /****************************************************
> > 
> > 
> > 
> > 
> 
-- 
Rodrigo De la Peña
Soporte Corporativo
Calipso Comunicaciones



More information about the samba mailing list