mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-05 08:45:28 +00:00
Add support for BSD authentication.
This commit is contained in:
@@ -55,7 +55,7 @@ typedef struct sudo_auth {
|
||||
|
||||
/* Values for sudo_auth.flags. */
|
||||
/* XXX - these names are too long for my liking */
|
||||
#define FLAG_USER 0x01 /* functions must run as root */
|
||||
#define FLAG_USER 0x01 /* functions must run as the user, not root */
|
||||
#define FLAG_CONFIGURED 0x02 /* method configured ok */
|
||||
#define FLAG_ONEANDONLY 0x04 /* one and only auth method */
|
||||
|
||||
@@ -75,6 +75,9 @@ int sia_setup __P((struct passwd *pw, char **prompt, sudo_auth *auth));
|
||||
int sia_verify __P((struct passwd *pw, char *prompt, sudo_auth *auth));
|
||||
int sia_cleanup __P((struct passwd *pw, sudo_auth *auth));
|
||||
int aixauth_verify __P((struct passwd *pw, char *pass, sudo_auth *auth));
|
||||
int bsdauth_init __P((struct passwd *pw, char **prompt, sudo_auth *auth));
|
||||
int bsdauth_verify __P((struct passwd *pw, char *prompt, sudo_auth *auth));
|
||||
int bsdauth_cleanup __P((struct passwd *pw, sudo_auth *auth));
|
||||
|
||||
/* Prototypes for normal methods */
|
||||
int passwd_verify __P((struct passwd *pw, char *pass, sudo_auth *auth));
|
||||
@@ -118,6 +121,10 @@ int securid_verify __P((struct passwd *pw, char *pass, sudo_auth *auth));
|
||||
# define AUTH_STANDALONE \
|
||||
AUTH_ENTRY(0, "fwtk", fwtk_init, \
|
||||
NULL, fwtk_verify, fwtk_cleanup)
|
||||
#elif defined(HAVE_BSD_AUTH_H)
|
||||
# define AUTH_STANDALONE \
|
||||
AUTH_ENTRY(0, "bsdauth", bsdauth_init, \
|
||||
NULL, bsdauth_verify, bsdauth_cleanup)
|
||||
#endif
|
||||
|
||||
#endif /* SUDO_AUTH_H */
|
||||
|
Reference in New Issue
Block a user