{ NULL }
};
+/* sudo_nss implementation */
+static int sudo_ldap_open __P((struct sudo_nss *nss));
+static int sudo_ldap_close __P((struct sudo_nss *nss));
+static int sudo_ldap_parse __P((struct sudo_nss *nss));
+static int sudo_ldap_setdefs __P((struct sudo_nss *nss));
+static int sudo_ldap_lookup __P((struct sudo_nss *nss, int ret, int pwflag));
+static int sudo_ldap_display_cmnd __P((struct sudo_nss *nss,
+ struct passwd *pw));
+static int sudo_ldap_display_defaults __P((struct sudo_nss *nss,
+ struct passwd *pw, struct lbuf *lbuf));
+static int sudo_ldap_display_bound_defaults __P((struct sudo_nss *nss,
+ struct passwd *pw, struct lbuf *lbuf));
+static int sudo_ldap_display_privs __P((struct sudo_nss *nss,
+ struct passwd *pw, struct lbuf *lbuf));
+
struct sudo_nss sudo_nss_ldap = {
&sudo_nss_ldap,
NULL,
/*
* Fetch and display the global Options.
*/
-int
+static int
sudo_ldap_display_defaults(nss, pw, lbuf)
struct sudo_nss *nss;
struct passwd *pw;
/*
* STUB
*/
-int
+static int
sudo_ldap_display_bound_defaults(nss, pw, lbuf)
struct sudo_nss *nss;
struct passwd *pw;
/*
* Like sudo_ldap_lookup(), except we just print entries.
*/
-int
+static int
sudo_ldap_display_privs(nss, pw, lbuf)
struct sudo_nss *nss;
struct passwd *pw;
return(count);
}
-int
+static int
sudo_ldap_display_cmnd(nss, pw)
struct sudo_nss *nss;
struct passwd *pw;
* Open a connection to the LDAP server.
* Returns 0 on success and non-zero on failure.
*/
-int
+static int
sudo_ldap_open(nss)
struct sudo_nss *nss;
{
return(0);
}
-int
+static int
sudo_ldap_setdefs(nss)
struct sudo_nss *nss;
{
/*
* like sudoers_lookup() - only LDAP style
*/
-int
+static int
sudo_ldap_lookup(nss, ret, pwflag)
struct sudo_nss *nss;
int ret;
/*
* shut down LDAP connection
*/
-int
+static int
sudo_ldap_close(nss)
struct sudo_nss *nss;
{
/*
* STUB
*/
-int
+static int
sudo_ldap_parse(nss)
struct sudo_nss *nss;
{
void io_log_close __P((void));
void io_nextid __P((void));
-/* ldap.c */
-int sudo_ldap_open __P((struct sudo_nss *));
-int sudo_ldap_close __P((struct sudo_nss *));
-int sudo_ldap_setdefs __P((struct sudo_nss *));
-int sudo_ldap_lookup __P((struct sudo_nss *, int, int));
-int sudo_ldap_parse __P((struct sudo_nss *));
-int sudo_ldap_display_cmnd __P((struct sudo_nss *, struct passwd *));
-int sudo_ldap_display_defaults __P((struct sudo_nss *, struct passwd *, struct lbuf *));
-int sudo_ldap_display_bound_defaults __P((struct sudo_nss *, struct passwd *, struct lbuf *));
-int sudo_ldap_display_privs __P((struct sudo_nss *, struct passwd *, struct lbuf *));
-
/* pam.c */
int pam_begin_session __P((struct passwd *));
int pam_end_session __P((void));