xref: /titanic_52/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/ldap_pwd_policy.h (revision 54925bf60766fbb4f1f2d7c843721406a7b7a3fb)
1 /*
2  * lib/kdb/kdb_ldap/ldap_pwd_policy.h
3  *
4  * Copyright (c) 2004-2005, Novell, Inc.
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions are met:
9  *
10  *   * Redistributions of source code must retain the above copyright notice,
11  *       this list of conditions and the following disclaimer.
12  *   * Redistributions in binary form must reproduce the above copyright
13  *       notice, this list of conditions and the following disclaimer in the
14  *       documentation and/or other materials provided with the distribution.
15  *   * The copyright holder's name is not used to endorse or promote products
16  *       derived from this software without specific prior written permission.
17  *
18  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
22  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28  * POSSIBILITY OF SUCH DAMAGE.
29  */
30 
31 #ifndef _LDAP_KRBPWDPOLICY_H_
32 #define _LDAP_KRBPWDPOLICY_H_
33 
34 #pragma ident	"%Z%%M%	%I%	%E% SMI"
35 
36 krb5_error_code
37 krb5_ldap_get_password_policy (krb5_context , char *, osa_policy_ent_t *, int *);
38 
39 krb5_error_code
40 krb5_ldap_create_password_policy (krb5_context , osa_policy_ent_t );
41 
42 krb5_error_code
43 krb5_ldap_put_password_policy ( krb5_context kcontext, osa_policy_ent_t policy );
44 
45 krb5_error_code
46 krb5_ldap_delete_password_policy ( krb5_context kcontext, char *policy );
47 
48 krb5_error_code
49 krb5_ldap_iterate_password_policy(krb5_context, char *,
50 				  void (*) (krb5_pointer, osa_policy_ent_t ),
51 				  krb5_pointer);
52 
53 void
54 krb5_ldap_free_password_policy( krb5_context kcontext, osa_policy_ent_t entry );
55 
56 #endif
57