diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-01-12 00:33:21 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-01-12 00:33:21 +0000 |
commit | 68918818160ea2e0dc5a511d1216bc174350dc6c (patch) | |
tree | 8857b9ee656710d94ee0190ae9d08d643ef84973 /source | |
parent | 6b41bab79dc44ed63c0f22978f519d7ed353d5c3 (diff) | |
download | samba-68918818160ea2e0dc5a511d1216bc174350dc6c.tar.gz samba-68918818160ea2e0dc5a511d1216bc174350dc6c.tar.xz samba-68918818160ea2e0dc5a511d1216bc174350dc6c.zip |
these are johns PAM changes from the main branch - they need to be in
1.9.18 as well
Diffstat (limited to 'source')
-rw-r--r-- | source/smbd/password.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/smbd/password.c b/source/smbd/password.c index 1c72f0cfa6e..c2b916a0af8 100644 --- a/source/smbd/password.c +++ b/source/smbd/password.c @@ -442,13 +442,19 @@ static BOOL pam_auth(char *this_user,char *password) PAM_username = this_user; pam_error = pam_start("samba", this_user, &PAM_conversation, &pamh); PAM_BAIL; - pam_error = pam_authenticate(pamh, 0); +/* Setting PAM_SILENT stops generation of error messages to syslog + * to enable debugging on Red Hat Linux set: + * /etc/pam.d/samba: + * auth required /lib/security/pam_pwdb.so nullok shadow audit + * _OR_ change PAM_SILENT to 0 to force detailed reporting (logging) + */ + pam_error = pam_authenticate(pamh, PAM_SILENT); PAM_BAIL; /* It is not clear to me that account management is the right thing * to do, but it is not clear that it isn't, either. This can be * removed if no account management should be done. Alternately, * put a pam_allow.so entry in /etc/pam.conf for account handling. */ - pam_error = pam_acct_mgmt(pamh, 0); + pam_error = pam_acct_mgmt(pamh, PAM_SILENT); PAM_BAIL; pam_end(pamh, PAM_SUCCESS); /* If this point is reached, the user has been authenticated. */ |