Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
samba +mysql mysqlsam problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
MHL
Apprentice
Apprentice


Joined: 15 Jun 2004
Posts: 197

PostPosted: Fri Dec 09, 2005 7:03 am    Post subject: samba +mysql mysqlsam problem Reply with quote

Hi all,

I use mysql as backend authentication for Samba.
it seems the samba can connect to the mysql database
but I can't get authentication.
when I type pdbedit -L
it shows my user account.
I think it is my samba configuration problem.
can anyone please give me a hand?

thank you.

here is my smb.conf ( I am running on samba 3.0.20b and mysql 5.0.16-r3)
Quote:

[global]
passdb backend = mysql:foo

workgroup = homegroup
server string = samba file services at WORKGROUP-NAME
security = USER
#must be set to 'no' to use MySQL
encrypt passwords = No
update encrypted = No
#allow trusted domains = Yes
#min password length = 6
#null passwords = No
foo:mysql host = localhost
#can be changed to remote host
foo:mysql password = sambapass
foo:mysql user = samba
foo:mysql database = samba_auth
foo:mysql port = 3306
foo:table = user
foo:domain column = 'LOCALDOMAIN':
foo:username column = username:
foo:lanman pass column = lm_pw:
foo:nt pass column = nt_pw:
foo:unknown 3 column = NULL
#revalidate = No

[homes]
browserable = no
writeable = Yes
[public]
path = /home/public
valid users = sample
writeable = Yes
guest ok = No
Back to top
View user's profile Send private message
slam_head
Guru
Guru


Joined: 06 Jan 2003
Posts: 449
Location: New York City

PostPosted: Fri Dec 09, 2005 4:48 pm    Post subject: Reply with quote

Although mysql is supported in samba it is not widely used and therefore not widely tested. If you plan to use this for a production system, I would strongly recomend you use an LDAP backend.
Back to top
View user's profile Send private message
MHL
Apprentice
Apprentice


Joined: 15 Jun 2004
Posts: 197

PostPosted: Fri Dec 09, 2005 9:34 pm    Post subject: Reply with quote

yeah, I know, I googled it and couldn't find much helpful information.

the reason I use mysql is suppose simple compare to LDAP and I can use php to manage all the users.

anyway, thanks for responding.

I will try to dig more out from google then.
:D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum