summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/passdb/passdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c
index 5b5b2e8a98..14597129df 100644
--- a/source3/passdb/passdb.c
+++ b/source3/passdb/passdb.c
@@ -1420,7 +1420,7 @@ BOOL pdb_set_domain (SAM_ACCOUNT *sampass, char *domain)
{
if (sampass)
{
- sampass->username = strdup(domain);
+ sampass->domain = strdup(domain);
return True;
}
@@ -1431,7 +1431,7 @@ BOOL pdb_set_nt_username (SAM_ACCOUNT *sampass, char *nt_username)
{
if (sampass)
{
- sampass->username = strdup(nt_username);
+ sampass->nt_username = strdup(nt_username);
return True;
}