2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A#include "ldap_parse.h"
2N/A#include "nis_parse_ldap_conf.h"
2N/Astatic const char *get_print_mapping_element(const char *s,
2N/A const char *attrib_val,
2N/A int attrib_len,
2N/A if (*s == COLON_CHAR)
2N/A if (s == attrib_val) {
2N/A switch (attrib_num) {
2N/A case key_yp_map_flags:
2N/A while (s < attrib_end) {
2N/A case key_yp_comment_char:
2N/A attrib_end--;
2N/A while (*s != SINGLE_QUOTE_CHAR)
2N/A if (*s == SINGLE_QUOTE_CHAR &&
2N/A } else if (*s == SINGLE_QUOTE_CHAR &&
2N/A if (s < attrib_end) {
2N/A attrib_end--;
2N/A while (s < attrib_end &&
2N/A *s != DOUBLE_QUOTE_CHAR)
2N/A begin_token = s;
2N/A while (s < attrib_end &&
2N/A *s != DOUBLE_QUOTE_CHAR) {
2N/A if (*s == ESCAPE_CHAR)
2N/A case key_yp_name_fields:
2N/A case key_yp_split_field:
2N/A case key_yp_db_id_map:
2N/A if (s < attrib_end) {
2N/A attrib_end--;
2N/A case key_yp_entry_ttl:
2N/A case key_yp_ldap_object_dn:
2N/A case key_nis_to_ldap_map:
2N/A case key_ldap_to_nis_map:
2N/A if (new_mapping) {
2N/A if (new_mapping)
2N/A const char *attrib_val,
2N/A int attrib_len,
2N/A if (*s == COLON_CHAR) {
2N/A if (s == attrib_val) {
2N/A switch (attrib_num) {
2N/A case key_yp_domain_context:
2N/A if (*s == COLON_CHAR)
2N/A if (s < attrib_end) {
2N/A attrib_end--;
2N/A case key_yppasswdd_domains:
2N/A const char *name_s_end,
2N/A != mmt_berstring) {
2N/A sizeof (__nis_mapping_item_t));
2N/A sizeof (__nis_mapping_element_t));
2N/Astatic __nis_object_dn_t *
2N/A case dn_begin_parse:
2N/A case dn_got_read_dn:
2N/A case dn_got_read_q_scope:
2N/A case dn_got_read_scope:
2N/A case dn_got_read_q_filter:
2N/A case dn_got_read_filter:
2N/A case dn_got_write_colon:
2N/A case dn_got_write_dn:
2N/A case dn_got_write_q_scope:
2N/A case dn_got_write_scope:
2N/A case dn_got_write_q_filter:
2N/A case dn_got_write_filter:
2N/A case dn_got_delete_colon:
2N/A case dn_got_delete_dsp:
2N/A token_type t;
2N/A begin_token = s;
2N/A sizeof (__nis_mapping_rule_t *));
2N/A begin_token = s;
2N/A if (t == comma_token)
2N/A token_type t;
2N/A begin_token = s;
2N/A e = (__nis_mapping_element_t *)
2N/A if (t == open_paren_token) {
2N/A begin_token = s;
2N/A if (t == quoted_string_token) {
2N/A } else if (t == string_token) {
2N/A } else if (t == string_token) {
2N/A token_type t;
2N/A begin_token = s;
2N/A begin_token = s;
2N/A if (t != string_token) {
2N/A sizeof (__nis_mapping_item_t));
2N/A sizeof (__nis_mapping_element_t));
2N/A token_type t;
2N/A sizeof (__nis_mapping_element_t));
2N/A begin_token = s;
2N/A free_mapping_element(&e[i]);
2N/A token_type t;
2N/A begin_token = s;
2N/A e = (__nis_mapping_element_t *)
2N/A if (t == string_token) {
2N/A } else if (t == open_paren_token) {
2N/A begin_token = s;
2N/A if (t == string_token) {
2N/A begin_token = s;
2N/A else if (t == close_paren_token) {
2N/A } else if (t != comma_token) {
2N/A begin_token = s;
2N/A } else if (t == quoted_string_token) {
2N/A char *fmt_string,
2N/A token_type t;
2N/A sizeof (__nis_mapping_sub_element_t));
2N/A begin_token = s;
2N/A } else if (t == close_paren_token) {
2N/A } else if (t == comma_token) {
2N/A begin_token = s;
2N/A for (n = 0; n < numSubElements; n++)
2N/A token_type t;
2N/A begin_token = s;
2N/A begin_token = s;
2N/A begin_token = s;
2N/A begin_token = s;
2N/A token_type t;
2N/A begin_token = s;
2N/A if (t == open_paren_token) {
2N/A begin_token = s;
2N/A if (t != quoted_string_token ||
2N/A token_type t;
2N/A begin_token = s;
2N/A } else if (t != open_paren_token) {
2N/A begin_token = s;
2N/A if (t == string_token) {
2N/A begin_token = s;
2N/A } else if (t == close_paren_token) {
2N/A is_whitespace(*s))
2N/A begin_token = s;
2N/A = (__nis_mapping_item_t *)
2N/A if (!subelement->
2N/A } else if (t != comma_token) {
2N/A begin_token = s;
2N/A sizeof (__nis_mapping_item_t));
2N/A if (print_item) {
2N/A if (last_comma) {
2N/A case ESCAPE_CHAR:
2N/A case DOUBLE_QUOTE_CHAR:
2N/A case QUESTION_MARK:
2N/A case CLOSE_PAREN_CHAR:
2N/A case COLON_CHAR:
2N/A case SEMI_COLON_CHAR:
2N/A case COMMA_CHAR:
2N/A case EQUAL_CHAR:
2N/Astatic __nis_mapping_element_t *
2N/A token_type t;
2N/A begin_token = s;
2N/A begin_token = s;
2N/A e = (__nis_mapping_element_t *)
2N/A if (!IS_TERMINAL_CHAR(*s)) {
2N/A begin_token = s;
2N/A s - begin_token);
2N/A if (!IS_TERMINAL_CHAR(*s)) {
2N/A if (*s != QUESTION_MARK)
2N/A if (!IS_TERMINAL_CHAR(*s)) {
2N/A if (*s != QUESTION_MARK)
2N/A if (*s == OPEN_PAREN_CHAR) {
2N/A begin_token = s;
2N/A begin_token = s;
2N/A const char *fmt_string,
2N/A const char *f = fmt_string;
2N/A f = fmt_string;
2N/A if (print_mapping)
2N/A if (--n_brackets == 0)
2N/A n_brackets++;
2N/A if (n_brackets == 0) {
2N/A token_type t;
2N/A begin_token = s;
2N/A if (t != string_token) {
2N/A begin_token = s;