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 * create the service object from Directory 2N/A /* validate the input parameter */ 2N/A /* identify the class that the object should belong to. This depends on the servicetype */ 2N/A /* check for the validity of the values */ 2N/A /* ldap add operation */ 2N/A * If the service created has realm/s associated with it, then the realm should be updated 2N/A * to have a reference to the service object just created. 2N/A "Error adding 'krbRealmReferences' to %s: ",
2N/A /* delete service object, status ignored intentionally */ 2N/A * modify the service object from Directory 2N/A /* validate the input parameter */ 2N/A /* check for the validity of the values */ 2N/A /* get the attribute of the realm to be set */ 2N/A /* read the existing list of krbRealmreferences. this will needed */ 2N/A /* ldap modify operation */ 2N/A * If the service modified had realm/s associations changed, then the realm should be 2N/A * updated to reflect the changes. 2N/A /* get the count of the new list of krbrealmreferences */ 2N/A /* make a new copy of the krbrealmreferences */ 2N/A /* see if some of the attributes have to be deleted */ 2N/A /* update the dn represented by the attribute that is to be deleted */ 2N/A /* see if some of the attributes have to be added */ 2N/A /* NOTE: This should be removed now as the backlinks are going off in OpenLDAP */ 2N/A /* time to delete krbrealmreferences. This is only for OpenLDAP */ 2N/A * This function lists service objects from Directory 2N/A * This function reads the service object from Directory 2N/A "krbRealmReferences",
"objectclass",
NULL};
2N/A /* validate the input parameter */ 2N/A /* the policydn object should be of the krbService object class */ 2N/A /* Initialize service structure */ 2N/A /* allocate tl_data structure to store MASK information */ 2N/A * This function frees the krb5_ldap_service_params structure members.