Commit Graph

3577 Commits

Author SHA1 Message Date
Todd C. Miller
c20f64d2f1 No longer depend on VPATH; pointed out a bunch of missed dependencies. 2005-02-05 22:56:20 +00:00
Todd C. Miller
b2f7e61ff3 Help for PAM when account section is missing 2005-02-05 18:18:20 +00:00
Todd C. Miller
6548e82f20 Give user a clue when there is a missing "account" section in the PAM config. 2005-02-05 18:01:55 +00:00
Todd C. Miller
e6f51aa1af Better error handling. 2005-02-05 15:22:46 +00:00
Todd C. Miller
e166c1b11d Move _FOO_SOURCE to CPPFLAGS so it takes effect as early as possible.
Silences a warning about isblank() on linux.
2005-02-05 14:57:44 +00:00
Todd C. Miller
f7adbaddce Fix typo (missing comma) that caused an incorrect number of args
to be passed to log_error().
2005-02-05 02:49:53 +00:00
Todd C. Miller
543fe6e7d6 Don't try to destroy a tree we didn't create. 2005-02-01 04:03:29 +00:00
Todd C. Miller
3b8b88407f Add __unused to rcsids 2005-01-27 15:42:30 +00:00
Todd C. Miller
c2dad169fe Fix error message when mixing invalid auth types 2005-01-21 15:34:07 +00:00
Todd C. Miller
f751d934dd PAM, AIX auth, BSD auth and login_cap are now on by default if the OS
supports them.
2005-01-21 15:32:20 +00:00
Todd C. Miller
2dc559bf3e s/HAVE_AUTHENTICATE/HAVE_AIXAUTH/g 2005-01-21 15:29:55 +00:00
Todd C. Miller
609a615f8a Better checking for conflicting authentication methods
Display the authentication methods used at the end of configure
Rename --with-authenticate -> --with-aixauth
Use --with-aixauth, --with-bsdauth, --with-pam, --with-logincap by
default on systems that support them unless disabled.
Add OSMAJOR variable that replaces old OSREV; now OSREV has full version number
2005-01-21 15:29:05 +00:00
Todd C. Miller
840d51a160 s/-O/-C/ 2005-01-18 00:41:31 +00:00
Todd C. Miller
2e8e963460 Replace:
test -n "$FOO" || FOO="bar"

With:
    : ${FOO='bar'}
