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)
commit18c66a364e0ddc4960769871ca190944f7fe5c44
treeedaed77356f17d2c5e9ba3718b81384449daa90b
parente77c4022cfbb868e608edcb06b676658b0e201ad
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
source/winbindd/winbindd_cm.c