Streamline and fix logic of cm_prepare_connection().
authorMichael Adam <obnox@samba.org>
Tue, 11 Dec 2007 14:39:36 +0000 (15:39 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 13 Dec 2007 09:15:20 +0000 (10:15 +0100)
commita493c7baac311e9ac0a560e4412d07df150f4407
tree793a26526ed02d65474c2a7f6a0b06fc1d5a2780
parent7cf5c17f12328d100fca7979a292ea22165bf80b
Streamline and fix logic of cm_prepare_connection().

Do not attempt to do a session setup when in a trusted domain
situation (this gives STATUS_NOLOGON_TRUSTED_DOMAIN_ACCOUNT).

Use get_trust_pw_clear to get machine trust account.
Only call this when the results is really used.
Use the proper domain and account name for session setup.

Michael
(This used to be commit 18c66a364e0ddc4960769871ca190944f7fe5c44)
source3/winbindd/winbindd_cm.c