14960Swillf /* 2*7934SMark.Phalan@Sun.COM * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 34960Swillf * Use is subject to license terms. 44960Swillf */ 54960Swillf 64960Swillf 74960Swillf /* 84960Swillf * lib/kdb/kdb_ldap/ldap_exp.c 94960Swillf * 104960Swillf * Copyright (c) 2004-2005, Novell, Inc. 114960Swillf * All rights reserved. 124960Swillf * 134960Swillf * Redistribution and use in source and binary forms, with or without 144960Swillf * modification, are permitted provided that the following conditions are met: 154960Swillf * 164960Swillf * * Redistributions of source code must retain the above copyright notice, 174960Swillf * this list of conditions and the following disclaimer. 184960Swillf * * Redistributions in binary form must reproduce the above copyright 194960Swillf * notice, this list of conditions and the following disclaimer in the 204960Swillf * documentation and/or other materials provided with the distribution. 214960Swillf * * The copyright holder's name is not used to endorse or promote products 224960Swillf * derived from this software without specific prior written permission. 234960Swillf * 244960Swillf * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 254960Swillf * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 264960Swillf * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 274960Swillf * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 284960Swillf * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 294960Swillf * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 304960Swillf * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 314960Swillf * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 324960Swillf * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 334960Swillf * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 344960Swillf * POSSIBILITY OF SUCH DAMAGE. 354960Swillf */ 364960Swillf 374960Swillf #include "k5-int.h" 384960Swillf #if HAVE_UNISTD_H 394960Swillf #include <unistd.h> 404960Swillf #endif 414960Swillf #include <stdio.h> 424960Swillf #include <errno.h> 434960Swillf #include <utime.h> 444960Swillf #include <kdb5.h> 454960Swillf #include "kdb_ldap.h" 464960Swillf #include "ldap_principal.h" 474960Swillf #include "ldap_pwd_policy.h" 484960Swillf 494960Swillf 504960Swillf /* 514960Swillf * Exposed API 524960Swillf */ 534960Swillf 544960Swillf kdb_vftabl kdb_function_table = { 554960Swillf /* major version number 1 */ 1, 564960Swillf /* minor version number 0 */ 0, 574960Swillf /* Solaris Kerberos: iprop support */ 584960Swillf /* iprop_supported, not by ldap*/ 0, 594960Swillf /* init_library */ krb5_ldap_lib_init, 604960Swillf /* fini_library */ krb5_ldap_lib_cleanup, 614960Swillf /* init_module */ krb5_ldap_open, 624960Swillf /* fini_module */ krb5_ldap_close, 634960Swillf /* db_create */ krb5_ldap_create, 644960Swillf /* db_destroy */ krb5_ldap_delete_realm_1, 654960Swillf /* db_get_age */ krb5_ldap_db_get_age, 664960Swillf /* db_set_option */ krb5_ldap_set_option, 674960Swillf /* db_lock */ krb5_ldap_lock, 684960Swillf /* db_unlock */ krb5_ldap_unlock, 694960Swillf /* db_get_principal */ krb5_ldap_get_principal, 704960Swillf /* Solaris Kerberos: need a nolock for iprop, not used for this plugin */ 714960Swillf /* db_get_principal_nolock */ krb5_ldap_get_principal, 724960Swillf /* db_free_principal */ krb5_ldap_free_principal, 734960Swillf /* db_put_principal */ krb5_ldap_put_principal, 744960Swillf /* db_delete_principal */ krb5_ldap_delete_principal, 754960Swillf /* db_iterate */ krb5_ldap_iterate, 764960Swillf /* db_create_policy */ krb5_ldap_create_password_policy, 774960Swillf /* db_get_policy */ krb5_ldap_get_password_policy, 784960Swillf /* db_put_policy */ krb5_ldap_put_password_policy, 794960Swillf /* db_iter_policy */ krb5_ldap_iterate_password_policy, 804960Swillf /* db_delete_policy */ krb5_ldap_delete_password_policy, 814960Swillf /* db_free_policy */ krb5_ldap_free_password_policy, 824960Swillf /* db_supported_realms */ krb5_ldap_supported_realms, 834960Swillf /* db_free_supported_realms */ krb5_ldap_free_supported_realms, 844960Swillf /* errcode_2_string */ krb5_ldap_errcode_2_string, 854960Swillf /* release_errcode_string */ krb5_ldap_release_errcode_string, 864960Swillf /* db_alloc */ krb5_ldap_alloc, 874960Swillf /* db_free */ krb5_ldap_free, 884960Swillf /* optional functions */ 894960Swillf /* set_master_key */ krb5_ldap_set_mkey, 904960Swillf /* get_master_key */ krb5_ldap_get_mkey, 914960Swillf /* setup_master_key_name */ NULL, 924960Swillf /* store_master_key */ NULL, 934960Swillf /* fetch_master_key */ NULL /* krb5_ldap_fetch_mkey */, 944960Swillf /* verify_master_key */ NULL /* krb5_ldap_verify_master_key */, 954960Swillf /* Search enc type */ NULL, 96*7934SMark.Phalan@Sun.COM /* Change pwd */ NULL 974960Swillf 984960Swillf }; 99