This is the long form of -U in samba-tool.
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Jo Sutton <josutton@catalyst.net.nz>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15674
(cherry picked from commit
63a83fb7bb312731047f361f89766e0be492f83e)
ulen = 6;
found = true;
is_user = true;
+ } else if (strneq_cmdline_exact(p, "--username", 10)) {
+ ulen = 10;
+ found = true;
+ is_user = true;
} else if (strncmp(p, "--", 2) == 0 && strstr(p, "pass")) {
/*
* We have many secret options like --password,
+++ /dev/null
-^samba.unittests.cmdline.torture_cmdline_burn.none.$