diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-09-13 04:28:10 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:58:42 -0500 |
commit | d2c14a5dc6117d6593aa03090ce7fa4c9ebc3359 (patch) | |
tree | 6be8599902ef9c12e4fcefb79f9db76b04793f96 /source4/libcli/auth/gensec.c | |
parent | 4456f87dee1b9ee130f290ba9b7fb61a89b72333 (diff) | |
download | samba-d2c14a5dc6117d6593aa03090ce7fa4c9ebc3359.tar.gz samba-d2c14a5dc6117d6593aa03090ce7fa4c9ebc3359.tar.bz2 samba-d2c14a5dc6117d6593aa03090ce7fa4c9ebc3359.zip |
r2307: Fix the use of 'raw' NTLMSSP to hosts that support extended security,
but do not support SPNEGO (such as XP, when not joined to a domain).
This is triggered by the presense or lack of a security blob in the
negprot reply.
Andrew Bartlett
(This used to be commit 99f7a38c077725b22475f2ba68d0955114879c24)
Diffstat (limited to 'source4/libcli/auth/gensec.c')
-rw-r--r-- | source4/libcli/auth/gensec.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source4/libcli/auth/gensec.c b/source4/libcli/auth/gensec.c index a744f513dc..b7891ee53b 100644 --- a/source4/libcli/auth/gensec.c +++ b/source4/libcli/auth/gensec.c @@ -262,6 +262,17 @@ const char *gensec_get_name_by_authtype(uint8_t authtype) } +const char *gensec_get_name_by_oid(const char *oid) +{ + const struct gensec_security_ops *ops; + ops = gensec_security_by_oid(oid); + if (ops) { + return ops->name; + } + return NULL; +} + + /** * Start a GENSEC sub-mechanism by OID, used in SPNEGO * |