2N/A/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2N/A * Copyright (c) 2004-2005, Novell, Inc. 2N/A * All rights reserved. 2N/A * Redistribution and use in source and binary forms, with or without 2N/A * modification, are permitted provided that the following conditions are met: 2N/A * * Redistributions of source code must retain the above copyright notice, 2N/A * this list of conditions and the following disclaimer. 2N/A * * Redistributions in binary form must reproduce the above copyright 2N/A * notice, this list of conditions and the following disclaimer in the 2N/A * documentation and/or other materials provided with the distribution. 2N/A * * The copyright holder's name is not used to endorse or promote products 2N/A * derived from this software without specific prior written permission. 2N/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 2N/A * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2N/A * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2N/A * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 2N/A * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2N/A * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2N/A * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2N/A * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 2N/A * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2N/A * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 2N/A * POSSIBILITY OF SUCH DAMAGE. 2N/A * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A * Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved. 2N/A * ****************************************************************************** 2N/A * ****************************************************************************** 2N/A * This function will create a krbcontainer and realm on the LDAP Server, with 2N/A * the specified attributes. 2N/A /* Clear the global error string */ 2N/A /* populate ldap_context with ldap specific options */ 2N/A /* ignore hash argument. Might have been passed from create */ 2N/A * temporary is passed in when kdb5_util load without -update is done. 2N/A * This is unsupported by the LDAP plugin. 2N/A gettext(
"creation of LDAP entries aborted, plugin requires -update argument"));
2N/A /* read the kerberos container */ 2N/A /* Read the kerberos container location from configuration file */ 2N/A "ldap_kerberos_container_dn",
NULL,
2N/A "ldap_kerberos_container_dn",
NULL,
2N/A /* create the kerberos container */ 2N/A /* We just created the Realm container. Here starts our transaction tracking */ 2N/A /* verify realm object */ 2N/A gettext(
"could not complete roll-back, error deleting Kerberos Container"));
2N/A /* should call krb5_ldap_free_krbcontainer_params() but can't */ 2N/A /* Solaris Kerberos */