summaryrefslogtreecommitdiff
path: root/source3/lib/netapi/cm.c
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/cm.c
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/cm.c')
-rw-r--r--source3/lib/netapi/cm.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/lib/netapi/cm.c b/source3/lib/netapi/cm.c
index 96087247d2..071ebfd4bc 100644
--- a/source3/lib/netapi/cm.c
+++ b/source3/lib/netapi/cm.c
@@ -36,7 +36,10 @@ WERROR libnetapi_open_ipc_connection(struct libnetapi_ctx *ctx,
}
cli_cm_set_signing_state(Undefined);
- cli_cm_set_use_kerberos();
+
+ if (ctx->use_kerberos) {
+ cli_cm_set_use_kerberos();
+ }
if (ctx->password) {
cli_cm_set_password(ctx->password);
@@ -46,7 +49,8 @@ WERROR libnetapi_open_ipc_connection(struct libnetapi_ctx *ctx,
}
if (ctx->username && ctx->username[0] &&
- ctx->password && ctx->password[0]) {
+ ctx->password && ctx->password[0] &&
+ ctx->use_kerberos) {
cli_cm_set_fallback_after_kerberos();
}