Blame src/plugins/kdb/ldap/ldap_exp.c

Packit Service 99d1c0
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
Packit Service 99d1c0
/* plugins/kdb/ldap/ldap_exp.c */
Packit Service 99d1c0
/*
Packit Service 99d1c0
 * Copyright (c) 2004-2005, Novell, Inc.
Packit Service 99d1c0
 * All rights reserved.
Packit Service 99d1c0
 *
Packit Service 99d1c0
 * Redistribution and use in source and binary forms, with or without
Packit Service 99d1c0
 * modification, are permitted provided that the following conditions are met:
Packit Service 99d1c0
 *
Packit Service 99d1c0
 *   * Redistributions of source code must retain the above copyright notice,
Packit Service 99d1c0
 *       this list of conditions and the following disclaimer.
Packit Service 99d1c0
 *   * Redistributions in binary form must reproduce the above copyright
Packit Service 99d1c0
 *       notice, this list of conditions and the following disclaimer in the
Packit Service 99d1c0
 *       documentation and/or other materials provided with the distribution.
Packit Service 99d1c0
 *   * The copyright holder's name is not used to endorse or promote products
Packit Service 99d1c0
 *       derived from this software without specific prior written permission.
Packit Service 99d1c0
 *
Packit Service 99d1c0
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Packit Service 99d1c0
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Packit Service 99d1c0
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
Packit Service 99d1c0
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
Packit Service 99d1c0
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
Packit Service 99d1c0
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
Packit Service 99d1c0
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
Packit Service 99d1c0
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
Packit Service 99d1c0
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
Packit Service 99d1c0
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
Packit Service 99d1c0
 * POSSIBILITY OF SUCH DAMAGE.
Packit Service 99d1c0
 */
Packit Service 99d1c0
Packit Service 99d1c0
#include "k5-int.h"
Packit Service 99d1c0
#if HAVE_UNISTD_H
Packit Service 99d1c0
#include <unistd.h>
Packit Service 99d1c0
#endif
Packit Service 99d1c0
#include <stdio.h>
Packit Service 99d1c0
#include <errno.h>
Packit Service 99d1c0
#include <utime.h>
Packit Service 99d1c0
#include <kdb5.h>
Packit Service 99d1c0
#include "kdb_ldap.h"
Packit Service 99d1c0
#include "ldap_principal.h"
Packit Service 99d1c0
#include "ldap_pwd_policy.h"
Packit Service 99d1c0
Packit Service 99d1c0
Packit Service 99d1c0
/*
Packit Service 99d1c0
 *      Exposed API
Packit Service 99d1c0
 */
Packit Service 99d1c0
Packit Service 99d1c0
kdb_vftabl PLUGIN_SYMBOL_NAME(krb5_ldap, kdb_function_table) = {
Packit Service 99d1c0
    KRB5_KDB_DAL_MAJOR_VERSION,             /* major version number */
Packit Service 99d1c0
    0,                                      /* minor version number 0 */
Packit Service 99d1c0
    /* init_library */                      krb5_ldap_lib_init,
Packit Service 99d1c0
    /* fini_library */                      krb5_ldap_lib_cleanup,
Packit Service 99d1c0
    /* init_module */                       krb5_ldap_open,
Packit Service 99d1c0
    /* fini_module */                       krb5_ldap_close,
Packit Service 99d1c0
    /* create */                            krb5_ldap_create,
Packit Service 99d1c0
    /* destroy */                           krb5_ldap_delete_realm_1,
Packit Service 99d1c0
    /* get_age */                           krb5_ldap_get_age,
Packit Service 99d1c0
    /* lock */                              krb5_ldap_lock,
Packit Service 99d1c0
    /* unlock */                            krb5_ldap_unlock,
Packit Service 99d1c0
    /* get_principal */                     krb5_ldap_get_principal,
Packit Service 99d1c0
    /* put_principal */                     krb5_ldap_put_principal,
Packit Service 99d1c0
    /* delete_principal */                  krb5_ldap_delete_principal,
Packit Service 99d1c0
    /* rename_principal */                  krb5_ldap_rename_principal,
Packit Service 99d1c0
    /* iterate */                           krb5_ldap_iterate,
Packit Service 99d1c0
    /* create_policy */                     krb5_ldap_create_password_policy,
Packit Service 99d1c0
    /* get_policy */                        krb5_ldap_get_password_policy,
Packit Service 99d1c0
    /* put_policy */                        krb5_ldap_put_password_policy,
Packit Service 99d1c0
    /* iter_policy */                       krb5_ldap_iterate_password_policy,
Packit Service 99d1c0
    /* delete_policy */                     krb5_ldap_delete_password_policy,
Packit Service 99d1c0
    /* optional functions */
Packit Service 99d1c0
    /* fetch_master_key */                  NULL /* krb5_ldap_fetch_mkey */,
Packit Service 99d1c0
    /* fetch_master_key_list */             NULL,
Packit Service 99d1c0
    /* store_master_key_list */             NULL,
Packit Service 99d1c0
    /* Search enc type */                   NULL,
Packit Service 99d1c0
    /* Change pwd   */                      NULL,
Packit Service 99d1c0
    /* promote_db */                        NULL,
Packit Service 99d1c0
    /* decrypt_key_data */                  NULL,
Packit Service 99d1c0
    /* encrypt_key_data */                  NULL,
Packit Service 99d1c0
    /* sign_authdata */                     NULL,
Packit Service 99d1c0
    /* check_transited_realms */            NULL,
Packit Service 99d1c0
    /* check_policy_as */                   krb5_ldap_check_policy_as,
Packit Service 99d1c0
    /* check_policy_tgs */                  NULL,
Packit Service 99d1c0
    /* audit_as_req */                      krb5_ldap_audit_as_req,
Packit Service 99d1c0
    /* refresh_config */                    NULL,
Packit Service 99d1c0
    /* check_allowed_to_delegate */         krb5_ldap_check_allowed_to_delegate
Packit Service 99d1c0
Packit Service 99d1c0
};