wiz
bade1adbc5
Fix typo.
2006-02-24 21:07:29 +00:00
wiz
8b9018d2d9
Mark up NULL (with Dv).
2006-02-24 21:06:50 +00:00
elad
bca69c49bf
needs assert.h to compile.
2006-02-19 23:13:14 +00:00
elad
f0dd749f9b
add _DIAGASSERT as requested by mrg@.
2006-02-19 20:46:29 +00:00
elad
5cd336ae07
When loading a policy with an "nclasses" option, always set the min/max
...
values for the various character classes to allow any number, just in
case. Also note about that in the man-page.
This makes it easier to use the "nclasses" option.
Note that alternatively we could just memset() to 0xff when doing the
load, but that might lead to more unexpected behavior.
2006-02-18 16:45:01 +00:00
elad
cf6eceb4e7
Don't expose struct pw_policy and use pw_policy_t, use malloc, man-page
...
fixups.
As discussed on source-changes@.
Okay yamt@, thorpej@.
2006-02-18 16:32:45 +00:00
elad
378a5a27de
Some stuff that's been sitting in my tree for too long...
...
Improve the pw_policy(3) API by splitting it to two functions, one to load
the policy from /etc/passwd.conf and another to test passwords against the
policy.
Some bug fixes, more consistent code, and man-page updates.
Minor for libutil bumped.
2006-02-18 10:52:48 +00:00
christos
349633b5fa
make setuserenv and setuserpath take an environment setting function and
...
an environment pointer and expose them.
bump version.
2005-12-20 21:32:20 +00:00
elad
02197be174
Lint warnings.
2005-09-17 01:51:21 +00:00
elad
769541972d
Rename struct pw_policy -> struct pw_policy_handler.
2005-09-16 22:38:48 +00:00
elad
44b5bc7c94
Add pw_policy.3.
...
From Hisashi T Fujinaka, thanks!
2005-09-14 18:45:40 +00:00
elad
8d6270e665
Introduce pw_policy(3), an easily extendable way of defining password
...
policies and enforcing them in programs.
Man-page written with much help and tips from David Maxwell, Hubert
Feyrer, and Thomas Klausner.
This bumps libutil minor to 7.
XXX: Need default policy to go in /etc/passwd.conf, and integration
into local/yp/PAM password changing code.
PR/10206.
2005-09-14 11:36:52 +00:00
christos
3ff3472e11
Use the re-entrant getgr*_r functions. From John Nemeth.
2005-09-14 02:12:34 +00:00
wiz
e315aa9a2a
Avoid duplicate if.
2005-09-10 21:55:35 +00:00
elad
232f61fabb
Lint warnings.
2005-08-27 16:55:59 +00:00
elad
75beed7e53
Make this compile without warnings.
2005-08-19 10:10:08 +00:00
elad
dd3453b45c
Make pw_getconf(3) set errno so we have indication on what went wrong.
...
Document possible errno values in the manpage.
2005-08-18 21:07:23 +00:00
wiz
98fcd5ac03
Fix capso in Dd argument.
2005-05-16 18:49:24 +00:00
thorpej
f2b0a44663
u_short -> uint16_t
2005-05-15 21:01:34 +00:00
wiz
0bb532e823
Bump date for previous; add commas to make
...
sentences more readable.
2005-04-13 23:08:03 +00:00
drochner
1a771b22ec
Allow for a login.conf file without an explicite "default" class
...
definition.
The login.conf(5) manpage states that the "default" class is used
*if it exists*.
2005-04-13 20:32:42 +00:00
atatat
a9321bb19a
Add the 'A' and 'P' format specifiers which use getaddrinfo(3) to turn
...
numbers into names (if possible). Also add the '?' format modifier
that elides the "N/A" if that's what you would normally get.
2005-04-09 02:05:47 +00:00
mycroft
ebfdf0c012
If TIOCPTMGET fails, close /dev/ptm.
2005-01-19 01:54:09 +00:00
christos
163d05f57d
PR/28792: FUKAUMI Naoki: passwd: Couldn't generate salt: Invalid argument
...
I broke the case where /etc/passwd.conf was empty.
2005-01-15 03:07:56 +00:00
dyoung
4d24861fc9
For consistency of sockaddr_snprintf(3) with snprintf(3) and
...
snprintb(3), do not count the terminating NUL in the return value.
Update the regression tests to match. Approved by christos@.
2005-01-13 00:44:25 +00:00
christos
4c3e77eff3
add pw_getpwconf(), bump.
2005-01-12 03:34:33 +00:00
christos
ca7489bf5c
Avoid spinning if writing to a pty returns 0. This happened to me when
...
I had a pty with a suspended sshd (why?).
2005-01-08 06:43:16 +00:00
christos
f1a325d103
Unbreak setuserpath(); from Nick Hudson.
2004-12-20 18:42:03 +00:00
wiz
ff7ab08a15
Mmm, API changes without date bumps... bump date for constification.
2004-12-11 16:50:56 +00:00
christos
a5c1a01ed9
WARNS=3; fix cast-qual issues.
2004-12-11 06:41:15 +00:00
christos
70756f97e8
Constify; the api was completely broken before.
2004-12-11 06:40:42 +00:00
peter
192aae95b5
Add missing LIBRARY section.
...
ok wiz@
2004-12-01 00:06:46 +00:00
christos
5a55e0c902
Don't give write privileges at all if the tty group is missing.
2004-11-25 02:49:46 +00:00
christos
db5d4e2d6a
I really want to kill the hard-coding of _TTY_GID. Set the group to the
...
primary group of the user if the group tty does not exist.
2004-11-24 22:17:19 +00:00
christos
6845cdfbb8
fix the header.
2004-11-21 03:04:14 +00:00
wiz
7a3b0ef281
Formatting fixes, and a typo fix.
2004-11-20 23:29:33 +00:00
christos
1fe49f768f
Add a manual page.
2004-11-20 03:06:09 +00:00
christos
09ad64e21f
check for getnameinfo error correctly; thanks to Peter Postma.
2004-11-19 22:05:23 +00:00
christos
eb6484700a
Add sockaddr_snprintf; XXX: Needs a man page.
2004-11-19 21:37:19 +00:00
dsl
ece723d1ec
Add if_media.c, functions for converting media to/from strings.
...
(from ifconfig.c)
2004-11-11 20:36:28 +00:00
christos
d07f9e79e8
- don't complain if the pty is of the form pts/n
...
- fix off by one error in iovlen bounds checking
- print the function name in the error message and make the
error messages consistent
- knf
2004-11-10 17:00:41 +00:00
christos
2611d5a68f
KNF; Simplify some logic, so that lines don't wrap. Explain why we
...
break, continue, or return from the tty scanning loops.
2004-09-18 20:14:22 +00:00
yamt
2936303c19
openpty: just check errors of syscalls,
...
instead of checking permission beforehand in userland.
2004-09-18 16:44:38 +00:00
wiz
245c7e5202
New sentence, new line.
2004-08-04 15:07:37 +00:00
thorpej
7c161da819
- Rename pw_copy() to pw_copyx(), make it return a success/failure code,
...
and add "errbuf" and "errbufsz" parameters so that errors can be handled
gracefully, rather than simply exiting the process.
- Add a pw_copy() wrapper around pw_copyx() to preserve old behavior for
apps that use it.
- Bump shlib version to 7.4.
2004-08-03 23:29:04 +00:00
christos
92cd5ee20c
Don't allow openpty to succeed if the caller is non-superuser.
...
XXX: we cross-reference ptm 4 which does not exist (yet)
2004-06-18 02:42:57 +00:00
christos
f099fa154d
use the pty multiplexor if it exists.
2004-05-27 03:12:48 +00:00
lukem
2ebcc58148
sbsize should be parsed as R_CSIZE so that suffixes work correctly.
...
Fix from Christian Biere in PR [lib/25504].
(XXX: the R_CSIZE parsing should be changed to using strsuftollx(3))
2004-05-09 23:28:11 +00:00
christos
dea77b1806
sprinkle const
2004-04-23 15:23:26 +00:00
matt
d07ed6425d
Add sbsize login capability.
2004-04-18 18:21:43 +00:00