_gss_cred_label_set_t *gm_cred_label_set;
gss_mo_desc *gm_mo;
size_t gm_mo_num;
+ _gss_pname_to_uid_t *gm_pname_to_uid;
+ _gss_userok_t *gm_userok;
_gss_display_name_ext_t *gm_display_name_ext;
_gss_inquire_name_t *gm_inquire_name;
_gss_get_name_attribute_t *gm_get_name_attribute;
_gss_export_name_composite_t *gm_export_name_composite;
_gss_acquire_cred_with_password_t *gm_acquire_cred_with_password;
_gss_add_cred_with_password_t *gm_add_cred_with_password;
- _gss_pname_to_uid_t *gm_pname_to_uid;
- _gss_userok_t *gm_userok;
struct gss_mech_compat_desc_struct *gm_compat;
} gssapi_mech_interface_desc, *gssapi_mech_interface;
--- /dev/null
+/*
+ * Copyright (c) 2011, PADL Software Pty Ltd.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * 3. Neither the name of PADL Software nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY PADL SOFTWARE AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL PADL SOFTWARE OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+#include "gsskrb5_locl.h"
+
+OM_uint32
+_gsskrb5_userok(OM_uint32 *minor_status,
+ const gss_name_t input_name,
+ const char *user,
+ int *user_ok)
+{
+ krb5_context context;
+ krb5_const_principal princ = (krb5_const_principal)input_name;
+
+ GSSAPI_KRB5_INIT(&context);
+
+ *minor_status = 0;
+ *user_ok = krb5_kuserok(context, princ, user);
+
+ return GSS_S_COMPLETE;
+}
__gss_c_attr_stream_sizes_oid_desc DATA
gss_accept_sec_context
gss_acquire_cred
+ gss_acquire_cred_with_password
gss_add_buffer_set_member
gss_add_cred
+ gss_add_cred_with_password
gss_add_oid_set_member
gss_canonicalize_name
gss_compare_name
gss_create_empty_buffer_set
gss_create_empty_oid_set
gss_decapsulate_token
+ gss_delete_name_attribute
gss_delete_sec_context
gss_display_mech_attr
gss_display_name
+ gss_display_name_ext
gss_display_status
gss_duplicate_name
gss_duplicate_oid
gss_encapsulate_token
gss_export_cred
gss_export_name
+ gss_export_name_composite
gss_export_sec_context
gss_get_mic
+ gss_get_name_attribute
gss_import_cred
gss_import_name
gss_import_sec_context
gss_inquire_cred_by_oid
gss_inquire_mech_for_saslname
gss_inquire_mechs_for_name
+ gss_inquire_name
gss_inquire_names_for_mech
gss_inquire_saslname_for_mech
gss_inquire_sec_context_by_oid ;!
gss_oid_to_name
gss_oid_equal
gss_oid_to_str
+ gss_pname_to_uid
gss_process_context_token
gss_pseudo_random
gss_release_buffer
gss_release_oid_set
gss_seal
gss_set_cred_option
+ gss_set_name_attribute
gss_set_sec_context_option
gss_sign
gss_test_oid_set_member
gss_unseal
gss_unwrap
gss_unwrap_iov
+ gss_userok
gss_verify
gss_verify_mic
gss_wrap