summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-10-27 19:40:23 +0100
committerStefan Metzmacher <metze@samba.org>2008-12-13 11:42:37 +0100
commit6a993cb333675f4079d439fa334edee2df604933 (patch)
tree12508de21b3a810f067da814f2267aa68ed78359 /source3
parent17efebde11eafd065c2cac39cdbe55b8d40d40be (diff)
downloadsamba-6a993cb333675f4079d439fa334edee2df604933.tar.gz
samba-6a993cb333675f4079d439fa334edee2df604933.tar.bz2
samba-6a993cb333675f4079d439fa334edee2df604933.zip
s3:libnet_join: call saf_join_store() after a the join.
metze Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Günther Deschner <gd@samba.org> (similar to commit feef594d275881466e2c3f59c0ff54609a9cc53b)
Diffstat (limited to 'source3')
-rw-r--r--source3/libnet/libnet_join.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c
index 908fb78ab4..fb8bc1948f 100644
--- a/source3/libnet/libnet_join.c
+++ b/source3/libnet/libnet_join.c
@@ -1521,7 +1521,10 @@ static WERROR libnet_join_post_processing(TALLOC_CTX *mem_ctx,
return WERR_OK;
}
- saf_store(r->in.domain_name, r->in.dc_name);
+ saf_join_store(r->out.netbios_domain_name, r->in.dc_name);
+ if (r->out.dns_domain_name) {
+ saf_join_store(r->out.dns_domain_name, r->in.dc_name);
+ }
#ifdef WITH_ADS
if (r->out.domain_is_ad) {