s3-winbindd: Use correct realm for trusted domains in idmap child
authorChristof Schmitt <cs@samba.org>
Fri, 22 Aug 2014 16:15:59 +0000 (09:15 -0700)
committerJeremy Allison <jra@samba.org>
Sat, 30 Aug 2014 01:48:12 +0000 (03:48 +0200)
commitc203c722e7e22f9146f2ecf6f42452c0e82042e4
tree603c2291bc83b957db0cedc24a37bdcd6b202cd6
parent934b452e138c51dc39c70e8246b138a632476dc4
s3-winbindd: Use correct realm for trusted domains in idmap child

When authenticating users in a trusted domain, the idmap_ad module
always connects to a local DC instead of one in the trusted domain.

Fix this by passing the correct realm to connect to.

Also Comment parameters passed to ads_cached_connection_connect

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/winbindd/winbindd_ads.c