mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +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 414b3803bb6a1b12c44b52ab1ff64a8b7f61fd03)
This commit is contained in:
parent
e724909ac0
commit
c11b6d6b6a
@ -149,6 +149,10 @@ bool samba_cmdline_burn(int argc, char *argv[])
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Take care that this list must be in longest-match
|
||||||
|
* first order
|
||||||
|
*/
|
||||||
if (strncmp(p, "-U", 2) == 0) {
|
if (strncmp(p, "-U", 2) == 0) {
|
||||||
ulen = 2;
|
ulen = 2;
|
||||||
found = true;
|
found = true;
|
||||||
@ -157,6 +161,9 @@ bool samba_cmdline_burn(int argc, char *argv[])
|
|||||||
ulen = 6;
|
ulen = 6;
|
||||||
found = true;
|
found = true;
|
||||||
is_user = true;
|
is_user = true;
|
||||||
|
} else if (strncmp(p, "--password2", 11) == 0) {
|
||||||
|
ulen = 11;
|
||||||
|
found = true;
|
||||||
} else if (strncmp(p, "--password", 10) == 0) {
|
} else if (strncmp(p, "--password", 10) == 0) {
|
||||||
ulen = 10;
|
ulen = 10;
|
||||||
found = true;
|
found = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user