View previous topic :: View next topic |
Author |
Message |
MHL Apprentice
Joined: 15 Jun 2004 Posts: 197
|
Posted: Fri Dec 09, 2005 7:03 am Post subject: samba +mysql mysqlsam problem |
|
|
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 |
|
|
slam_head Guru
Joined: 06 Jan 2003 Posts: 449 Location: New York City
|
Posted: Fri Dec 09, 2005 4:48 pm Post subject: |
|
|
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 |
|
|
MHL Apprentice
Joined: 15 Jun 2004 Posts: 197
|
Posted: Fri Dec 09, 2005 9:34 pm Post subject: |
|
|
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.
|
|
Back to top |
|
|
|