Bug 6309 - samba ignores account expiration when using encrypted(SMB) passwords
Summary: samba ignores account expiration when using encrypted(SMB) passwords
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: samba
Version: 6.1
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Trond Eivind Glomsrxd
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 1999-10-24 16:49 UTC by Mario Lorenz
Modified: 2008-05-01 15:37 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2000-09-14 07:21:48 UTC

Attachments (Terms of Use)

Description Mario Lorenz 1999-10-24 16:49:55 UTC
Even after account expiration (as per /etc/shadow) that user
can use samba resources if encrypt passwords is set to yes
(to accomodate Win98 users). If not using encrypted
passwords, account expiration works as expected (thanks to
PAM, I guess).

Workaround would be not to use encryption.. But then (fear!)
I would have to change registry settings on all the Win

Comment 1 Andrew Bartlett 2000-09-14 07:21:03 UTC
This is becouse samba does not use PAM when checking encryped passwords.

A better approach would be the one used by OpenSSH, still using PAM despite
having a RSA authentication.

Comment 2 Henri Schlereth 2001-01-21 13:45:46 UTC
The current version(s) of Samba now use PAM. Please try a newer version and if the problem still exists re-open this bug report.

Comment 3 Andrew Bartlett 2001-01-28 13:49:18 UTC
No release of Samba will involve PAM in the checking of ANYTHING if encrypted
passwords are used, hence the problem.  Currently all PAM is allowed to do is to
say yea or nea to a particular username/password pair, and only if the
plain-text password is available.  (Account disabling is then caught as it
checks the account module in the same process).

Note You need to log in before you can comment on or make changes to this bug.