Use the correct domain name when looking up the trust password.
authorGerald W. Carter <jerry@samba.org>
Fri, 25 Jan 2008 18:18:05 +0000 (12:18 -0600)
committerGerald W. Carter <jerry@samba.org>
Fri, 25 Jan 2008 18:27:16 +0000 (12:27 -0600)
commit8b063a414149bdf401a8f854d55ed7dc6f94cb60
tree986ea38f4dfaf5afd5122faee88ddaf5dea52232
parent95e0fb452bda4c81b26e3dec4953bbba37940467
Use the correct domain name when looking up the trust password.

On a DC, we always use the domain name given.  On a domain member,
we use lp_workgroup().  This fixes a bug supporting trusted domains.
source/winbindd/winbindd_cm.c