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