* Walk through search results and return TRUE if we have a matching
* netgroup, else FALSE.
*/
-int
+static int
sudo_ldap_check_user_netgroup(ld, entry, user)
LDAP *ld;
LDAPMessage *entry;
* Walk through search results and return TRUE if we have a
* host match, else FALSE.
*/
-int
+static int
sudo_ldap_check_host(ld, entry)
LDAP *ld;
LDAPMessage *entry;
return(ret);
}
-int
+static int
sudo_ldap_check_runas_user(ld, entry)
LDAP *ld;
LDAPMessage *entry;
return(ret);
}
-int
+static int
sudo_ldap_check_runas_group(ld, entry)
LDAP *ld;
LDAPMessage *entry;
* Walk through search results and return TRUE if we have a runas match,
* else FALSE. RunAs info is optional.
*/
-int
+static int
sudo_ldap_check_runas(ld, entry)
LDAP *ld;
LDAPMessage *entry;
* Walk through search results and return TRUE if we have a command match,
* FALSE if disallowed and UNSPEC if not matched.
*/
-int
+static int
sudo_ldap_check_command(ld, entry, setenv_implied)
LDAP *ld;
LDAPMessage *entry;
* Search for boolean "option" in sudoOption.
* Returns TRUE if found and allowed, FALSE if negated, else UNSPEC.
*/
-int
+static int
sudo_ldap_check_bool(ld, entry, option)
LDAP *ld;
LDAPMessage *entry;
* Read sudoOption and modify the defaults as we go. This is used once
* from the cn=defaults entry and also once when a final sudoRole is matched.
*/
-void
+static void
sudo_ldap_parse_options(ld, entry)
LDAP *ld;
LDAPMessage *entry;
/*
* builds together a filter to check against ldap
*/
-char *
+static char *
sudo_ldap_build_pass1(pw)
struct passwd *pw;
{
/*
* Map yes/true/on to TRUE, no/false/off to FALSE, else -1
*/
-int
+static int
_atobool(s)
const char *s;
{
}
}
-int
+static int
sudo_ldap_read_config()
{
FILE *fp;
/*
* Print a record in the short form, ala file sudoers.
*/
-int
+static int
sudo_ldap_display_entry_short(ld, entry, lbuf)
LDAP *ld;
LDAPMessage *entry;
/*
* Print a record in the long form.
*/
-int
+static int
sudo_ldap_display_entry_long(ld, entry, lbuf)
LDAP *ld;
LDAPMessage *entry;
/*
* Set LDAP options based on the config table.
*/
-int
+static int
sudo_ldap_set_options(ld)
LDAP *ld;
{