Bug 12391 - Authentication always fails with "encrypt passwords = no"
Summary: Authentication always fails with "encrypt passwords = no"
Status: RESOLVED DUPLICATE of bug 9705
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services (show other bugs)
Version: 4.4.6
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-24 21:19 UTC by John Janosik
Modified: 2016-10-25 20:20 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Janosik 2016-10-24 21:19:03 UTC
I found during debug in all cases that I tested that the password.plaintext field of the auth_usersupplied_info struct is always NULL in source3/auth/auth_unix.c:check_unix_security().  The cause is that source3/auth/auth_ntlmssp.c:auth3_check_password() calls make_user_info_map hardcoded with NULL for the plaintext passowrd instead of passing on the user_info->password.plaintext that was passed into auth3_check_password.

Changing the call to make_user_info_map to pass user_info->password.plaintext works around the issue in my testing, but I don't know if there is a reason that other code paths need to pass NULL instead.
Comment 1 Stefan Metzmacher 2016-10-25 20:20:05 UTC

*** This bug has been marked as a duplicate of bug 9705 ***