summaryrefslogtreecommitdiffstats
path: root/auth.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2003-08-26 14:22:12 +1000
committerDarren Tucker <dtucker@zip.com.au>2003-08-26 14:22:12 +1000
commit43a0dc6653e24d31798879b2caa4d0eaf287531c (patch)
tree4002a5e39e5683b5ca07c0d9e189007d4ebb9a67 /auth.c
parent2fae867806fc3498be5bba343c6438068dfcf5b3 (diff)
- (dtucker) [auth.c] Do not check for locked accounts when PAM is enabled.
Diffstat (limited to 'auth.c')
-rw-r--r--auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/auth.c b/auth.c
index 9a59e270..f645cc11 100644
--- a/auth.c
+++ b/auth.c
@@ -73,7 +73,7 @@ int
allowed_user(struct passwd * pw)
{
struct stat st;
- const char *hostname = NULL, *ipaddr = NULL, *passwd;
+ const char *hostname = NULL, *ipaddr = NULL, *passwd = NULL;
char *shell;
int i;
#if defined(HAVE_SHADOW_H) && !defined(DISABLE_SHADOW)
@@ -131,7 +131,7 @@ allowed_user(struct passwd * pw)
#endif
/* check for locked account */
- if (passwd && *passwd) {
+ if (!options.use_pam && passwd && *passwd) {
int locked = 0;
#ifdef LOCKED_PASSWD_STRING