s3:winbindd: make sure cm_prepare_connection() only returns OK with a valid tree...
authorStefan Metzmacher <metze@samba.org>
Tue, 31 Jan 2017 14:19:00 +0000 (15:19 +0100)
committerRalph Boehme <slow@samba.org>
Tue, 21 Feb 2017 15:09:21 +0000 (16:09 +0100)
commitcebcc2adc7e568d492466bb69f21ba2a9630a0d2
tree044285e97cb19c5f76adfaf3ac8581f954c429a3
parentc97e39b34fcf260ded42ef1a9efe7ed55e65a1cf
s3:winbindd: make sure cm_prepare_connection() only returns OK with a valid tree connect

If cm_get_ipc_credentials() returned anonymous creds and signing is required
we were returning the result of cm_get_ipc_credentials() instead of
the original error.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/winbindd/winbindd_cm.c