* ldap sync has "update" a few levels down.
*/
if (strcmp(css->name1, "listen") == 0) {
- css->unlang = CF_UNLANG_LISTEN;
- break;
+ css->unlang = CF_UNLANG_CAN_HAVE_UPDATE;
}
break;
(strcmp(css->name1, "redundant-load-balance") == 0)) {
css->unlang = CF_UNLANG_ALLOW;
css->allow_locals = true;
+ } else {
+ css->unlang = CF_UNLANG_CAN_HAVE_UPDATE;
}
break;
css->allow_locals = true;
break;
- case CF_UNLANG_LISTEN:
+ case CF_UNLANG_CAN_HAVE_UPDATE:
if (strcmp(css->name1, "update") == 0) {
css->unlang = CF_UNLANG_ASSIGNMENT;
} else {
- css->unlang = CF_UNLANG_LISTEN;
+ css->unlang = CF_UNLANG_CAN_HAVE_UPDATE;
}
break;
}
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_CAN_HAVE_UPDATE, //!< can have "update"
} cf_unlang_t;
/** A section grouping multiple #CONF_PAIR