]> granicus.if.org Git - sudo/commitdiff
Add entry for SSL LDAP errors on Mozilla SDKs when the cert dir is
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 22 May 2012 20:27:34 +0000 (16:27 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 22 May 2012 20:27:34 +0000 (16:27 -0400)
not specified.

--HG--
branch : 1.7

TROUBLESHOOTING

index 05accb6a2517d7a030116e0c1225f0dd78eff3cd..3e339b2d410e1f52d635badc6101e2b1a403b056 100644 (file)
@@ -67,7 +67,7 @@ A) Make sure you have an entry in your syslog.conf file to save
    its conf file.  Also, remember that syslogd does *not* create
    log files, you need to create the file before syslogd will log
    to it (ie: touch /var/log/sudo).
-   Note:  the facility (e.g. "auth.debug") must be separated from the 
+   Note:  the facility (e.g. "auth.debug") must be separated from the
          destination (e.g. "/var/log/auth" or "@loghost") by
          tabs, *not* spaces.  This is a common error.
 
@@ -223,6 +223,26 @@ A) ssh does not allocate a tty by default when running a remote command.
    Alternately, if you do not mind your password being echoed to the
    screen, you can use the "visiblepw" sudoers option to allow this.
 
+Q) When I try to use SSL-enabled LDAP with sudo I get an error:
+    unable to initialize SSL cert and key db: security library: bad database.
+    you must set TLS_CERT in /etc/ldap.conf to use SSL
+A) On systems that use a Mozilla-derived LDAP SDK there must be a
+   certificate database in place to use SSL-encrypted LDAP connections.
+   This file is usually /var/ldap/cert8.db or /etc/ldap/cert8.db.
+   The actual number after "cert" will vary, depending on the version
+   of the LDAP SDK that is being used.  If you do not have a certificate
+   database you can either copy one from a mozilla-derived browser, such
+   as firefox, or create one using the "certutil" command.  You can run
+   "certutil" as follows and press the <return> (or <enter>) key at the
+   password prompt:
+    # certutil -N -d /var/ldap
+    Enter a password which will be used to encrypt your keys.
+    The password should be at least 8 characters long,
+    and should contain at least one non-alphabetic character.
+
+    Enter new password: <return>
+    Re-enter password: <return>
+
 Q) When I run sudo on AIX I get the following error:
     sudo: unable to change to sudoers gid: Operation not permitted.
 A) AIX's Enhanced RBAC is preventing sudo from running.  To fix