mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-30 22:05:46 +00:00
Simplify the nss interface such that each sudoers provider fills
in a per-nss list of userspecs and defaults instead of using separate lookup and list functions. This makes it possible to have a single implementation of the code for sudoers lookup and listing.
This commit is contained in:
@@ -20,8 +20,9 @@
|
||||
/* Iterators used by sudo_ldap_role_to_priv() to handle bervar ** or char ** */
|
||||
typedef char * (*sudo_ldap_iter_t)(void **);
|
||||
|
||||
/* ldap_common.c */
|
||||
/* ldap_util.c */
|
||||
bool sudo_ldap_is_negated(char **valp);
|
||||
bool sudo_ldap_add_default(const char *var, const char *val, int op, char *source, struct defaults_list *defs);
|
||||
int sudo_ldap_parse_option(char *optstr, char **varp, char **valp);
|
||||
struct privilege *sudo_ldap_role_to_priv(const char *cn, void *hosts, void *runasusers, void *runasgroups, void *cmnds, void *opts, const char *notbefore, const char *notafter, bool warnings, bool store_options, sudo_ldap_iter_t iter);
|
||||
struct sudo_digest *sudo_ldap_extract_digest(char **cmnd, struct sudo_digest *digest);
|
||||
|
Reference in New Issue
Block a user