diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-09-17 06:33:19 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:58:46 -0500 |
commit | 64a727c6aa0903d0385e1f2482b63b48f0be07d2 (patch) | |
tree | f29ce4937608f5167de4b6e5b1b36014593a8da5 /source4/libcli/auth | |
parent | bc6d0b0f0f6bc83f921ec7b935f8d0e0decfec5d (diff) | |
download | samba-64a727c6aa0903d0385e1f2482b63b48f0be07d2.tar.gz samba-64a727c6aa0903d0385e1f2482b63b48f0be07d2.tar.bz2 samba-64a727c6aa0903d0385e1f2482b63b48f0be07d2.zip |
r2376: added a way to disable krb5 on the command line. Just use
--option 'gensec:krb5=no'
or put "gensec:krb5 = no" in smb.conf
Given the frustration I've had with kerberos I was very tempted to name
this option --nfk, but resisted the temptation
(This used to be commit 2d710a5eb5b36e46fa8f652305fa9ab2e09e02f3)
Diffstat (limited to 'source4/libcli/auth')
-rw-r--r-- | source4/libcli/auth/gensec_krb5.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/libcli/auth/gensec_krb5.c b/source4/libcli/auth/gensec_krb5.c index 5dbdf56b03..292c08f3f8 100644 --- a/source4/libcli/auth/gensec_krb5.c +++ b/source4/libcli/auth/gensec_krb5.c @@ -720,6 +720,11 @@ static const struct gensec_security_ops gensec_ms_krb5_security_ops = { NTSTATUS gensec_krb5_init(void) { NTSTATUS ret; + + if (!lp_parm_bool(-1, "gensec", "krb5", True)) { + return NT_STATUS_NOT_SUPPORTED; + } + ret = register_backend("gensec", &gensec_krb5_security_ops); if (!NT_STATUS_IS_OK(ret)) { DEBUG(0,("Failed to register '%s' gensec backend!\n", |