s3:winbindd: make sure cm_prepare_connection() only returns OK with a valid tree...
commita605f6c5044a1277d5575b0a6df4280eb1feba16
authorStefan Metzmacher <metze@samba.org>
Tue, 31 Jan 2017 14:19:00 +0000 (31 15:19 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 28 Feb 2017 08:38:24 +0000 (28 09:38 +0100)
tree54f1bfbf5738878cae83eb7d4e7b64b20133bd9c
parent352661537b24abd9262c91d013049cff204b5eb2
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>
(similar to commit cebcc2adc7e568d492466bb69f21ba2a9630a0d2)
source3/winbindd/winbindd_cm.c