summaryrefslogtreecommitdiff
path: root/source3/lib/netapi/examples
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-04-13 19:22:24 +0200
committerGünther Deschner <gd@samba.org>2008-04-13 19:25:59 +0200
commitaea1a244eed1c474d8e95048563c2d304a4f3696 (patch)
tree35838b5ea16c19d44aac157d31023218ff533222 /source3/lib/netapi/examples
parent631808843400c97f47f29a32ee990205dce7aa20 (diff)
downloadsamba-aea1a244eed1c474d8e95048563c2d304a4f3696.tar.gz
samba-aea1a244eed1c474d8e95048563c2d304a4f3696.tar.bz2
samba-aea1a244eed1c474d8e95048563c2d304a4f3696.zip
libnetapi: add libnetapi_set_use_kerberos
Don't unconditionally set the kerberos flag for authentication. Guenther (This used to be commit 15bef5ae413adf278cccc0e547c4b8ccd180eca2)
Diffstat (limited to 'source3/lib/netapi/examples')
-rw-r--r--source3/lib/netapi/examples/common.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/netapi/examples/common.c b/source3/lib/netapi/examples/common.c
index 2c3e4d711d..74e28616bf 100644
--- a/source3/lib/netapi/examples/common.c
+++ b/source3/lib/netapi/examples/common.c
@@ -48,6 +48,9 @@ void popt_common_callback(poptContext con,
case 'p':
libnetapi_set_password(ctx, arg);
break;
+ case 'k':
+ libnetapi_set_use_kerberos(ctx);
+ break;
}
}
@@ -56,6 +59,7 @@ struct poptOption popt_common_netapi_examples[] = {
{ "user", 'U', POPT_ARG_STRING, NULL, 'U', "Username used for connection", "USERNAME" },
{ "password", 'p', POPT_ARG_STRING, NULL, 'p', "Password used for connection", "PASSWORD" },
{ "debuglevel", 'd', POPT_ARG_STRING, NULL, 'd', "Debuglevel", "DEBUGLEVEL" },
+ { "kerberos", 'k', POPT_ARG_NONE, NULL, 'k', "Use Kerberos", NULL },
POPT_TABLEEND
};