summaryrefslogtreecommitdiff
path: root/source4/utils/ntlm_auth.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-11-04 19:38:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:24:50 -0500
commita882f619c9360e8c8457f71a1466c10edb6906d0 (patch)
treec0dc1422959045d084ac38fc8a4c6ef0644a58d5 /source4/utils/ntlm_auth.c
parent8d90810433453455aa833e60354c5a2cc2f59f05 (diff)
downloadsamba-a882f619c9360e8c8457f71a1466c10edb6906d0.tar.gz
samba-a882f619c9360e8c8457f71a1466c10edb6906d0.tar.bz2
samba-a882f619c9360e8c8457f71a1466c10edb6906d0.zip
r19555: Silently ignore --use-cached-creds for compatibility with Samba3's ntlm_auth.
Patch by Kai Blin. (This used to be commit 2167552b9a869c408c5ba17dcba3367241934767)
Diffstat (limited to 'source4/utils/ntlm_auth.c')
-rw-r--r--source4/utils/ntlm_auth.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/utils/ntlm_auth.c b/source4/utils/ntlm_auth.c
index 1961daeb10..ceefd0de09 100644
--- a/source4/utils/ntlm_auth.c
+++ b/source4/utils/ntlm_auth.c
@@ -94,6 +94,7 @@ static const char *opt_domain;
static const char *opt_workstation;
static const char *opt_password;
static int opt_multiplex;
+static int use_cached_creds;
static void mux_printf(unsigned int mux_id, const char *format, ...) PRINTF_ATTRIBUTE(2, 3);
@@ -978,6 +979,7 @@ enum {
OPT_DIAGNOSTICS,
OPT_REQUIRE_MEMBERSHIP,
OPT_MULTIPLEX,
+ OPT_USE_CACHED_CREDS,
};
int main(int argc, const char **argv)
@@ -1003,6 +1005,7 @@ int main(int argc, const char **argv)
{ "username", 0, POPT_ARG_STRING, &opt_username, OPT_PASSWORD, "Username"},
{ "password", 0, POPT_ARG_STRING, &opt_password, OPT_PASSWORD, "User's plaintext password"},
{ "multiplex", 0, POPT_ARG_NONE, &opt_multiplex, OPT_MULTIPLEX, "Multiplex Mode"},
+ { "use-cached-creds", 0, POPT_ARG_NONE, &use_cached_creds, OPT_USE_CACHED_CREDS, "silently ignored for compatibility reasons"},
POPT_COMMON_SAMBA
POPT_COMMON_VERSION
{ NULL }