Bug 3977 - ntlm_auth crashes on failing auth with debug level 10
Summary: ntlm_auth crashes on failing auth with debug level 10
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.0
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: x86 Linux
: P3 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Andrew Bartlett
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-29 06:38 UTC by Kai Blin
Modified: 2007-07-17 00:45 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Blin 2006-07-29 06:38:11 UTC
A segfault happens after starting ntlm auth with "ntlm_auth --helper-protocol=squid-2.5-ntlmssp --domain=WORKGROUP" and going through authentication, when the password for the negotiated user does not work and the debuglevel is set to 3 or higher.

The backtrace is (starting with the KK line I entered):
KK TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAABIAEgBwAAAAGgAaAIIAAAASABIAnAAAABAAEACuAAAABQIIYJiI5Q83/kKvAAAAAAAAAAAAAAAAAAAAAD3NsNyGS0ubjKpga5GCzKXxNRul6ZREE1cATwBSAEsARwBSAE8AVQBQAEEAZABtAGkAbgBpAHMAdAByAGEAdABvAHIAQgBMAEEAQwBLAEoAQQBDAEsA8dk98W3Gq1TYR4qh6erfaw==
Got user=[Administrator] domain=[WORKGROUP] workstation=[BLACKJACK] len1=24 len2=24
auth_check_password:  Checking password for unmapped user [WORKGROUP]\[Administrator]@[BLACKJACK]
auth_check_password_send:  Checking password for unmapped user [WORKGROUP]\[Administrator]@[BLACKJACK]
auth_check_password_send:  mapped user is: [WORKGROUP]\[Administrator]@[BLACKJACK]
ntlm_password_check: NT MD4 password check failed for user Administrator
auth_check_password: sam_ignoredomain authentication for user [WORKGROUP\Administrator] FAILED with error NT_STATUS_WRONG_PASSWORD
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
INTERNAL ERROR: Signal 11 in pid 18556 (4.0.0tp3-SVN-build-16657)
Please read the file BUGS.txt in the distribution
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
PANIC: internal error
BACKTRACE: 18 stack frames:
 #0 /home/nowhere/lib/libsamba-util.so.0(call_backtrace+0x27) [0x402d0f9f]
 #1 /home/nowhere/lib/libsamba-util.so.0(smb_panic+0x1f8) [0x402d1240]
 #2 /home/nowhere/lib/libsamba-util.so.0 [0x402d137d]
 #3 /home/nowhere/lib/libsamba-util.so.0 [0x402d13b6]
 #4 [0xffffe420]
 #5 /lib/tls/libc.so.6(vasprintf+0xb1) [0x40348801]
 #6 /home/nowhere/lib/libsamba-util.so.0(do_debug+0x41) [0x402d0bf8]
 #7 ntlm_auth(auth_check_password+0x19d) [0x804fb11]
 #8 /home/nowhere/lib/libgensec.so.0 [0x40044ac5]
 #9 /home/nowhere/lib/libgensec.so.0 [0x400447e5]
 #10 /home/nowhere/lib/libgensec.so.0 [0x40040b3c]
 #11 /home/nowhere/lib/libgensec.so.0(gensec_update+0x2a) [0x4003ea4b]
 #12 ntlm_auth [0x804c2c1]
 #13 ntlm_auth [0x804d67f]
 #14 ntlm_auth [0x804d6d9]
 #15 ntlm_auth [0x804d8ba]
 #16 /lib/tls/libc.so.6(__libc_start_main+0xd0) [0x40300ea0]
 #17 ntlm_auth [0x804b2d1]
Aborted
Comment 1 Andrew Bartlett 2007-07-17 00:17:49 UTC
Kai,

Is this still an issue?  Can you retest for me?

Thanks,
Comment 2 Kai Blin 2007-07-17 00:45:04 UTC
I can't reproduce it with r23876 here, so I guess it's fixed. I'm closing the bug.