auth/wbc_auth_util: fill in base.logon_domain in wbcAuthUserInfo_to_netr_SamInfo3()
[nivanova/samba-autobuild/.git] / auth / wbc_auth_util.c
index 1c50b183f23ce1863263663cbc29fa155f6828df..bce281755040765d35b1de64512e7224bb0dc354 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);