auth/wbc_auth_util: fill in base.logon_domain in wbcAuthUserInfo_to_netr_SamInfo3()
authorStefan Metzmacher <metze@samba.org>
Thu, 7 Jan 2016 14:13:09 +0000 (15:13 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 30 Jun 2016 01:30:26 +0000 (03:30 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
auth/wbc_auth_util.c

index 1c50b18..bce2817 100644 (file)
@@ -145,6 +145,11 @@ struct netr_SamInfo3 *wbcAuthUserInfo_to_netr_SamInfo3(TALLOC_CTX *mem_ctx,
                                talloc_strdup(info3, info->full_name);
                RET_NOMEM(info3->base.full_name.string);
        }
+       if (info->domain_name) {
+               info3->base.logon_domain.string =
+                               talloc_strdup(info3, info->domain_name);
+               RET_NOMEM(info3->base.logon_domain.string);
+       }
        if (info->logon_script) {
                info3->base.logon_script.string =
                                talloc_strdup(info3, info->logon_script);