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 #pragma ident "%Z%%M% %I% %E% SMI" 31 32 #ifdef __cplusplus 33 extern "C" { 34 #endif 35 36 static char *parse_error_msg[] = 37 { 38 "No Error", 39 40 /* parse_no_mem_error */ 41 "Insufficient memory", 42 43 /* parse_bad_key */ 44 "Unknown attribute name: '%s'", 45 46 /* parse_bad_continuation_error */ 47 "Unable to continue", 48 49 /* parse_line_too_long */ 50 "Too long to parse", 51 52 /* parse_internal_error */ 53 "An internal error occurred: '%s'", 54 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", 59 60 /* parse_initial_update_only_error */ 61 "Incorrect syntax: '%s'\n" 62 "The permitted values are:\n\tyes\n\tno", 63 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", 68 69 /* parse_store_error_action_error */ 70 "Incorrect syntax: '%s'\n" 71 "The permitted values are:\n" 72 "\tretry\n\tsystem_error\n\tunavail", 73 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", 78 79 /* parse_thread_create_error_action_error */ 80 "Incorrect syntax: '%s'\n" 81 "The permitted values are:\n" 82 "\tretry\n\tpass_error", 83 84 /* parse_dump_error_action_error */ 85 "Incorrect syntax: '%s'\n" 86 "The permitted values are:\n\tretry\n\trollback", 87 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", 93 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", 100 101 /* parse_match_fetch_error */ 102 "Incorrect syntax: '%s'\n" 103 "The permitted values are:\n" 104 "\tno_match_only\n\talways\n\tnever", 105 106 /* parse_no_object_dn */ 107 "No object dn specified with database id '%s'", 108 109 /* parse_invalid_scope */ 110 "Invalid scope '%s'.\n" 111 "The permitted values are:\n" 112 "\tbase\n\tone\n\tsub", 113 114 /* parse_invalid_ldap_search_filter */ 115 "Invalid LDAP search filter or attribute value list: '%s'", 116 117 /* parse_semi_expected_error */ 118 "A semicolon was expected: '%s'", 119 120 /* parse_mismatched_brackets */ 121 "Brackets mismatched: '%s'", 122 123 /* parse_unsupported_format */ 124 "Unsupported format: '%s'", 125 126 /* parse_unexpected_dash */ 127 "Unexpected dash: '%s'", 128 129 /* parse_unmatched_escape */ 130 "Unexpected escape character: '%s'", 131 132 /* parse_bad_lhs_format_error */ 133 "Could not parse attribute mapping: '%s'", 134 135 /* parse_comma_expected_error */ 136 "Comma was expected: '%s'", 137 138 /* parse_equal_expected_error */ 139 "Equal sign expected: '%s'", 140 141 /* parse_close_paren_expected_error */ 142 "Close parentheses expected: '%s'", 143 144 /* parse_too_many_extract_items */ 145 "Bad extract format: '%s'", 146 147 /* parse_not_enough_extract_items */ 148 "Not enough extract parameters: '%s'", 149 150 /* parse_bad_print_format */ 151 "Incorrect print format: '%s'", 152 153 /* parse_bad_elide_char */ 154 "Bad elide char: '%s'", 155 156 /* parse_start_rhs_unrecognized */ 157 "Could not parse attribute mapping: '%s'", 158 159 /* parse_item_expected_error */ 160 "Other syntax encountered when item expected: '%s'", 161 162 /* parse_format_string_expected_error */ 163 "Other syntax encountered" 164 " when formatspec expected: '%s'", 165 166 /* parse_unexpected_data_end_rule */ 167 "Bad syntax for attribute mapping rule: '%s'", 168 169 /* parse_bad_ttl_format_error */ 170 "Incorrect syntax: '%s'\n" 171 "The expected syntax is:\n" 172 "\tdatabaseId \":\" initialTTLlo \":\" initialTTLhi" 173 " \":\" runningTTL", 174 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", 182 183 /* parse_open_file_error */ 184 "Could not open: '%s'", 185 186 /* parse_no_proxy_dn_error */ 187 "nisplusLDAPconfigProxyUser was not specified", 188 189 /* parse_no_config_auth_error */ 190 "nisplusLDAPconfigAuthenticationMethod was not specified", 191 192 /* parse_no_proxy_auth_error */ 193 "authenticationMethod was not specified", 194 195 /* parse_ldap_init_error */ 196 "ldap_init failed: '%s'", 197 198 /* parse_ldap_bind_error */ 199 "ldap_bind failed for '%s': %s", 200 201 /* parse_ldap_search_error */ 202 "ldap_search failed: '%s'", 203 204 /* parse_ldap_get_values_error */ 205 "ldap_get_values failed: '%s'", 206 207 /* parse_object_dn_syntax_error */ 208 "Bad object dn syntax: '%s'", 209 210 /* parse_invalid_dn */ 211 "Invalid LDAP distinguished name: '%s'", 212 213 /* parse_bad_index_format */ 214 "Invalid index: '%s'", 215 216 /* parse_bad_item_format */ 217 "Invalid item: '%s'", 218 219 /* parse_bad_ldap_item_format */ 220 "Invalid LDAP item: '%s'", 221 222 /* parse_invalid_print_arg */ 223 "Invalid argument: '%s'", 224 225 /* parse_bad_extract_format_spec */ 226 "Invalid extract format encountered: '%s'", 227 228 /* parse_no_db_del_mapping_rule */ 229 "The mapping '%s' rule was not found found for database id '%s'", 230 231 /* parse_invalid_db_del_mapping_rule */ 232 "Invalid delete mapping rule for database id '%s'", 233 234 /* parse_bad_domain_name */ 235 "Bad domain name: '%s'", 236 237 /* parse_bad_dn */ 238 "Bad distinguished name: '%s'", 239 240 /* parse_yes_or_no_expected_error */ 241 "yes or no expected: '%s'", 242 243 /* parse_bad_uint_error */ 244 "Invalid unsigned integer: '%s'", 245 246 /* parse_bad_int_error */ 247 "Invalid integer: '%s'", 248 249 /* parse_bad_command_line_attribute_format */ 250 "Invalid attribute specification: '%s'", 251 252 /* parse_no_ldap_server_error */ 253 "preferredServerList was not specified", 254 255 /* parse_bad_ber_format */ 256 "Invalid ber format specifed: '%s'", 257 258 /* parse_no_config_server_addr */ 259 "nisplusLDAPconfigDefaultServerList was not specified", 260 261 /* parse_bad_time_error */ 262 "Invalid time: '%s'", 263 264 /* parse_lhs_rhs_type_mismatch */ 265 "There is a mismatch in the mapping rule: '%s'", 266 267 /* parse_only_one_match_item */ 268 "No match item was specified: '%s'", 269 270 /* parse_cannot_elide */ 271 "Cannot elide: '%s'", 272 273 /* parse_bad_tls_option_error */ 274 "Incorrect syntax: '%s'\n" 275 "The supported tls options are:\n" 276 "\tnone\n" 277 "\tssl", 278 279 /* parse_ldapssl_client_init_error */ 280 "Failed to initialize SSL client: '%s'", 281 282 /* parse_ldapssl_init_error */ 283 "ldapssl_init failed: '%s'", 284 285 /* parse_no_available_referrals_error */ 286 "No suitable referrals found to read rpc.nisd configuration", 287 288 /* parse_no_config_cert_db */ 289 "nisplusLDAPconfigTLSCertificateDBPath must be specified", 290 291 /* parse_no_cert_db */ 292 "nisplusLDAPTLSCertificateDBPath must be specified", 293 294 /* parse_unknown_yp_domain_error */ 295 "Unknown nisLDAPdomainContext found", 296 297 /* parse_unexpected_yp_domain_error */ 298 "Incorrect syntax for nisLDAPdomainContext", 299 300 /* parse_bad_map_error */ 301 "Incorrect syntax or unknown error in parsing", 302 303 /* parse_bad_yp_comment_error */ 304 "Incorrect syntax for nisLDAPcommentChar", 305 306 /* parse_bad_field_separator_error */ 307 "Incorrect syntax for nisLDAPrepeatedFieldSeparators", 308 309 /* parse_bad_name_field */ 310 "Incorrect syntax or parse error for nisLDAPnameFields or nisLDAPsplitField", 311 312 /* parse_yp_retrieve_error_action_error */ 313 "Incorrect syntax: '%s'\n" 314 "The permitted values are:\n\tuse_cached\n" 315 "\tfail", 316 317 /* parse_yp_store_error_action_error */ 318 "Incorrect syntax: '%s'\n" 319 "The permitted values are:\n\tretry\n" 320 "\tfail" 321 }; 322 323 static char *conn_error_msg[] = 324 { 325 "No Error", 326 327 /* conn_no_mem_error */ 328 "get_ldap_connection: Insufficient memory", 329 330 /* conn_ldap_init_error */ 331 "make_ldap_session: ldap_init failed: %s", 332 333 /* conn_unsupported_ldap_bind_method */ 334 "make_ldap_session: Unsupported LDAP bind method specified", 335 336 /* conn_ldap_bind_error */ 337 "make_ldap_session: ldap_bind failed for'%s': %s" 338 }; 339 340 #ifdef __cplusplus 341 } 342 #endif 343 344 #endif /* _NIS_PARSE_LDAP_ERR_H */ 345