[Samba] Problems configuring samba with pam_mysql auth -
NT_STATUS_NO_SUCH_USER / NT_STATUS_LOGON_FAILURE
Collen Blijenberg
collen at hermanjordan.nl
Thu Nov 27 09:42:23 GMT 2008
Hi,
did you setup nss ???
since pam is for auth only, you still need the usernames.. (and there
for nsswitch)
or add them in /etc/passwd. (but then you can skip pam aawel ..)
Cheers, Collen
btw there are 2 mysql-nsswitch prodjects.. so you can use the auth data
base for it as well..
René KIRSCHNER wrote:
> Hello everyone,
>
> First of all...sorry for this monster post, but I have tried to insert every potentially useful information. :)
>
> The last days I vainly tried to implement a samba server with MySQL authentication on one of our servers (Debian 2.6.27.5). The server shall provide fileshare services to some Mac clients (OS 10.4.11). Mail is already running with pam_mysql auth against the mail user database, so we wanted to use it synchronously for samba auth. I just copied the settings from /etc/pam.d/smtp to /etc/pam.d/samba (I additionally enabled sqllog and verbose mode for debugging). When trying to connected with smbclient directly on the server, I receive the following error message:
>
> NT_STATUS_LOGON_FAILURE
>
> --------------------------------------------------------------------------
>
> [2008/11/25 16:03:40, 3] smbd/sec_ctx.c:set_sec_ctx(324)
> setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
> [2008/11/25 16:03:40, 3] smbd/sec_ctx.c:pop_sec_ctx(432)
> pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
> [2008/11/25 16:03:40, 2] auth/auth.c:check_ntlm_password(318)
> check_ntlm_password: Authentication for user [admin] -> [admin] FAILED with error NT_STATUS_NO_SUCH_USER
> [2008/11/25 16:03:40, 3] smbd/error.c:error_packet_set(61)
> error packet at smbd/sesssetup.c(1725) cmd=115 (SMBsesssetupX) NT_STATUS_LOGON_FAILURE
> [2008/11/25 16:03:40, 3] smbd/process.c:smbd_process(2035)
> receive_message_or_smb failed: NT_STATUS_END_OF_FILE, exiting
> [2008/11/25 16:03:40, 3] smbd/sec_ctx.c:set_sec_ctx(324)
> setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
> [2008/11/25 16:03:40, 3] smbd/connection.c:yield_connection(31)
> Yielding connection to
> [2008/11/25 16:03:40, 3] smbd/server.c:exit_server_common(949)
> Server exit (normal exit)
>
>
> I tried almost every possible configuration, useless. Maybe I have missed something.
>
>
> Thanks in advance,
>
> Rene
>
>
More information about the samba
mailing list