1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
|
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* plugins/kdb/ldap/libkdb_ldap/ldap_misc.h */
/*
* Copyright (c) 2004-2005, Novell, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * The copyright holder's name is not used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _HAVE_LDAP_MISC_H
#define _HAVE_LDAP_MISC_H 1
/* misc functions */
krb5_error_code
is_principal_in_realm(krb5_ldap_context *, krb5_const_principal);
krb5_error_code
checkattributevalue(LDAP *, char *, char *, char **, int *);
krb5_error_code
krb5_get_attributes_mask(krb5_context, krb5_db_entry *, int *);
krb5_error_code
krb5_get_princ_type(krb5_context, krb5_db_entry *, int *);
krb5_error_code
krb5_get_princ_count(krb5_context, krb5_db_entry *, int *);
krb5_error_code
krb5_get_linkdn(krb5_context, krb5_db_entry *, char ***);
krb5_error_code
krb5_get_userdn(krb5_context, krb5_db_entry *, char **);
krb5_error_code
krb5_get_containerdn(krb5_context, krb5_db_entry *, char **);
krb5_error_code
store_tl_data(krb5_tl_data *, int, void *);
krb5_error_code
decode_tl_data(krb5_tl_data *, int, void **);
krb5_error_code
is_principal_in_realm(krb5_ldap_context *, krb5_const_principal);
krb5_error_code
krb5_get_subtree_info(krb5_ldap_context *, char ***, unsigned int *);
krb5_error_code
krb5_ldap_parse_db_params(krb5_context, char **);
krb5_error_code
krb5_ldap_read_server_params(krb5_context , char *, int);
krb5_error_code
krb5_ldap_free_server_params(krb5_ldap_context *);
krb5_error_code
krb5_ldap_list(krb5_context, char ***, char *, char *);
krb5_error_code
krb5_ldap_get_value(LDAP *, LDAPMessage *, char *, int *);
krb5_error_code
krb5_ldap_get_string(LDAP *, LDAPMessage *, char *, char **, krb5_boolean *);
krb5_error_code
krb5_ldap_get_strings(LDAP *, LDAPMessage *, char *, char ***, krb5_boolean *);
krb5_error_code
krb5_ldap_get_time(LDAP *, LDAPMessage *, char *, krb5_timestamp *, krb5_boolean *);
krb5_error_code
krb5_add_member(LDAPMod ***, int *);
krb5_error_code
krb5_add_str_mem_ldap_mod(LDAPMod ***, char *, int, char **);
krb5_error_code
krb5_add_ber_mem_ldap_mod(LDAPMod ***, char *, int, struct berval **);
krb5_error_code
krb5_add_int_mem_ldap_mod(LDAPMod ***, char *, int , int);
krb5_error_code
krb5_ldap_free_mod_array(LDAPMod **);
krb5_error_code
krb5_ldap_get_reference_count (krb5_context, char *, char *, int *, LDAP *);
krb5_error_code
krb5_ldap_policydn_to_name (krb5_context, char *, char **);
krb5_error_code
krb5_ldap_name_to_policydn (krb5_context, char *, char **);
krb5_error_code
populate_krb5_db_entry(krb5_context context,
krb5_ldap_context *ldap_context,
LDAP *ld,
LDAPMessage *ent,
krb5_const_principal princ,
krb5_db_entry *entry);
int kldap_ensure_initialized (void);
#endif
|