6811333 Remove prom_printf() message in emlxs driver
[opensolaris.git] / usr / src / lib / libnisdb / nis_parse_ldap_err.h
blobe4c85d059be542fa0784df19619a13a2e0091860
1 /*
2 * CDDL HEADER START
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.
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.
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]
20 * CDDL HEADER END
23 * Copyright 2001-2003 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 #ifndef _NIS_PARSE_LDAP_ERR_H
28 #define _NIS_PARSE_LDAP_ERR_H
30 #pragma ident "%Z%%M% %I% %E% SMI"
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
36 static char *parse_error_msg[] =
38 "No Error",
40 /* parse_no_mem_error */
41 "Insufficient memory",
43 /* parse_bad_key */
44 "Unknown attribute name: '%s'",
46 /* parse_bad_continuation_error */
47 "Unable to continue",
49 /* parse_line_too_long */
50 "Too long to parse",
52 /* parse_internal_error */
53 "An internal error occurred: '%s'",
55 /* parse_initial_update_action_error */
56 "Incorrect syntax: '%s'\n"
57 "The permitted values are:\n\tnone\n\tfrom_ldap\n"
58 "\tto_ldap",
60 /* parse_initial_update_only_error */
61 "Incorrect syntax: '%s'\n"
62 "The permitted values are:\n\tyes\n\tno",
64 /* parse_retrieve_error_action_error */
65 "Incorrect syntax: '%s'\n"
66 "The permitted values are:\n\tuse_cached\n"
67 "\tretry\n\ttry_again\n\tunavail\n\tno_such_name",
69 /* parse_store_error_action_error */
70 "Incorrect syntax: '%s'\n"
71 "The permitted values are:\n"
72 "\tretry\n\tsystem_error\n\tunavail",
74 /* parse_refresh_error_action_error */
75 "Incorrect syntax: '%s'\n"
76 "The permitted values are:\n\tcontinue_using\n"
77 "\tretry\n\tcontinue_using,retry\n\tcache_expired\n\ttryagain",
79 /* parse_thread_create_error_action_error */
80 "Incorrect syntax: '%s'\n"
81 "The permitted values are:\n"
82 "\tretry\n\tpass_error",
84 /* parse_dump_error_action_error */
85 "Incorrect syntax: '%s'\n"
86 "The permitted values are:\n\tretry\n\trollback",
88 /* parse_resync_error */
89 "Incorrect syntax: '%s'\n"
90 "The permitted values are:\n"
91 "\tdirectory_locked\n\tfrom_copy\n"
92 "\tfrom_live",
94 /* parse_update_batching_error */
95 "Incorrect syntax: '%s'\n"
96 "The permitted values are:\n"
97 "\taccumulate\n"
98 "\tbounded_accumulate\n"
99 "\tnone",
101 /* parse_match_fetch_error */
102 "Incorrect syntax: '%s'\n"
103 "The permitted values are:\n"
104 "\tno_match_only\n\talways\n\tnever",
106 /* parse_no_object_dn */
107 "No object dn specified with database id '%s'",
109 /* parse_invalid_scope */
110 "Invalid scope '%s'.\n"
111 "The permitted values are:\n"
112 "\tbase\n\tone\n\tsub",
114 /* parse_invalid_ldap_search_filter */
115 "Invalid LDAP search filter or attribute value list: '%s'",
117 /* parse_semi_expected_error */
118 "A semicolon was expected: '%s'",
120 /* parse_mismatched_brackets */
121 "Brackets mismatched: '%s'",
123 /* parse_unsupported_format */
124 "Unsupported format: '%s'",
126 /* parse_unexpected_dash */
127 "Unexpected dash: '%s'",
129 /* parse_unmatched_escape */
130 "Unexpected escape character: '%s'",
132 /* parse_bad_lhs_format_error */
133 "Could not parse attribute mapping: '%s'",
135 /* parse_comma_expected_error */
136 "Comma was expected: '%s'",
138 /* parse_equal_expected_error */
139 "Equal sign expected: '%s'",
141 /* parse_close_paren_expected_error */
142 "Close parentheses expected: '%s'",
144 /* parse_too_many_extract_items */
145 "Bad extract format: '%s'",
147 /* parse_not_enough_extract_items */
148 "Not enough extract parameters: '%s'",
150 /* parse_bad_print_format */
151 "Incorrect print format: '%s'",
153 /* parse_bad_elide_char */
154 "Bad elide char: '%s'",
156 /* parse_start_rhs_unrecognized */
157 "Could not parse attribute mapping: '%s'",
159 /* parse_item_expected_error */
160 "Other syntax encountered when item expected: '%s'",
162 /* parse_format_string_expected_error */
163 "Other syntax encountered"
164 " when formatspec expected: '%s'",
166 /* parse_unexpected_data_end_rule */
167 "Bad syntax for attribute mapping rule: '%s'",
169 /* parse_bad_ttl_format_error */
170 "Incorrect syntax: '%s'\n"
171 "The expected syntax is:\n"
172 "\tdatabaseId \":\" initialTTLlo \":\" initialTTLhi"
173 " \":\" runningTTL",
175 /* parse_bad_auth_method_error */
176 "Incorrect syntax: '%s'\n"
177 "The supported authentication methods are:\n"
178 "\tnone\n"
179 "\tsimple\n"
180 "\tsasl/cram-md5\n"
181 "\tsasl/digest-md5",
183 /* parse_open_file_error */
184 "Could not open: '%s'",
186 /* parse_no_proxy_dn_error */
187 "nisplusLDAPconfigProxyUser was not specified",
189 /* parse_no_config_auth_error */
190 "nisplusLDAPconfigAuthenticationMethod was not specified",
192 /* parse_no_proxy_auth_error */
193 "authenticationMethod was not specified",
195 /* parse_ldap_init_error */
196 "ldap_init failed: '%s'",
198 /* parse_ldap_bind_error */
199 "ldap_bind failed for '%s': %s",
201 /* parse_ldap_search_error */
202 "ldap_search failed: '%s'",
204 /* parse_ldap_get_values_error */
205 "ldap_get_values failed: '%s'",
207 /* parse_object_dn_syntax_error */
208 "Bad object dn syntax: '%s'",
210 /* parse_invalid_dn */
211 "Invalid LDAP distinguished name: '%s'",
213 /* parse_bad_index_format */
214 "Invalid index: '%s'",
216 /* parse_bad_item_format */
217 "Invalid item: '%s'",
219 /* parse_bad_ldap_item_format */
220 "Invalid LDAP item: '%s'",
222 /* parse_invalid_print_arg */
223 "Invalid argument: '%s'",
225 /* parse_bad_extract_format_spec */
226 "Invalid extract format encountered: '%s'",
228 /* parse_no_db_del_mapping_rule */
229 "The mapping '%s' rule was not found found for database id '%s'",
231 /* parse_invalid_db_del_mapping_rule */
232 "Invalid delete mapping rule for database id '%s'",
234 /* parse_bad_domain_name */
235 "Bad domain name: '%s'",
237 /* parse_bad_dn */
238 "Bad distinguished name: '%s'",
240 /* parse_yes_or_no_expected_error */
241 "yes or no expected: '%s'",
243 /* parse_bad_uint_error */
244 "Invalid unsigned integer: '%s'",
246 /* parse_bad_int_error */
247 "Invalid integer: '%s'",
249 /* parse_bad_command_line_attribute_format */
250 "Invalid attribute specification: '%s'",
252 /* parse_no_ldap_server_error */
253 "preferredServerList was not specified",
255 /* parse_bad_ber_format */
256 "Invalid ber format specifed: '%s'",
258 /* parse_no_config_server_addr */
259 "nisplusLDAPconfigDefaultServerList was not specified",
261 /* parse_bad_time_error */
262 "Invalid time: '%s'",
264 /* parse_lhs_rhs_type_mismatch */
265 "There is a mismatch in the mapping rule: '%s'",
267 /* parse_only_one_match_item */
268 "No match item was specified: '%s'",
270 /* parse_cannot_elide */
271 "Cannot elide: '%s'",
273 /* parse_bad_tls_option_error */
274 "Incorrect syntax: '%s'\n"
275 "The supported tls options are:\n"
276 "\tnone\n"
277 "\tssl",
279 /* parse_ldapssl_client_init_error */
280 "Failed to initialize SSL client: '%s'",
282 /* parse_ldapssl_init_error */
283 "ldapssl_init failed: '%s'",
285 /* parse_no_available_referrals_error */
286 "No suitable referrals found to read rpc.nisd configuration",
288 /* parse_no_config_cert_db */
289 "nisplusLDAPconfigTLSCertificateDBPath must be specified",
291 /* parse_no_cert_db */
292 "nisplusLDAPTLSCertificateDBPath must be specified",
294 /* parse_unknown_yp_domain_error */
295 "Unknown nisLDAPdomainContext found",
297 /* parse_unexpected_yp_domain_error */
298 "Incorrect syntax for nisLDAPdomainContext",
300 /* parse_bad_map_error */
301 "Incorrect syntax or unknown error in parsing",
303 /* parse_bad_yp_comment_error */
304 "Incorrect syntax for nisLDAPcommentChar",
306 /* parse_bad_field_separator_error */
307 "Incorrect syntax for nisLDAPrepeatedFieldSeparators",
309 /* parse_bad_name_field */
310 "Incorrect syntax or parse error for nisLDAPnameFields or nisLDAPsplitField",
312 /* parse_yp_retrieve_error_action_error */
313 "Incorrect syntax: '%s'\n"
314 "The permitted values are:\n\tuse_cached\n"
315 "\tfail",
317 /* parse_yp_store_error_action_error */
318 "Incorrect syntax: '%s'\n"
319 "The permitted values are:\n\tretry\n"
320 "\tfail"
323 static char *conn_error_msg[] =
325 "No Error",
327 /* conn_no_mem_error */
328 "get_ldap_connection: Insufficient memory",
330 /* conn_ldap_init_error */
331 "make_ldap_session: ldap_init failed: %s",
333 /* conn_unsupported_ldap_bind_method */
334 "make_ldap_session: Unsupported LDAP bind method specified",
336 /* conn_ldap_bind_error */
337 "make_ldap_session: ldap_bind failed for'%s': %s"
340 #ifdef __cplusplus
342 #endif
344 #endif /* _NIS_PARSE_LDAP_ERR_H */