Re: PAM module to enable password restriction



In article <1163174804.888964.327530@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"Hugh" <hughjanus007@xxxxxxxxxxx> writes:
Hi,

Is there an existing PAM module that I can integrate in my Solaris 10
environment that does NOT allow passwords to:
1.) contain sequences of three (3) or more characters from the user's
login ID or the system name.
2.) contain a sequence of two (2) or more characters more than once,
for example, qwe123abc.

Thanks.


I don't know of one that does exactly those checks; pam_authtok_check(5)
does some other checks, see

http://docs.sun.com/app/docs/doc/816-5175/6mbba7f2j?a=view

You might try:

* describing to whoever dreamed up those checks what pam_authtok_check(5)
already does; see if they can't live with that instead (some of the
folks who dream these things up can be persuaded to live with
off-the-shelf if they understand it costs time or money and not merely
setting configuration options to get what they specify)

* looking at the code for the existing module (well, newer probably,
but hopefully not incompatible) at
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/pam_modules/authtok_check/
in case you want to write your own


It really gets tiresome to have every different place dream up its own
password strength checks (and expect the software to enforce them).
And if one wants to implement some sort of single-sign-on but each
participating OS prior to that has its own checks, what then? Even
if the single-sign-on will keep that from breaking, the change will seriously
confuse the users, and generate a lot more help desk calls (of which
entirely too many already are probably about trouble with passwords).

Either those who specify this stuff should specify best-effort with
off-the-shelf software (which would however have different behavior for
each platform, with the aforementioned wetware issues), or should specify
(and fund) some add-on available for all applicable platforms that they
like, or some standard should exist for password strength tests (is there
one?), which everybody should just reference, and every platform should
implement.

Did they get those checks from prior experience with some other OS? It
almost sounds like it, and a bad habit it is too to build specifications
based on the behavior of a particular product; gives the appearance of
stacking the deck.



--
mailto:rlhamil@xxxxxxxxx http://www.smart.net/~rlhamil

Lasik/PRK theme music:
"In the Hall of the Mountain King", from "Peer Gynt"
.



Relevant Pages

  • Re: problem with custom membership provider
    ... i must use a non-autogenerated decryption key, so this is my attempt:, ... The exception message is telling you what to do: the machinekey element ... "You must specify a non-autogenerated machine key to store passwords ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: linux passowrd re-use problem
    ... Subject: linux passowrd re-use problem ... The PAM module pam_unix.so can be configured to maintain a list of old ... To remember the last 15 passwords, add the line below to the ... unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
    (RedHat)
  • Re: Mapping a Network drive & remembering the password
    ... That part is, but in XP Pro, you can specify that you want to save a ... username and password with a connection ... >> passwords for them to be cached.. ...
    (microsoft.public.windowsxp.work_remotely)
  • Re: Password aging on Suns with NIS?
    ... coding your own PAM module isn't an option for you ... > sources so they'd be the PAM-aware along with the whole PAM ... to change password. ... passwords and disabling accounts for those that don't. ...
    (comp.security.unix)
  • SUMMARY: Forcing Stronger Passwords
    ... of passwords and forcing people whose passwords are ... downloaded the pam_passwdqc PAM module, ... other than password cracking and open-source wrappers. ... Many thanks in advance -- will summarize as this has ...
    (SunManagers)