summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2006-10-11 21:40:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:20:57 -0500
commit49eb5dc142d4958f373692657b1affe4ae419735 (patch)
tree7c3c20dbc1ccb169eacb0c612d9b655a04c2b289
parent554972d1d2ede7598eff3450f17c3de0d85fe2e8 (diff)
downloadsamba-49eb5dc142d4958f373692657b1affe4ae419735.tar.gz
samba-49eb5dc142d4958f373692657b1affe4ae419735.tar.bz2
samba-49eb5dc142d4958f373692657b1affe4ae419735.zip
r19251: fix silly typos causing the test to fail at account_name
and acct_expiry fields. rafal (This used to be commit dba5e642a0230539ac73292ac5baae0f74e9f46e)
-rw-r--r--source4/torture/libnet/userman.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source4/torture/libnet/userman.c b/source4/torture/libnet/userman.c
index 34081227ea..3176b891bf 100644
--- a/source4/torture/libnet/userman.c
+++ b/source4/torture/libnet/userman.c
@@ -292,7 +292,7 @@ static BOOL test_usermod(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
case account_name:
continue_if_field_set(mod->in.change.account_name);
mod->in.change.account_name = talloc_asprintf(mem_ctx, TEST_CHG_ACCOUNTNAME,
- (int)(random()/100));
+ (int)(random() % 100));
mod->in.change.fields |= USERMOD_FIELD_ACCOUNT_NAME;
fldname = "account_name";
*username = talloc_strdup(mem_ctx, mod->in.change.account_name);
@@ -319,7 +319,7 @@ static BOOL test_usermod(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
homedir = home_dirs[random() % (sizeof(home_dirs)/sizeof(char*))];
mod->in.change.home_directory = talloc_strdup(mem_ctx, homedir);
mod->in.change.fields |= USERMOD_FIELD_HOME_DIRECTORY;
- fldname = "home directory";
+ fldname = "home_directory";
break;
case home_drive:
@@ -327,7 +327,7 @@ static BOOL test_usermod(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
homedrive = home_drives[random() % (sizeof(home_drives)/sizeof(char*))];
mod->in.change.home_drive = talloc_strdup(mem_ctx, homedrive);
mod->in.change.fields |= USERMOD_FIELD_HOME_DRIVE;
- fldname = "home drive";
+ fldname = "home_drive";
break;
case comment:
@@ -343,7 +343,7 @@ static BOOL test_usermod(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
logonscript = logon_scripts[random() % (sizeof(logon_scripts)/sizeof(char*))];
mod->in.change.logon_script = talloc_strdup(mem_ctx, logonscript);
mod->in.change.fields |= USERMOD_FIELD_LOGON_SCRIPT;
- fldname = "logon script";
+ fldname = "logon_script";
break;
case profile_path:
@@ -351,7 +351,7 @@ static BOOL test_usermod(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
mod->in.change.profile_path = talloc_asprintf(mem_ctx, TEST_CHG_PROFILEPATH,
(long int)random(), (unsigned int)random());
mod->in.change.fields |= USERMOD_FIELD_PROFILE_PATH;
- fldname = "profile path";
+ fldname = "profile_path";
break;
case acct_expiry:
@@ -365,7 +365,7 @@ static BOOL test_usermod(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
case acct_flags:
continue_if_field_set(mod->in.change.acct_flags);
mod->in.change.acct_flags = flags[random() % (sizeof(flags)/sizeof(uint32_t))];
- mod->in.change.fields |= USERMOD_FIELD_ACCT_EXPIRY;
+ mod->in.change.fields |= USERMOD_FIELD_ACCT_FLAGS;
fldname = "acct_flags";
break;
@@ -380,7 +380,7 @@ static BOOL test_usermod(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
status = libnet_rpc_usermod(p, mem_ctx, mod);
if (!NT_STATUS_IS_OK(status)) {
- printf("Failed to call sync libnet_rpc_usermd - %s\n", nt_errstr(status));
+ printf("Failed to call sync libnet_rpc_usermod - %s\n", nt_errstr(status));
return False;
}