summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/netapi/user.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/lib/netapi/user.c b/source3/lib/netapi/user.c
index 3c42f8b931..887ab94002 100644
--- a/source3/lib/netapi/user.c
+++ b/source3/lib/netapi/user.c
@@ -748,7 +748,8 @@ static NTSTATUS libnetapi_samr_lookup_user_map_USER_INFO(TALLOC_CTX *mem_ctx,
switch (level) {
case 10:
- info10.usri10_name = talloc_strdup(mem_ctx, user_name);
+ info10.usri10_name = talloc_strdup(mem_ctx,
+ info21->account_name.string);
NT_STATUS_HAVE_NO_MEMORY(info10.usri10_name);
info10.usri10_comment = talloc_strdup(mem_ctx,
@@ -766,7 +767,8 @@ static NTSTATUS libnetapi_samr_lookup_user_map_USER_INFO(TALLOC_CTX *mem_ctx,
break;
case 20:
- info20.usri20_name = talloc_strdup(mem_ctx, user_name);
+ info20.usri20_name = talloc_strdup(mem_ctx,
+ info21->account_name.string);
NT_STATUS_HAVE_NO_MEMORY(info20.usri20_name);
info20.usri20_comment = talloc_strdup(mem_ctx,
@@ -784,7 +786,8 @@ static NTSTATUS libnetapi_samr_lookup_user_map_USER_INFO(TALLOC_CTX *mem_ctx,
break;
case 23:
- info23.usri23_name = talloc_strdup(mem_ctx, user_name);
+ info23.usri23_name = talloc_strdup(mem_ctx,
+ info21->account_name.string);
NT_STATUS_HAVE_NO_MEMORY(info23.usri23_name);
info23.usri23_comment = talloc_strdup(mem_ctx,