diff options
author | Simo Sorce <simo@redhat.com> | 2014-07-12 08:19:20 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2014-07-12 08:19:20 -0400 |
commit | 3ed1be459d9cec2d07a06e3960f26815ce22b5a3 (patch) | |
tree | bd20fec8cd2de6c7840f045b554bfbcac2c7356f /src/gss_spi.c | |
parent | 01dad40c9ed6983b8b05ae351f00878c6efef4c7 (diff) | |
download | gss-ntlmssp-3ed1be459d9cec2d07a06e3960f26815ce22b5a3.tar.gz gss-ntlmssp-3ed1be459d9cec2d07a06e3960f26815ce22b5a3.tar.xz gss-ntlmssp-3ed1be459d9cec2d07a06e3960f26815ce22b5a3.zip |
Add gss_localname support
Uses the fully qualified name and falls back to simple user name and
calls getpwnam_r() to resolve a local name. If the user is not known
to the nsswitch subsystme it returns a failure.
Diffstat (limited to 'src/gss_spi.c')
-rw-r--r-- | src/gss_spi.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gss_spi.c b/src/gss_spi.c index a74bace..220b32c 100644 --- a/src/gss_spi.c +++ b/src/gss_spi.c @@ -286,6 +286,17 @@ OM_uint32 gss_display_name(OM_uint32 *minor_status, output_name_type); } +OM_uint32 gss_localname(OM_uint32 *minor_status, + const gss_name_t name, + gss_const_OID mech_type, + gss_buffer_t localname) +{ + return gssntlm_localname(minor_status, + name, + mech_type, + localname); +} + OM_uint32 gss_set_sec_context_option(OM_uint32 *minor_status, gss_ctx_id_t *context_handle, const gss_OID desired_object, |