diff options
author | Jeremy Allison <jra@samba.org> | 1998-03-24 21:44:49 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-03-24 21:44:49 +0000 |
commit | 8c5c093b9692a31530e1858e676c9843b5472083 (patch) | |
tree | c732085fc9a3b99c2091b1b7faeb7e2b8e426168 /source3/passdb | |
parent | 242e7ae4d66dffe73e427871d9626c7f49231d2d (diff) | |
download | samba-8c5c093b9692a31530e1858e676c9843b5472083.tar.gz samba-8c5c093b9692a31530e1858e676c9843b5472083.tar.bz2 samba-8c5c093b9692a31530e1858e676c9843b5472083.zip |
Added writing of '[XXX]' account control bits into gcos
field when adding a user via smbpasswd.
Jeremy.
(This used to be commit 607c64fadbf8c33459444466630f676800cba5ee)
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/smbpass.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/passdb/smbpass.c b/source3/passdb/smbpass.c index 6d23fd62e6..0c5c290299 100644 --- a/source3/passdb/smbpass.c +++ b/source3/passdb/smbpass.c @@ -343,6 +343,12 @@ struct smb_passwd *getsmbpwent(FILE *fp) for(p++;*p && !finished; p++) { switch (*p) { +#if 0 + /* + * Hmmm. Don't allow these to be set/read independently + * of the actual password fields. We don't want a mismatch. + * JRA. + */ case 'N': /* 'N'o password. */ pw_buf.acct_ctrl |= ACB_PWNOTREQ; @@ -351,6 +357,7 @@ struct smb_passwd *getsmbpwent(FILE *fp) /* 'D'isabled. */ pw_buf.acct_ctrl |= ACB_DISABLED; break; +#endif case 'H': /* 'H'omedir required. */ pw_buf.acct_ctrl |= ACB_HOMDIRREQ; |