ntlm-test-helper: fix
authorDan Winship <danw@gnome.org>
Sun, 30 Dec 2012 23:12:59 +0000 (18:12 -0500)
committerDan Winship <danw@gnome.org>
Wed, 2 Jan 2013 20:33:00 +0000 (15:33 -0500)
commit066ecf70733166c2318ec32238e4cb8b8b79e1cd
tree4a5ea38903de278beec98435d07280fdc9ef047f
parent289f435ad21b9facab5c8a6a9f11ca055c54930b
ntlm-test-helper: fix

We need to set SOUP_NTLM_AUTH_DEBUG to an empty string (to tell
SoupAuthNTLM to always use built-in NTLM), not leave it unset, which
will let SoupAuthNTLM use the real ntlm_auth binary.

(The effect of this bug was that instead of always using built-in
NTLM, ntlm-test-helper would first try to use ntlm_auth, and fail
because there were no cached credentials, and then fall back to
built-in NTLM, which meant that we were testing the fallback codepath
even in the supposed-to-be-non-fallback case. Unless your username was
"alice" or "bob" and you had a working winbind configuration, in which
case the tests would just fail.)

Also, fix up ntlm-test a bit, so that if ntlm-test-helper for some
reason tries to authenticate as someone other than alice or bob, it
recognizes this, rather than considering everyone who isn't alice to
be bob.
tests/ntlm-test-helper.c
tests/ntlm-test.c