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 "krbpwdmindiffchars",
"krbpwdminlength",
2N/A "krbpwdhistorylength",
"krbpwdmaxfailure",
2N/A "krbpwdfailurecountinterval",
2N/A * Function to create password policy object. 2N/A /* Clear the global error string */ 2N/A /* validate the input parameters */ 2N/A /* get the first component of the dn to set the cn attribute */ 2N/A /* password policy object creation */ 2N/A * Function to modify password policy object. 2N/A /* Clear the global error string */ 2N/A /* validate the input parameters */ 2N/A /* modify the password policy object. */ 2N/A * This will fail if the 'policy_dn' is anywhere other than under the realm 2N/A * container. This is correct behaviour. 'kdb5_ldap_util' will support 2N/A * management of only such policy objects. 2N/A /* Get the reference count */ 2N/A /* Solaris Kerberos: trying to avoid memory leaks */ 2N/A /* Clear the global error string */ 2N/A /* validate the input parameters */ 2N/A#
if 0
/************** Begin IFDEF'ed OUT *******************************/ 2N/A#
endif /**************** END IFDEF'ed OUT *******************************/ 2N/A#
if 0
/************** Begin IFDEF'ed OUT *******************************/ 2N/A /* Get the reference count */ 2N/A "krbPwdPolicyReference",
2N/A#
endif /**************** END IFDEF'ed OUT *******************************/ 2N/A * Convert 'name' into a directory DN and call 2N/A * 'krb5_ldap_get_password_policy_from_dn' 2N/A /* Clear the global error string */ 2N/A /* validate the input parameters */ 2N/A /* Clear the global error string */ 2N/A /* validate the input parameters */ 2N/A /* Ensure that the object is a password policy */ 2N/A /* Clear the global error string */ 2N/A#
if 0
/************** Begin IFDEF'ed OUT *******************************/ 2N/A /* Get the reference count */ 2N/A "krbPwdPolicyReference",
2N/A#
endif /**************** END IFDEF'ed OUT *******************************/ 2N/A /* XXX this will free policy so don't free it */