diff options
author | Kevin Steves <stevesk@pobox.com> | 2002-04-04 19:02:28 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@pobox.com> | 2002-04-04 19:02:28 +0000 |
commit | e683e7643997118ac51b18c073a6aba410c0cc3c (patch) | |
tree | f2a98c2979198a89e00eb5cdd3d6fbf0fb986377 /auth-sia.c | |
parent | af40bc6a72013e9eec74ec99e21dab9342ac9880 (diff) |
- (stevesk) [auth-pam.c auth-pam.h auth-passwd.c auth-sia.c auth-sia.h
auth1.c auth2.c] PAM, OSF_SIA password auth cleanup; from djm.
Diffstat (limited to 'auth-sia.c')
-rw-r--r-- | auth-sia.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/auth-sia.c b/auth-sia.c index 8585f5d6b..2bace5d47 100644 --- a/auth-sia.c +++ b/auth-sia.c | |||
@@ -6,6 +6,7 @@ | |||
6 | #include "log.h" | 6 | #include "log.h" |
7 | #include "servconf.h" | 7 | #include "servconf.h" |
8 | #include "canohost.h" | 8 | #include "canohost.h" |
9 | #include "auth.h" | ||
9 | 10 | ||
10 | #include <sia.h> | 11 | #include <sia.h> |
11 | #include <siad.h> | 12 | #include <siad.h> |
@@ -23,15 +24,16 @@ extern char **saved_argv; | |||
23 | extern int errno; | 24 | extern int errno; |
24 | 25 | ||
25 | int | 26 | int |
26 | auth_sia_password(char *user, char *pass) | 27 | auth_sia_password(Authctxt *authctxt, char *pass) |
27 | { | 28 | { |
28 | int ret; | 29 | int ret; |
29 | SIAENTITY *ent = NULL; | 30 | SIAENTITY *ent = NULL; |
30 | const char *host; | 31 | const char *host; |
32 | char *user = authctxt->user; | ||
31 | 33 | ||
32 | host = get_canonical_hostname(options.verify_reverse_mapping); | 34 | host = get_canonical_hostname(options.verify_reverse_mapping); |
33 | 35 | ||
34 | if (!user || !pass) | 36 | if (!user || !pass || pass[0] == '\0') |
35 | return(0); | 37 | return(0); |
36 | 38 | ||
37 | if (sia_ses_init(&ent, saved_argc, saved_argv, host, user, NULL, 0, | 39 | if (sia_ses_init(&ent, saved_argc, saved_argv, host, user, NULL, 0, |