xref: /illumos-gate/usr/src/lib/libnisdb/nis_parse_ldap_err.h (revision 9b9d39d2a32ff806d2431dbcc50968ef1e6d46b2)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 2001-2003 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #ifndef	_NIS_PARSE_LDAP_ERR_H
28 #define	_NIS_PARSE_LDAP_ERR_H
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 static char *parse_error_msg[] =
35 {
36 	"No Error",
37 
38 	/* parse_no_mem_error */
39 	"Insufficient memory",
40 
41 	/* parse_bad_key */
42 	"Unknown attribute name: '%s'",
43 
44 	/* parse_bad_continuation_error */
45 	"Unable to continue",
46 
47 	/* parse_line_too_long */
48 	"Too long to parse",
49 
50 	/* parse_internal_error */
51 	"An internal error occurred: '%s'",
52 
53 	/* parse_initial_update_action_error */
54 	"Incorrect syntax: '%s'\n"
55 		"The permitted values are:\n\tnone\n\tfrom_ldap\n"
56 		"\tto_ldap",
57 
58 	/* parse_initial_update_only_error */
59 	"Incorrect syntax: '%s'\n"
60 		"The permitted values are:\n\tyes\n\tno",
61 
62 	/* parse_retrieve_error_action_error */
63 	"Incorrect syntax: '%s'\n"
64 		"The permitted values are:\n\tuse_cached\n"
65 		"\tretry\n\ttry_again\n\tunavail\n\tno_such_name",
66 
67 	/* parse_store_error_action_error */
68 	"Incorrect syntax: '%s'\n"
69 		"The permitted values are:\n"
70 		"\tretry\n\tsystem_error\n\tunavail",
71 
72 	/* parse_refresh_error_action_error */
73 	"Incorrect syntax: '%s'\n"
74 		"The permitted values are:\n\tcontinue_using\n"
75 		"\tretry\n\tcontinue_using,retry\n\tcache_expired\n\ttryagain",
76 
77 	/* parse_thread_create_error_action_error */
78 	"Incorrect syntax: '%s'\n"
79 		"The permitted values are:\n"
80 		"\tretry\n\tpass_error",
81 
82 	/* parse_dump_error_action_error */
83 	"Incorrect syntax: '%s'\n"
84 		"The permitted values are:\n\tretry\n\trollback",
85 
86 	/* parse_resync_error */
87 	"Incorrect syntax: '%s'\n"
88 		"The permitted values are:\n"
89 		"\tdirectory_locked\n\tfrom_copy\n"
90 		"\tfrom_live",
91 
92 	/* parse_update_batching_error */
93 	"Incorrect syntax: '%s'\n"
94 		"The permitted values are:\n"
95 		"\taccumulate\n"
96 		"\tbounded_accumulate\n"
97 		"\tnone",
98 
99 	/* parse_match_fetch_error */
100 	"Incorrect syntax: '%s'\n"
101 		"The permitted values are:\n"
102 		"\tno_match_only\n\talways\n\tnever",
103 
104 	/* parse_no_object_dn */
105 	"No object dn specified with database id '%s'",
106 
107 	/* parse_invalid_scope */
108 	"Invalid scope '%s'.\n"
109 		"The permitted values are:\n"
110 		"\tbase\n\tone\n\tsub",
111 
112 	/* parse_invalid_ldap_search_filter */
113 	"Invalid LDAP search filter or attribute value list: '%s'",
114 
115 	/* parse_semi_expected_error */
116 	"A semicolon was expected: '%s'",
117 
118 	/* parse_mismatched_brackets */
119 	"Brackets mismatched: '%s'",
120 
121 	/* parse_unsupported_format */
122 	"Unsupported format: '%s'",
123 
124 	/* parse_unexpected_dash */
125 	"Unexpected dash: '%s'",
126 
127 	/* parse_unmatched_escape */
128 	"Unexpected escape character: '%s'",
129 
130 	/* parse_bad_lhs_format_error */
131 	"Could not parse attribute mapping: '%s'",
132 
133 	/* parse_comma_expected_error */
134 	"Comma was expected: '%s'",
135 
136 	/* parse_equal_expected_error */
137 	"Equal sign expected: '%s'",
138 
139 	/* parse_close_paren_expected_error */
140 	"Close parentheses expected: '%s'",
141 
142 	/* parse_too_many_extract_items */
143 	"Bad extract format: '%s'",
144 
145 	/* parse_not_enough_extract_items */
146 	"Not enough extract parameters: '%s'",
147 
148 	/* parse_bad_print_format */
149 	"Incorrect print format: '%s'",
150 
151 	/* parse_bad_elide_char */
152 	"Bad elide char: '%s'",
153 
154 	/* parse_start_rhs_unrecognized */
155 	"Could not parse attribute mapping: '%s'",
156 
157 	/* parse_item_expected_error */
158 	"Other syntax encountered when item expected: '%s'",
159 
160 	/* parse_format_string_expected_error */
161 	"Other syntax encountered"
162 		" when formatspec expected: '%s'",
163 
164 	/* parse_unexpected_data_end_rule */
165 	"Bad syntax for attribute mapping rule: '%s'",
166 
167 	/* parse_bad_ttl_format_error */
168 	"Incorrect syntax: '%s'\n"
169 		"The expected syntax is:\n"
170 		"\tdatabaseId \":\" initialTTLlo \":\" initialTTLhi"
171 		" \":\" runningTTL",
172 
173 	/* parse_bad_auth_method_error */
174 	"Incorrect syntax: '%s'\n"
175 		"The supported authentication methods are:\n"
176 		"\tnone\n"
177 		"\tsimple\n"
178 		"\tsasl/cram-md5\n"
179 		"\tsasl/digest-md5",
180 
181 	/* parse_open_file_error */
182 	"Could not open: '%s'",
183 
184 	/* parse_no_proxy_dn_error */
185 	"nisplusLDAPconfigProxyUser was not specified",
186 
187 	/* parse_no_config_auth_error */
188 	"nisplusLDAPconfigAuthenticationMethod was not specified",
189 
190 	/* parse_no_proxy_auth_error */
191 	"authenticationMethod was not specified",
192 
193 	/* parse_ldap_init_error */
194 	"ldap_init failed: '%s'",
195 
196 	/* parse_ldap_bind_error */
197 	"ldap_bind failed for '%s': %s",
198 
199 	/* parse_ldap_search_error */
200 	"ldap_search failed: '%s'",
201 
202 	/* parse_ldap_get_values_error */
203 	"ldap_get_values failed: '%s'",
204 
205 	/* parse_object_dn_syntax_error */
206 	"Bad object dn syntax: '%s'",
207 
208 	/* parse_invalid_dn */
209 	"Invalid LDAP distinguished name: '%s'",
210 
211 	/* parse_bad_index_format */
212 	"Invalid index: '%s'",
213 
214 	/* parse_bad_item_format */
215 	"Invalid item: '%s'",
216 
217 	/* parse_bad_ldap_item_format */
218 	"Invalid LDAP item: '%s'",
219 
220 	/* parse_invalid_print_arg */
221 	"Invalid argument: '%s'",
222 
223 	/* parse_bad_extract_format_spec */
224 	"Invalid extract format encountered: '%s'",
225 
226 	/* parse_no_db_del_mapping_rule */
227 	"The mapping '%s' rule was not found found for database id '%s'",
228 
229 	/* parse_invalid_db_del_mapping_rule */
230 	"Invalid delete mapping rule for database id '%s'",
231 
232 	/* parse_bad_domain_name */
233 	"Bad domain name: '%s'",
234 
235 	/* parse_bad_dn */
236 	"Bad distinguished name: '%s'",
237 
238 	/* parse_yes_or_no_expected_error */
239 	"yes or no expected: '%s'",
240 
241 	/* parse_bad_uint_error */
242 	"Invalid unsigned integer: '%s'",
243 
244 	/* parse_bad_int_error */
245 	"Invalid integer: '%s'",
246 
247 	/* parse_bad_command_line_attribute_format */
248 	"Invalid attribute specification: '%s'",
249 
250 	/* parse_no_ldap_server_error */
251 	"preferredServerList was not specified",
252 
253 	/* parse_bad_ber_format */
254 	"Invalid ber format specifed: '%s'",
255 
256 	/* parse_no_config_server_addr */
257 	"nisplusLDAPconfigDefaultServerList was not specified",
258 
259 	/* parse_bad_time_error */
260 	"Invalid time: '%s'",
261 
262 	/* parse_lhs_rhs_type_mismatch */
263 	"There is a mismatch in the mapping rule: '%s'",
264 
265 	/* parse_only_one_match_item */
266 	"No match item was specified: '%s'",
267 
268 	/* parse_cannot_elide */
269 	"Cannot elide: '%s'",
270 
271 	/* parse_bad_tls_option_error */
272 	"Incorrect syntax: '%s'\n"
273 		"The supported tls options are:\n"
274 		"\tnone\n"
275 		"\tssl",
276 
277 	/* parse_ldapssl_client_init_error */
278 	"Failed to initialize SSL client: '%s'",
279 
280 	/* parse_ldapssl_init_error */
281 	"ldapssl_init failed: '%s'",
282 
283 	/* parse_no_available_referrals_error */
284 	"No suitable referrals found to read rpc.nisd configuration",
285 
286 	/* parse_no_config_cert_db */
287 	"nisplusLDAPconfigTLSCertificateDBPath must be specified",
288 
289 	/* parse_no_cert_db */
290 	"nisplusLDAPTLSCertificateDBPath must be specified",
291 
292 	/* parse_unknown_yp_domain_error */
293 	"Unknown nisLDAPdomainContext found",
294 
295 	/* parse_unexpected_yp_domain_error */
296 	"Incorrect syntax for nisLDAPdomainContext",
297 
298 	/* parse_bad_map_error */
299 	"Incorrect syntax or unknown error in parsing",
300 
301 	/* parse_bad_yp_comment_error */
302 	"Incorrect syntax for nisLDAPcommentChar",
303 
304 	/* parse_bad_field_separator_error */
305 	"Incorrect syntax for nisLDAPrepeatedFieldSeparators",
306 
307 	/* parse_bad_name_field */
308 "Incorrect syntax or parse error for nisLDAPnameFields or nisLDAPsplitField",
309 
310 	/* parse_yp_retrieve_error_action_error */
311 	"Incorrect syntax: '%s'\n"
312 		"The permitted values are:\n\tuse_cached\n"
313 		"\tfail",
314 
315 	/* parse_yp_store_error_action_error */
316 	"Incorrect syntax: '%s'\n"
317 		"The permitted values are:\n\tretry\n"
318 		"\tfail"
319 };
320 
321 static char *conn_error_msg[] =
322 {
323 	"No Error",
324 
325 	/* conn_no_mem_error */
326 	"get_ldap_connection: Insufficient memory",
327 
328 	/* conn_ldap_init_error */
329 	"make_ldap_session: ldap_init failed: %s",
330 
331 	/* conn_unsupported_ldap_bind_method */
332 	"make_ldap_session: Unsupported LDAP bind method specified",
333 
334 	/* conn_ldap_bind_error */
335 	"make_ldap_session: ldap_bind failed for'%s': %s"
336 };
337 
338 #ifdef __cplusplus
339 }
340 #endif
341 
342 #endif	/* _NIS_PARSE_LDAP_ERR_H */
343