summaryrefslogtreecommitdiffstats
path: root/source/utils/pdbedit.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2001-03-14 20:17:27 +0000
committerGerald Carter <jerry@samba.org>2001-03-14 20:17:27 +0000
commitaf3f2a30c657fc42171bbf7da2354bc4cc7b088d (patch)
tree23612f79813be7d8203eae877355a4e7db8fd65c /source/utils/pdbedit.c
parentd5b39a1d435f7fe79eb556f7e6b55276ac68a73d (diff)
downloadsamba-af3f2a30c657fc42171bbf7da2354bc4cc7b088d.tar.gz
samba-af3f2a30c657fc42171bbf7da2354bc4cc7b088d.tar.xz
samba-af3f2a30c657fc42171bbf7da2354bc4cc7b088d.zip
patches from Simo. Couple of snity things
Diffstat (limited to 'source/utils/pdbedit.c')
-rw-r--r--source/utils/pdbedit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/utils/pdbedit.c b/source/utils/pdbedit.c
index cd77cbc4361..a86ea2ef5f4 100644
--- a/source/utils/pdbedit.c
+++ b/source/utils/pdbedit.c
@@ -50,8 +50,8 @@ static void usage(void)
printf("(actually to add a user you need to use smbpasswd)\n");
printf("options:\n");
printf(" -l list usernames\n");
- printf(" -v verbose output\n");
- printf(" -w smbpasswd file style\n");
+ printf(" -v verbose output\n");
+ printf(" -w smbpasswd file style\n");
printf(" -u username print user's info\n");
printf(" -f fullname set Full Name\n");
printf(" -h homedir set home directory\n");
@@ -89,8 +89,8 @@ static int print_sam_info (SAM_ACCOUNT *sam_pwent, BOOL verbosity, BOOL smbpwdst
{
char lm_passwd[33];
char nt_passwd[33];
- pdb_gethexpwd(pdb_get_lanman_passwd(sam_pwent), lm_passwd);
- pdb_gethexpwd(pdb_get_nt_passwd(sam_pwent), nt_passwd);
+ pdb_sethexpwd(lm_passwd, pdb_get_lanman_passwd(sam_pwent), pdb_get_acct_ctrl(sam_pwent));
+ pdb_sethexpwd(nt_passwd, pdb_get_nt_passwd(sam_pwent), pdb_get_acct_ctrl(sam_pwent));
printf ("%s:%d:%s:%s:%s:LCT-%08x:\n",
pdb_get_username(sam_pwent),