s3: client - "client use spnego principal = yes" code checks wrong name.
authorJeremy Allison <jra@samba.org>
Thu, 19 Mar 2015 20:10:33 +0000 (13:10 -0700)
committerKarolin Seeger <kseeger@samba.org>
Wed, 8 Apr 2015 21:43:18 +0000 (23:43 +0200)
Bug 10888 - smbclient doesn't ignore "not_defined_in_RFC4178@please_ignore"

https://bugzilla.samba.org/show_bug.cgi?id=10888

Code patch from <martin.wilck@ts.fujitsu.com>

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan (metze) Metzmacher <metze@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Mar 26 00:56:25 CET 2015 on sn-devel-104

(cherry picked from commit e8932b92016fc7ece3169635fbe3d98cb0caa36b)

source3/libsmb/cliconnect.c

index 7292805d3d6a5ec701dd66d8298a1d0a37bc93b5..46d3da3fc453560d3c4aa2fca12638df49116228 100644 (file)
@@ -1664,7 +1664,7 @@ static char *cli_session_setup_get_principal(
        char *principal = NULL;
 
        if (!lp_client_use_spnego_principal() ||
-           strequal(principal, ADS_IGNORE_PRINCIPAL)) {
+           strequal(spnego_principal, ADS_IGNORE_PRINCIPAL)) {
                spnego_principal = NULL;
        }
        if (spnego_principal != NULL) {