Author: ben36
Date: 02-02-09 01:19
Hi i have been trying to get the pam_mysql to work following the http://www.freebsddiary.org/samba-pam.php tutorial.
The error i get is:
smbclient \\\\localhost\\ben
Unknown parameter encountered: "revalidate"
Ignoring unknown parameter "revalidate"
Password:
session setup failed: NT_STATUS_ACCESS_DENIED
Here is the samba log:
check_ntlm_password: Checking password for unmapped user [Site]\[ben]@[127.0.0.1] with the new password interface
[2009/02/02 01:09:22, 3] auth/auth.c:check_ntlm_password(224)
check_ntlm_password: mapped user is: [Site1]\[ben]@[127.0.0.1]
[2009/02/02 01:09:22, 3] smbd/sec_ctx.c:push_sec_ctx(208)
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2009/02/02 01:09:22, 3] smbd/uid.c:push_conn_ctx(358)
push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2009/02/02 01:09:22, 3] smbd/sec_ctx.c:set_sec_ctx(241)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2009/02/02 01:09:22, 0] auth/pampass.c:smb_pam_auth(534)
smb_pam_auth: PAM: UNKNOWN ERROR while authenticating user ben
[2009/02/02 01:09:22, 2] auth/pampass.c:smb_pam_error_handler(73)
smb_pam_error_handler: PAM: Authentication Failure : Permission denied
[2009/02/02 01:09:22, 0] auth/pampass.c:smb_pam_passcheck(809)
smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User ben !
[2009/02/02 01:09:22, 3] smbd/sec_ctx.c:pop_sec_ctx(356)
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2009/02/02 01:09:22, 2] auth/auth.c:check_ntlm_password(319)
check_ntlm_password: Authentication for user [ben] -> [ben] FAILED with error NT_STATUS_ACCESS_DENIED
[2009/02/02 01:09:22, 3] smbd/error.c:error_packet_set(106)
error packet at smbd/sesssetup.c(1498) cmd=115 (SMBsesssetupX) NT_STATUS_ACCESS_DENIED
[2009/02/02 01:09:22, 3] smbd/process.c:timeout_processing(1329)
timeout_processing: End of file from client (client has disconnected).
[2009/02/02 01:09:22, 3] smbd/sec_ctx.c:set_sec_ctx(241)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2009/02/02 01:09:22, 3] smbd/connection.c:yield_connection(69)
Yielding connection to
[2009/02/02 01:09:22, 3] smbd/server.c:exit_server_common(768)
Server exit (normal exit)
Here is the smb.conf
[global]
workgroup = mwg
netbios name = site1
server string = Server
client plaintext auth = Yes
security = USER
log level = 3
log file = /var/log/samba/new.log
encrypt passwords = No
update encrypted = No
allow trusted domains = Yes
null passwords = No
revalidate = No
[Share]
comment = Public Share
path = /home/share
valid users = ben
force group = staff
writeable = Yes
Finally here is at /etc/pam.d/samba
auth required pam_mysql.so user=groupoffice passwd=xxxxxx db=groupoffice table=go_users usercolumn=username passwdcolumn=password crypt=2
auth account pam_mysql.so user=groupoffice passwd=xxxxxx db=groupoffice table=go_users usercolumn=username passwdcolumn=password crypt=2
auth password pam_mysql.so user=groupoffice passwd=xxxxxx db=groupoffice table=go_users usercolumn=username passwdcolumn=password crypt=2
auth session pam_mysql.so user=groupoffice passwd=xxxxxx db=groupoffice table=go_users usercolumn=username passwdcolumn=password crypt=2
I am not using the exact schema from the mysql.
I get wrong password and unknown user errors correctly so i know its communicating correctly
Any help offered will be appreciated
|
|