]> granicus.if.org Git - sudo/commitdiff
Update to reflect recent developments.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 1 Jan 2008 21:43:26 +0000 (21:43 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 1 Jan 2008 21:43:26 +0000 (21:43 +0000)
README.LDAP
UPGRADE
WHATSNEW

index 1f74f8de6cd2e46b934432b393420cc65489179d..39d47f66f2eecf354850e86945544eb6335cf329 100644 (file)
@@ -79,12 +79,14 @@ Design Features
     If you want to specify lots of commands, use directories or wildcards, or
     just paste them all into LDAP.  That's what it's for.
 
-  * The /etc/sudoers file can be disabled.  Paranoid security administrators
-    can now disallow parsing of any local /etc/sudoers file by an LDAP
-    sudoOption 'ignore_local_sudoers'.  This way all sudoers can be controlled
-    and audited in one place because local entries are not allowed.
-    In fact, if this option is included in the cn=defaults object of LDAP,
-    sudo won't even look for a /etc/sudoers file.
+  * nsswitch.conf support.  Sudo now reads /etc/nsswitch.conf and looks
+    for a line begining with "sudoers:" and uses this to determine the
+    search order for sudoers.  To consult LDAP first, falling back on
+    a local sudoers file, use:
+       sudoers: ldap files
+
+    The local sudoers file can be ignored completely by using:
+       sudoers: ldap
 
   * The sudo binary compiled with LDAP support should be totally backward
     compatible and be syntactically and source code equivalent to its non
diff --git a/UPGRADE b/UPGRADE
index 3db01070bb4c73f5c5f7d5e2b11e993b1e9831ff..9db649bd678fc3c61caf8f40497fbed5f2de3d63 100644 (file)
--- a/UPGRADE
+++ b/UPGRADE
@@ -5,7 +5,25 @@ o Upgrading from a version prior to 1.7.0:
 
     Starting with sudo 1.7.0 comments in the sudoers file must not
     have a digit or minus sign immediately after the comment character
-    ('#').  Otherwise, the comment may be interpreted as a user ID.
+    ('#').  Otherwise, the comment may be interpreted as a user or
+    group ID.
+
+    When sudo is build with LDAP support the /etc/nsswitch.conf file is
+    now used to determine the sudoers seach order.  sudo will default to
+    only using /etc/sudoers unless /etc/nsswitch.conf says otherwise.
+    This can be changed with an nsswitch.conf line, e.g.:
+        sudoers:        ldap files
+    Would case LDAP to be searched first, then the sudoers file.
+    To restore the pre-1.7 behavior, run configure with the
+    --with-nsswitch=no flag.
+
+    Sudo now ignores user .ldaprc files as well as system LDAP defaults.
+    All LDAP configuration is now in /etc/ldap.conf (or whichever file
+    was specified by configure's --with-ldap-conf-file option).
+    If you are using TLS, you may now need to specify:
+       tls_checkpeer no
+    in sudo's ldap.conf unless ldap.conf references a valid certificate
+    authority file(s).
 
 o Upgrading from a version prior to 1.6.9:
 
index 0b226d97dfb3daf63ac41e9fea5cc975c463a8e7..d6b28b964108e8f1559b061fc0efbfac036fc7bc 100644 (file)
--- a/WHATSNEW
+++ b/WHATSNEW
@@ -37,3 +37,15 @@ What's new in Sudo 1.7?
  * Improved LDAP support.  SASL authentication may now be used in
    conjunction when connecting to an LDAP server.  The krb5_ccname
    parameter in ldap.conf may be used to enable Kerberos.
+
+ * Support for /etc/nsswitch.conf.  LDAP users may now use nsswitch.conf
+   to specify the sudoers order.  E.g.:
+       sudoers: ldap files
+   to check LDAP, then /etc/sudoers.  The default is "files", even
+   when LDAP support is compiled in.  This differs from sudo 1.6
+   where LDAP was always consulted first.
+
+ * Support for /etc/environment.  If sudo is run with the -i flag,
+   the contents of /etc/environment are used to populate the new
+   environment that is passed to the command being run.
+