]>
granicus.if.org Git - sudo/log
Todd C. Miller [Mon, 21 Jan 2008 15:00:54 +0000 (15:00 +0000)]
Use 78n line length when formatting cat pages.
Todd C. Miller [Mon, 21 Jan 2008 14:50:54 +0000 (14:50 +0000)]
Remove redundant info that is now in sudoers.ldap.pod
Todd C. Miller [Sun, 20 Jan 2008 21:18:56 +0000 (21:18 +0000)]
Reorganize the first section a bit. Substitute the proper path for
/etc/sudoers.
Todd C. Miller [Sun, 20 Jan 2008 15:17:35 +0000 (15:17 +0000)]
Substitute values for ldap.conf, ldap.secret and nsswitch.conf
Move schema into EXAMPLES
Todd C. Miller [Sun, 20 Jan 2008 15:15:47 +0000 (15:15 +0000)]
Substitute values for ldap.conf, ldap.secret and nsswitch.conf into
sudoers.ldap.man.
Todd C. Miller [Sun, 20 Jan 2008 01:35:54 +0000 (01:35 +0000)]
substitute for sudoers.ldap.man
Todd C. Miller [Sun, 20 Jan 2008 01:34:44 +0000 (01:34 +0000)]
Fix cut & pasto introduced when adding sudoers.ldap man page.
Todd C. Miller [Sun, 20 Jan 2008 01:25:39 +0000 (01:25 +0000)]
Fill in some of the missing pieces. Still needs some reorganization and
editing.
Todd C. Miller [Sat, 19 Jan 2008 20:06:09 +0000 (20:06 +0000)]
Beginnings of a sudoers.ldap man page. Currently, much of the information
is adapted from README.LDAP.
Todd C. Miller [Fri, 18 Jan 2008 22:32:52 +0000 (22:32 +0000)]
When copying gr_mem we must guarantee that the storage space for
gr_mem is properly aligned. The simplest way to do this is to
simply store gr_mem directly after struct group. This is not a
problem for gr_passwd or gr_name as they are simple strings.
Todd C. Miller [Fri, 18 Jan 2008 21:47:05 +0000 (21:47 +0000)]
Fix a typo/thinko in one of the calls to sudo_ldap_check_user_netgroup().
From Marco van Wieringen.
Todd C. Miller [Thu, 17 Jan 2008 20:44:28 +0000 (20:44 +0000)]
include <mps/ldap_ssl.h> in ldap.c if available
Todd C. Miller [Wed, 16 Jan 2008 23:20:35 +0000 (23:20 +0000)]
Make sure we define SIZE_MAX for yacc's skeleton.c
Todd C. Miller [Wed, 16 Jan 2008 18:03:08 +0000 (18:03 +0000)]
Use TCSAFLUSH when restoring terminal settings (and echo) to guarantee that any pending output is discarded
Todd C. Miller [Tue, 15 Jan 2008 22:18:11 +0000 (22:18 +0000)]
no longer need to specify SETENV when user has sudo ALL
Todd C. Miller [Tue, 15 Jan 2008 14:40:48 +0000 (14:40 +0000)]
sync user_args size calculation with sudo.c
Add -g group option, renaming old -g to -G
Add set_runasgr() and set_runaspw() and use them
Todd C. Miller [Tue, 15 Jan 2008 14:23:58 +0000 (14:23 +0000)]
Make set_runaspw static void
Todd C. Miller [Tue, 15 Jan 2008 14:17:31 +0000 (14:17 +0000)]
g/c set_runaspw stub
Todd C. Miller [Tue, 15 Jan 2008 12:28:33 +0000 (12:28 +0000)]
Don't add -llber twice.
Todd C. Miller [Mon, 14 Jan 2008 11:40:08 +0000 (11:40 +0000)]
fix typo
Todd C. Miller [Sun, 13 Jan 2008 20:39:54 +0000 (20:39 +0000)]
regen
Todd C. Miller [Sun, 13 Jan 2008 19:57:34 +0000 (19:57 +0000)]
Fix check that determines whether -llber is required.
Todd C. Miller [Sun, 13 Jan 2008 19:22:11 +0000 (19:22 +0000)]
For netscape-based LDAP, use ldapssl_set_strength() to implement
the checkpeer ldap.conf option.
Todd C. Miller [Sun, 13 Jan 2008 14:49:43 +0000 (14:49 +0000)]
Delay krb5_cc_initialize() until we actually need to use the cred cache,
which is what krb5_verify_user() does.
Better cleanup on failure.
Todd C. Miller [Sat, 12 Jan 2008 17:40:43 +0000 (17:40 +0000)]
Rewrite verify_krb_v5_tgt() based on what heimdal's krb5_verify_user() does.
Todd C. Miller [Wed, 9 Jan 2008 19:58:39 +0000 (19:58 +0000)]
The U suffix on constants is an ANSI feature
Todd C. Miller [Wed, 9 Jan 2008 17:08:30 +0000 (17:08 +0000)]
Add check for ber_set_option() in -llber
Todd C. Miller [Mon, 7 Jan 2008 00:02:58 +0000 (00:02 +0000)]
default if no nsswitch.conf is files only
Todd C. Miller [Sun, 6 Jan 2008 22:28:03 +0000 (22:28 +0000)]
don't tell people to mail aaron about LDAP stuff
Todd C. Miller [Sun, 6 Jan 2008 17:32:59 +0000 (17:32 +0000)]
timelimit and bind_timelimit
Todd C. Miller [Sun, 6 Jan 2008 13:54:03 +0000 (13:54 +0000)]
sync
Todd C. Miller [Sun, 6 Jan 2008 12:56:46 +0000 (12:56 +0000)]
Move ldap.secret reading into a separate function.
Todd C. Miller [Sun, 6 Jan 2008 00:09:18 +0000 (00:09 +0000)]
user_runas -> runas_pw
Todd C. Miller [Sat, 5 Jan 2008 23:59:50 +0000 (23:59 +0000)]
sync
Todd C. Miller [Sat, 5 Jan 2008 23:59:28 +0000 (23:59 +0000)]
Add and document the %p escape in the password prompt.
Based on a patch from Patrick Schoenfeld.
Todd C. Miller [Sat, 5 Jan 2008 23:25:58 +0000 (23:25 +0000)]
Check strlcpy() return values.
Todd C. Miller [Sat, 5 Jan 2008 23:12:19 +0000 (23:12 +0000)]
refactor ldap binding code into sudo_ldap_bind_s()
Todd C. Miller [Sat, 5 Jan 2008 21:35:25 +0000 (21:35 +0000)]
Make it clear that host and uri can take multiple parameters.
URI is now supported for more than just openldap
nsswitch.conf does't accept "compat"
Todd C. Miller [Sat, 5 Jan 2008 21:27:02 +0000 (21:27 +0000)]
comment cleanup and update (c) year
Todd C. Miller [Sat, 5 Jan 2008 21:25:28 +0000 (21:25 +0000)]
Move display_privs() and display_cmnd() from parse.c to sudo_nss.c.
This should make it possible to build an LDAP-only sudo binary.
Todd C. Miller [Sat, 5 Jan 2008 18:27:18 +0000 (18:27 +0000)]
Improve chaining of multiple sudoers sources by passing in the previous return value to the next in the chain
Todd C. Miller [Sat, 5 Jan 2008 18:26:42 +0000 (18:26 +0000)]
Free up parser data structures in sudo_file_close().
Todd C. Miller [Sat, 5 Jan 2008 13:13:06 +0000 (13:13 +0000)]
Free up parser data structures in sudo_file_close().
Todd C. Miller [Sat, 5 Jan 2008 12:59:05 +0000 (12:59 +0000)]
Parse uri ourself if no ldap_initialize() is present
Use ldap_create() instead of deprecated ldap_init()
Use ldap_sasl_bind_s() instead of deprecated ldap_simple_bind_s()
Todd C. Miller [Sat, 5 Jan 2008 12:56:39 +0000 (12:56 +0000)]
Add check for ldap_sasl_bind_s()
Remove -DLDAP_DEPRECATED from CFLAGS
Todd C. Miller [Fri, 4 Jan 2008 14:56:10 +0000 (14:56 +0000)]
add check for ldap_create
Todd C. Miller [Thu, 3 Jan 2008 21:11:33 +0000 (21:11 +0000)]
Add sudo_ldap_get_first_rdn() to return the first rdn of an entry's dn
using the mechanism appropriate for the LDAP SDK in use.
Use ldap_unbind_ext_s() instead of deprecated ldap_unbind_s().
Emulate ldap_unbind_ext_s() and ldap_search_ext_s() for SDK's without them.
Todd C. Miller [Thu, 3 Jan 2008 21:02:51 +0000 (21:02 +0000)]
include unistd.h
Todd C. Miller [Thu, 3 Jan 2008 16:05:04 +0000 (16:05 +0000)]
fix typo in mtim_getnsec
Todd C. Miller [Wed, 2 Jan 2008 20:29:48 +0000 (20:29 +0000)]
add check for st__tim in struct stat as used by SCO
Todd C. Miller [Wed, 2 Jan 2008 16:05:50 +0000 (16:05 +0000)]
use ldap_search_ext_s instead of deprecated ldap_search_s
Todd C. Miller [Wed, 2 Jan 2008 15:09:20 +0000 (15:09 +0000)]
add sudo_nss.h to HDRS
Todd C. Miller [Wed, 2 Jan 2008 00:04:50 +0000 (00:04 +0000)]
Replace deprecated ldap_explode_dn() with calls to ldap_str2dn()
and ldap_rdn2str().
Todd C. Miller [Tue, 1 Jan 2008 23:37:51 +0000 (23:37 +0000)]
Use ldap_get_values_len()/ldap_value_free_len() instead of the
deprecated ldap_get_values()/ldap_value_free().
Todd C. Miller [Tue, 1 Jan 2008 22:08:53 +0000 (22:08 +0000)]
sync
Todd C. Miller [Tue, 1 Jan 2008 22:07:16 +0000 (22:07 +0000)]
sync
Todd C. Miller [Tue, 1 Jan 2008 22:06:33 +0000 (22:06 +0000)]
Remove some already fixed XXXs
Todd C. Miller [Tue, 1 Jan 2008 22:03:54 +0000 (22:03 +0000)]
Same return value as non-existent sudoers if LDAP was unable to connect.
Todd C. Miller [Tue, 1 Jan 2008 21:52:45 +0000 (21:52 +0000)]
mention /etc/environment
Todd C. Miller [Tue, 1 Jan 2008 21:43:26 +0000 (21:43 +0000)]
Update to reflect recent developments.
Todd C. Miller [Tue, 1 Jan 2008 21:42:28 +0000 (21:42 +0000)]
Print nsswitch.conf, ldap.conf and ldap.secret paths in -V output.
Todd C. Miller [Tue, 1 Jan 2008 21:25:23 +0000 (21:25 +0000)]
When building up a query don't list groups in the aux group vector
that are the same as the passwd file group. On most systems the
first gid in the group vector is the same as the passwd entry gid.
Todd C. Miller [Tue, 1 Jan 2008 19:01:42 +0000 (19:01 +0000)]
Define LDAPNOINIT before calling ldap_init(), etc. to disable user
ldaprc and system defaults that could affect how LDAP works.
Todd C. Miller [Tue, 1 Jan 2008 18:22:03 +0000 (18:22 +0000)]
Rename read_nss -> sudo_read_nss
Add --with-nsswitch to allow users to specify nsswitch.conf path or disable it.
If --with-nsswitch=no but --with-ldap, order is LDAP, then sudoers.
Fix --with-ldap-conf-file and --with-ldap-secret-file
Todd C. Miller [Tue, 1 Jan 2008 18:12:00 +0000 (18:12 +0000)]
Honor def_ignore_local_sudoers
Todd C. Miller [Mon, 31 Dec 2007 21:44:46 +0000 (21:44 +0000)]
no longer need to check def_ignore_local_sudoers here
Todd C. Miller [Mon, 31 Dec 2007 21:36:53 +0000 (21:36 +0000)]
Refactor group vector resetting into a function and also call it
from display_cmnd.
Stop after the first sucessful match in display_cmnd.
Print a newline between each display_privs method.
Todd C. Miller [Mon, 31 Dec 2007 21:23:46 +0000 (21:23 +0000)]
fix double free introduced in rev 1.218
Todd C. Miller [Mon, 31 Dec 2007 21:10:49 +0000 (21:10 +0000)]
belt and suspenders; zero out result after freeing it
Todd C. Miller [Mon, 31 Dec 2007 20:04:46 +0000 (20:04 +0000)]
Refactor line reading into a separate function, sudo_parseln(),
which removes comments, leading/trailing whitespace and newlines.
May want to rethink the use of sudo_parseln() for /etc/ldap.secret
Todd C. Miller [Mon, 31 Dec 2007 19:26:52 +0000 (19:26 +0000)]
Make the inability to read the sudoers file a non-fatal error if
there are other sudoers sources available.
sudoers_file_lookup now returns "not OK" if sudoers was not present
Todd C. Miller [Mon, 31 Dec 2007 19:24:10 +0000 (19:24 +0000)]
make it clear that the global options are from LDAP
Todd C. Miller [Mon, 31 Dec 2007 19:13:06 +0000 (19:13 +0000)]
allocate proper amount of space for error string
Todd C. Miller [Mon, 31 Dec 2007 15:24:57 +0000 (15:24 +0000)]
actual sudo nss code
Todd C. Miller [Mon, 31 Dec 2007 15:08:30 +0000 (15:08 +0000)]
nss-ify display_privs and display_cmnd.
Todd C. Miller [Mon, 31 Dec 2007 12:54:47 +0000 (12:54 +0000)]
move update_defaults() to parse.c
Todd C. Miller [Mon, 31 Dec 2007 12:39:52 +0000 (12:39 +0000)]
Use nsswitch to hide some sudoers vs. ldap implementation details
and reduce the number of #ifdef LDAP
TODO: fix display routines and error handling
Todd C. Miller [Fri, 28 Dec 2007 16:20:45 +0000 (16:20 +0000)]
First cut at nsswitch.conf support.
Further reorganizaton and related changes are forthcoming.
Todd C. Miller [Fri, 21 Dec 2007 21:53:32 +0000 (21:53 +0000)]
Add support for reading and /etc/environment file. Still needs to
be documented and should probably only applies to OSes that have
it (AIX and Linux, maybe others).
Todd C. Miller [Fri, 21 Dec 2007 21:20:30 +0000 (21:20 +0000)]
include limits.h
Todd C. Miller [Thu, 20 Dec 2007 15:02:51 +0000 (15:02 +0000)]
reword LDAP SASL
Todd C. Miller [Wed, 19 Dec 2007 21:40:47 +0000 (21:40 +0000)]
sync
Todd C. Miller [Wed, 19 Dec 2007 21:39:00 +0000 (21:39 +0000)]
Add an example sudoRole, clarify netscape vs. openldap a bit more
Todd C. Miller [Wed, 19 Dec 2007 19:42:16 +0000 (19:42 +0000)]
Be clear on what is OpenLDAP vs. Netscape-derived
Todd C. Miller [Wed, 19 Dec 2007 19:28:57 +0000 (19:28 +0000)]
Use ldapssl_init() for ldaps support instead of trying
to do it manually with ldap_init() + ldapssl_install_routines().
Use tls_cert and tls_key for cert7.db and key3.db respectively.
Don't print debugging info for options that are not set.
Add warning if start_tls specified when not supported.
Todd C. Miller [Wed, 19 Dec 2007 19:25:10 +0000 (19:25 +0000)]
fix compilation on solaris
Todd C. Miller [Wed, 19 Dec 2007 19:23:07 +0000 (19:23 +0000)]
add missing .h and .c files for missing lib objs
Todd C. Miller [Tue, 18 Dec 2007 14:54:45 +0000 (14:54 +0000)]
fix LDAP_OPT_NETWORK_TIMEOUT setting
Todd C. Miller [Tue, 18 Dec 2007 01:10:10 +0000 (01:10 +0000)]
fix compilation on Solaris
Todd C. Miller [Mon, 17 Dec 2007 15:14:46 +0000 (15:14 +0000)]
fix typo
Todd C. Miller [Mon, 17 Dec 2007 13:08:29 +0000 (13:08 +0000)]
try to clear up which variables are for OpenLDAP and which are for netscape-derived SDKs
Todd C. Miller [Mon, 17 Dec 2007 12:31:40 +0000 (12:31 +0000)]
Add support for "ssl on" in both netscape and openldap flavors.
Only the OpenLDAP flavor has been tested.
Todd C. Miller [Mon, 17 Dec 2007 12:28:51 +0000 (12:28 +0000)]
Call cleanup() before exit in log_error() instead of calling
sudo_ldap_close() directly. ldap_conn can now be static to sudo.c
Todd C. Miller [Mon, 17 Dec 2007 01:02:44 +0000 (01:02 +0000)]
ld -> ldap_conn
Todd C. Miller [Sun, 16 Dec 2007 19:42:44 +0000 (19:42 +0000)]
Better ldap cleanup.
Todd C. Miller [Sun, 16 Dec 2007 19:08:05 +0000 (19:08 +0000)]
Distinguish between LDAP conf settings that are connection-specific
(which take an ld pointer) and those that are default settings (which do not).
Todd C. Miller [Fri, 14 Dec 2007 21:46:31 +0000 (21:46 +0000)]
Improved warnings on error.
Todd C. Miller [Fri, 14 Dec 2007 20:59:17 +0000 (20:59 +0000)]
Make ldap config table driven and set the config *after* we open the
connection.
Todd C. Miller [Thu, 13 Dec 2007 21:41:58 +0000 (21:41 +0000)]
fix LDAP_OPT_X_CONNECT_TIMEOUT compat define
Todd C. Miller [Thu, 13 Dec 2007 14:13:44 +0000 (14:13 +0000)]
some operating systems need to link with -lkrb5support when using krb5