summaryrefslogtreecommitdiff
path: root/auth-sia.c
diff options
context:
space:
mode:
authorKevin Steves <stevesk@pobox.com>2002-04-04 19:02:28 +0000
committerKevin Steves <stevesk@pobox.com>2002-04-04 19:02:28 +0000
commite683e7643997118ac51b18c073a6aba410c0cc3c (patch)
treef2a98c2979198a89e00eb5cdd3d6fbf0fb986377 /auth-sia.c
parentaf40bc6a72013e9eec74ec99e21dab9342ac9880 (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.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/auth-sia.c b/auth-sia.c
index 8585f5d6..2bace5d4 100644
--- a/auth-sia.c
+++ b/auth-sia.c
@@ -6,6 +6,7 @@
#include "log.h"
#include "servconf.h"
#include "canohost.h"
+#include "auth.h"
#include <sia.h>
#include <siad.h>
@@ -23,15 +24,16 @@ extern char **saved_argv;
extern int errno;
int
-auth_sia_password(char *user, char *pass)
+auth_sia_password(Authctxt *authctxt, char *pass)
{
int ret;
SIAENTITY *ent = NULL;
const char *host;
+ char *user = authctxt->user;
host = get_canonical_hostname(options.verify_reverse_mapping);
- if (!user || !pass)
+ if (!user || !pass || pass[0] == '\0')
return(0);
if (sia_ses_init(&ent, saved_argc, saved_argv, host, user, NULL, 0,