css->allow_locals = true;
break;
}
+
+ if (strcmp(css->name1, "listen") == 0) {
+ css->unlang = CF_UNLANG_LISTEN;
+ break;
+ }
break;
/*
css->unlang = CF_UNLANG_DICTIONARY;
css->allow_locals = true;
break;
+
+ case CF_UNLANG_LISTEN:
+ if (strcmp(css->name1, "update") == 0) {
+ css->unlang = CF_UNLANG_ASSIGNMENT;
+ } else {
+ css->unlang = CF_UNLANG_LISTEN;
+ }
+ break;
}
add_section:
CF_UNLANG_EDIT, //!< only edit commands
CF_UNLANG_ASSIGNMENT, //!< only assignments inside of map / update
CF_UNLANG_DICTIONARY, //!< only local variable definitions
+ CF_UNLANG_LISTEN, //!< ldap sync has "update" in a "listen" section.
} cf_unlang_t;
/** A section grouping multiple #CONF_PAIR