Commit Graph

28 Commits

Author SHA1 Message Date
Todd C. Miller
e3c99d9c84 Removed duplicate call to ldap_unbind_s introduced along with sudo_ldap_close. 2005-03-27 02:34:25 +00:00
Todd C. Miller
ddb8c3d7df return(foo) not return foo
optimize _atobool() slightly
2005-03-06 03:46:52 +00:00
Todd C. Miller
474768bd5f Use TRUE/FALSE 2005-03-06 03:40:18 +00:00
Todd C. Miller
3154a75b8e Reformat to match the rest of sudo's code. 2005-03-06 03:31:58 +00:00
Todd C. Miller
778d587063 Update copyright years. 2005-02-12 22:56:07 +00:00
Todd C. Miller
3b8b88407f Add __unused to rcsids 2005-01-27 15:42:30 +00:00
Todd C. Miller
1936aeb299 add sudo_ldap_close 2004-12-03 18:57:48 +00:00
Todd C. Miller
e605070143 Remove the FLAG_NOPASS, FLAG_NOEXEC and FLAG_MONITOR flags. Instead,
we just set the approriate defaults variable.
2004-11-19 23:00:28 +00:00
Todd C. Miller
2c2daa8eca Use: #include <config.h>
Not: #include "config.h"
That way we get the correct config.h when build dir != src dir
2004-11-19 18:39:14 +00:00
Todd C. Miller
fc85c6f02d Use supplementary group vector in struct sudo_user. 2004-11-16 23:55:26 +00:00
Todd C. Miller
9846e562ad Implement group caching and use the passwd and group caches throughout. 2004-11-16 04:24:11 +00:00
Todd C. Miller
6c5550d13c Split sudo_ldap_check() into three pieces: sudo_ldap_open(),
udo_ldap_update_defaults() and sudo_ldap_check().  This allows
us to connecto to LDAP, apply the default options, find the command
in the user's path, and then check whether the user is allowed to
run it.  The important thing here is that the default runas user
may be specified as a default option and that needs to be set
before we search for the command.
2004-10-26 22:19:58 +00:00
Todd C. Miller
0de1515d06 Add casts to unsigned char for isspace() to quiet a gcc warning. 2004-10-26 22:17:15 +00:00
Todd C. Miller
f7d7a3d5f7 sudo should not send mail if someone who runs 'sudo -l' has no entry. 2004-10-26 22:07:03 +00:00
Todd C. Miller
66992e10ef If LDAP_OPT_SUCCESS is not defined, use LDAP_SUCCESS instead.
Fixes a compilation problem with Solaris 9's native LDAP.

Set FLAG_MONITOR when needed.
2004-10-25 17:38:24 +00:00
Aaron Spangler
646d43cf5c config tls_* options 2004-09-02 04:03:25 +00:00
Aaron Spangler
2ceb87bc56 Allow --with-ldap-conf-file option to override LDAP_CONF 2004-08-27 03:44:35 +00:00
Aaron Spangler
b7ea12521a cleanup debug message 2004-08-27 02:08:10 +00:00
Aaron Spangler
02381e4c26 reflect changes to parse.c 2004-08-03 02:34:20 +00:00
Aaron Spangler
921f746138 Better debugging of ALL command 2004-07-08 01:04:50 +00:00
Aaron Spangler
5e8d3f8f26 Added !command feature 2004-07-04 23:59:27 +00:00
Todd C. Miller
ed7aee0e2f update (c) year 2004-06-07 00:02:56 +00:00
Todd C. Miller
713e419fe9 Remove trailing spaces, no actual code changes. 2004-06-06 23:58:11 +00:00
Aaron Spangler
1158691104 Solaris native LDAP build fix 2004-06-03 00:30:44 +00:00
Todd C. Miller
23da57f9fe Set edn to NULL is ldap_get_dn() fails to avoid potential use of an unset
variable.
2004-06-01 20:56:52 +00:00
Aaron Spangler
42cfd56127 Added start_tls support 2004-02-28 23:54:20 +00:00
Todd C. Miller
3a2282c927 More to a less restrictive, ISC-style license. 2004-02-13 21:36:43 +00:00
Aaron Spangler
b0226e939b Merged in LDAP Support 2004-02-13 02:08:27 +00:00