sudo-ldap not working with ldaps
Bug #115967 reported by
Giovanni Lovato
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sudo (Ubuntu) |
Triaged
|
Medium
|
Unassigned | ||
Bug Description
Binary package hint: sudo-ldap
I'm getting:
# sudo ls
LDAP Config Summary
===================
uri ldaps:/
ldap_version 3
sudoers_base ou=sudoers,
binddn (anonymous)
bindpw (anonymous)
ssl (no)
===================
ldap_initialize
ldap_set_
ldap_simple_
My ldap.conf is:
BASE dc=aldu,dc=net
URI ldaps:/
TLS_CACERT /etc/ssl/cacert.pem
SUDOERS_BASE ou=sudoers,
sudoers_debug 2
Simple ldapsearch goes fine, pam authentication too. Only sudo-ldap does not work.
If I use "ldap" instead of "ldaps", sudo-ldap runs fine too.
Changed in sudo (Ubuntu): | |
status: | Invalid → New |
To post a comment you must log in.
I found the solution, the correct directive to specificy a CA certificate file for sudo-ldap is:
TLS_CACERTFILE /path/to/cacert.pem
So my ldap.conf now figures so:
BASE dc=aldu,dc=net /ldap.aldu. net
URI ldaps:/
TLS_CACERT /etc/ssl/cacert.pem
TLS_CACERTFILE /etc/ssl/cacert.pem
SUDOERS_BASE ou=sudoers, dc=aldu, dc=net
It's absolutely redundant, so I think it would be nice to make sudo-ldap reading CA certificate path from TLS_CACERT directive instead of TLS_CACERTFILE.