diff options
author | Ralph Boehme <slow@samba.org> | 2021-09-10 07:08:37 +0200 |
---|---|---|
committer | Jule Anger <janger@samba.org> | 2021-09-13 07:48:08 +0000 |
commit | 609509f8ed1a717ec9b03f9b127d1f8f4927b184 (patch) | |
tree | e0b21be990ec6369cb4c59d6a808f659be03e971 | |
parent | 84579c965b10cc76d0e5b2174415fd6edf8f3a5c (diff) | |
download | samba-609509f8ed1a717ec9b03f9b127d1f8f4927b184.tar.gz |
ntlm_auth: don't ignore unknown options
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14828
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 5536e7981c3902014e91cdfa5bd9a17276e41be7)
-rw-r--r-- | source3/utils/ntlm_auth.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/utils/ntlm_auth.c b/source3/utils/ntlm_auth.c index 2ac8d3cba5c..f887d6814d0 100644 --- a/source3/utils/ntlm_auth.c +++ b/source3/utils/ntlm_auth.c @@ -2757,6 +2757,12 @@ enum { require_membership_of_sid = require_membership_of; } break; + + case POPT_ERROR_BADOPT: + fprintf(stderr, "\nInvalid option %s: %s\n\n", + poptBadOption(pc, 0), poptStrerror(opt)); + poptPrintUsage(pc, stderr, 0); + exit(1); } } |