mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
lib/cmdline: Also burn the --password2 parameter if given
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15289
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
(cherry picked from commit 414b3803bb
)
This commit is contained in:
parent
e724909ac0
commit
c11b6d6b6a
@ -149,6 +149,10 @@ bool samba_cmdline_burn(int argc, char *argv[])
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
* Take care that this list must be in longest-match
|
||||
* first order
|
||||
*/
|
||||
if (strncmp(p, "-U", 2) == 0) {
|
||||
ulen = 2;
|
||||
found = true;
|
||||
@ -157,6 +161,9 @@ bool samba_cmdline_burn(int argc, char *argv[])
|
||||
ulen = 6;
|
||||
found = true;
|
||||
is_user = true;
|
||||
} else if (strncmp(p, "--password2", 11) == 0) {
|
||||
ulen = 11;
|
||||
found = true;
|
||||
} else if (strncmp(p, "--password", 10) == 0) {
|
||||
ulen = 10;
|
||||
found = true;
|
||||
|
Loading…
Reference in New Issue
Block a user