2005-01-14 18:35:06 +00:00
Todd C. Miller
7ca844890d Use function pointers to only call private passwd/group routines when
using a nonstandard passwd/group file.
2005-01-09 23:58:21 +00:00
Todd C. Miller
e7f2e2a190 sync 2005-01-06 15:34:20 +00:00
Todd C. Miller
b8c4e2770d Can't use strtok() since it doesn't handle empty fields so add
getpwent()/getgrent() functions and call those.
2005-01-06 03:16:11 +00:00
Todd C. Miller
2fd0f3d4ce Fix dummied out toke.c and gram.c dependencies. 2005-01-05 22:29:06 +00:00
Todd C. Miller
ba001795e8 Rename PARSESRCS -> GENERATED since it is only used in the clean target
Add devdir variable and use it to specify the path to parser sources
2005-01-05 22:18:42 +00:00
Todd C. Miller
031a3ef556 regen 2005-01-05 22:17:52 +00:00
Todd C. Miller
1fb59a25ca Add a devdir variables that defaults to $(srcdir) and is set to . if
--devel was specified.  Allows for proper dependecies building the parser.
2005-01-05 22:17:33 +00:00
Todd C. Miller
5e475c85b3 Add support for custom passwd/group files. 2005-01-05 19:50:49 +00:00
Todd C. Miller
66773d1b6a Build private copy of pwutil.o for testsudoers with MYPW defined so
it uses our own passwd/group routines.
2005-01-05 19:47:20 +00:00
Todd C. Miller
0ab0ad2441 Remove sudo_*{pw,gr}* stubs and add sudo_setspent/sudo_endspent stubs instead.
We can now just use the caching sudo_*{pw,gr}* functions in pwutil.c
Add comment about wanting to call sudo_endpwent/sudo_endgrent in cleanup()
2005-01-05 19:46:39 +00:00
Todd C. Miller
13cc087799 Remove caching; we will just use what is in pwutil.c
Use global buffers for passwd/group structs
Rename functions from sudo_* to my_*
2005-01-05 19:44:58 +00:00
Todd C. Miller
dfccf19338 g/c pwcache_init/pwcache_destroy 2005-01-05 19:43:36 +00:00
Todd C. Miller
54db5e40b1 Undo last commit and add sudo_setspent and sudo_endspent instead. 2005-01-05 19:42:06 +00:00
Todd C. Miller
308b6fa118 Move all but the shadow stuff from getspwuid.c to pwutil.c and pwcache_get
and pwcache_put as they are no longer needed.  Also add preprocessor
magic to use private versions of the passwd and group routines if MYPW
is defined (for use by testsudoers).
2005-01-05 19:41:31 +00:00
Todd C. Miller
516ff29770 zero out struct passwd/group before filling it in so if there are
fields we don't handle they end up as 0.
2005-01-05 03:40:01 +00:00
Todd C. Miller
a5d9296d25 Adapt to pwutil.c 2005-01-05 01:10:16 +00:00
Todd C. Miller
3c58acdc02 Add tsgetgrpw.c and pwutil.c
Rename the *OBJ variables for better readability.
2005-01-05 01:09:03 +00:00
Todd C. Miller
31fd279da8 Passwd and group lookup routines for testsudoers that support alternate
passwd and group files.
2005-01-05 01:08:30 +00:00
Todd C. Miller
282c0bf361 Split off pw/gr cache and dup code into its own file.
This allows visudo and testsudoers to use the pw/gr cache too.
2005-01-05 01:07:33 +00:00
Todd C. Miller
ed4df3a948 Print Defaults info in "sudo -l" output and wrap lines based on the
terminal width.
2005-01-02 00:31:08 +00:00
Todd C. Miller
a58012cfff Only check group vector in usergr_matches() if we are matching the
invoking or list user.  Always check the group members, even if
there was a group vector.
2005-01-01 17:41:21 +00:00
Todd C. Miller
39ddb7716f No longer bundle fnmatch.3 2004-12-17 22:24:16 +00:00
Todd C. Miller
e05905dd16 checkpoint 2004-12-17 18:12:20 +00:00
Todd C. Miller
bb76440b4f sort usage 2004-12-16 19:20:25 +00:00
Todd C. Miller
0b1ef8ff53 Sort command line options 2004-12-16 19:20:12 +00:00
Todd C. Miller
051a2110a4 Add closefrom sudoers option to start closing at a point other than 3.
Add closefrom_override sudoers option and -C sudo flag to allow the
user to specify a different closefrom starting point.
2004-12-16 18:33:49 +00:00
Todd C. Miller
74c19b024a Add _PATH_DEVNULL for those without it. 2004-12-16 18:25:54 +00:00
Todd C. Miller
2c9dc5a69b no more UCB strcasecmp 2004-12-16 03:55:46 +00:00
Todd C. Miller
b9a727023a replace BSD licensed one with version derived from pdksh 2004-12-16 03:54:48 +00:00
Todd C. Miller
f93cd1e97a Fix last commit. 2004-12-10 02:07:27 +00:00
Todd C. Miller
07d74adfba Make sure stdin, stdout and stderr are open and dup them to /dev/null
if not.
2004-12-10 00:26:22 +00:00
Todd C. Miller
1936aeb299 add sudo_ldap_close 2004-12-03 18:57:48 +00:00
Todd C. Miller
7d488657f0 Use TIME_WITH_SYS_TIME 2004-12-03 18:52:28 +00:00
Todd C. Miller
9884923a9c Add TIME_WITH_SYS_TIME_H 2004-12-03 18:48:07 +00:00
Todd C. Miller
48dae86b8f Add missing braces to avoid DYLD_FORCE_FLAT_NAMESPACE being set
unconditionally on darwin.  From Toby Peterson.
2004-12-02 16:18:29 +00:00
Todd C. Miller
77a7ab659a Check rbinsert() return value. In the case of faked up entries there
is usually a negative response cached that we need to overwrite.

In pwfree() don't try to zero out a NULL pw_passwd pointer.
2004-12-02 15:40:00 +00:00