summaryrefslogtreecommitdiffstats
path: root/usr.bin/passwd/local_passwd.c
Commit message (Collapse)AuthorAgeFilesLines
* Updates for Blowfish password hashing.markm2001-03-111-2/+6
|
* Fix a premature freeing bug found with malloc debugging courtesy John Hay.green2000-08-261-1/+5
| | | | Submitted by: jhay
* Add working and easy crypt(3)-switching. Yes, we need a whole new APIgreen2000-08-221-14/+7
| | | | | | | | | | | | | | for crypt(3) by now. In any case: Add crypt_set_format(3) + documentation to -lcrypt. Add login_setcryptfmt(3) + documentation to -lutil. Support for switching crypt formats in passwd(8). Support for switching crypt formats in pw(8). The simple synopsis is: edit login.conf; add a passwd_format field set to "des" or "md5"; go nuts :) Reviewed by: peter
* Teach passwd about a new "mixpasswordcase" login.conf parameter. If thisnik2000-02-111-5/+12
| | | | | | | | | | | | parameter is missing, or specified as above, then passwd behaves as normal when the user enters an all lower case password -- i.e., it prompts them to use mixed case, and will only grudgingly accept an all lower case password. If you negate this entry in login.conf, with "mixpasswordcase@", then passwd will allow all lower case passwords without complaining. Approved by: jkh
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Back out the new crypt(3) stuff untill we can go through an independantmarkm1999-01-231-143/+30
| | | | "make world" to make sure everything works properly.
* Added support for multiple hash formats, and new salt generation code.brandon1999-01-221-30/+143
| | | | | | | | | It selects which hash format to use by checking /etc/auth.conf for auth_default. Leaving auth_default disabled will give the current behaviour (use the same format as is currently used in the password, or if a new password default to what crypt likes best--des if it exists). Now you can set it to one of: des, best, md5 or sha1. best is a synonym for sha1, currently.
* Use the correct name of the login.conf(5) capability (`passwordperiod' ->jkoshy1998-05-191-4/+4
| | | | `passwordtime').
* Prevent passwd locking database forever waiting for user inputache1998-03-071-3/+4
| | | | Submitted by: Antti Kaipila <anttik@iki.fi>
* Remove srandomdev fallback codeache1997-06-141-3/+2
|
* login_getclass() -> login_getpwclass()davidn1997-05-101-2/+2
|
* Initialize RNG only onceache1997-03-241-2/+7
| | | | Use srandomdev() now
* Fix srandom arg type according to Lite2ache1997-03-111-2/+2
|
* Add ^ getpid() for better srandom resultsache1997-03-101-2/+2
|
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Adds login class support for local & nis passwords:davidn1997-02-101-7/+39
| | | | | - minpasswordlen=n override minimum password length for class. - passwordperiod=n[smhdwy] auto-set next password change date.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* I haven't had a single contraversial commit all week, so what thejkh1996-11-031-1/+8
| | | | | | | | | | | | | | | heck. Watch through our hidden camera, ladies and gentlemen, as this one-line addition to the syslog output generates hundreds of thousands of lines of email in response, all from people decrying the evils of electronic noise pollution! :-) What this change does, simply speaking, is syslog it every time someone changes their local password. I need this at a local ISP to tell whether people are reacting to expires in a timely fashion or not. To disable it, uncomment -DLOGGING in the Makefile. If your users change their passwords so often as to fill your logfile, then you may also have another administrative problem to deal with.
* Implement incremental passwd database updates. This is done by ading a '-u'guido1996-07-011-2/+2
| | | | | | | | | | | | | | option to pwd_mkdb and adding this option to utilities invoking it. Further, the filling of both the secure and insecure databases has been merged into one loop giving also a performance improvemnet. Note that I did *not* change the adduser command. I don't read perl (it is a write only language anyway). The change will drastically improve performance for passwd and friends with large passwd files. Vipw's performance won't change. In order to do that some kind of diff should be made between the old and new master.passwd and depending the amount of changes, an incremental or complete update of the databases should be agreed upon.
* 1) Fix local_passwd to co-operate with dual-personality crypt(3).markm1995-12-161-5/+17
| | | | | | | | | | | Changing a local passwd will now keep the encryption type that was originally used to encrypt the password, so folks adding DES to their systems will not be irritated/confused by having MD5'ed passwords in their master.passwd. Coming later is an option to allow the user to choose the encryption type. 2) Fix a bunch of compiler warnings announced by turning on -Wall. I did not get them all, that will come a bit later.
* Fix a cosmetic null termination problem for completeness.peter1995-12-111-1/+2
| | | | | | | The #ifdef NEWSALT code doesn't NULL terminate the salt string.. We dont appear to use this code anymore, but it shouldn't hurt Submitted by: Laurence Lopez <lopez@mv.mv.com>
* Bug fix: use the use_yp() function in the chpass(1) code to determinewpaul1995-09-021-0/+7
| | | | | | | | | correctly whether a user is local or NIS (or both, or neither). If you have a user that exists locally but not in NIS, passwd(1) could get confused and try to submit the password change to NIS. (Fortunately, yppasswdd is smart enough to spot the error and reject the change.) Bug reported by: Charles Owens <owensc@enc.edu>
* Remove the ypchfn/ypchsh stuff from passwd and leave just thewpaul1995-08-131-2/+2
| | | | yppasswd support. The rest is moving into chpass.
* Argh!! Got the arguments in the printf() backwards.wpaul1995-06-241-2/+2
|
* Whoops: getnewpasswd() always says "Changing local password for foo".wpaul1995-06-241-3/+5
| | | | | | Change things slightly so this message says "local" or "YP" as needed so we can use it for both NIS and local password changes without confusing people.
* Always make the salt a 8 char string (incl '\0') for algorithms that can use itphk1994-11-061-1/+8
|
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+153
OpenPOWER on IntegriCloud