[sudo-users] Sudo 1.8.1 compialtion with LDAP

Rakesh Rajasekharan rakesh.rajasekharan at gmail.com
Mon Aug 22 09:26:23 EDT 2011

Hi Todd,

I am now trying to compile SUDO 1.8.1p2 with LDAP support.
I have installed the openldap 2.4.25 depot on my HPUX HPPA machine. I have
the files under "/usr/local/include".

To include LDAP support , I run the configure script as "./configure

 But from the o/p of configure it seems , it is unable to locate the
required ldap files.

*checking for LDAP libraries... not found, using -lldap
checking for library containing ber_set_option... no
checking whether lber.h is needed... yes
checking sasl/sasl.h usability... no
checking sasl/sasl.h presence... no
checking for sasl/sasl.h... no
checking for ldap_ssl.h... no
checking for mps/ldap_ssl.h... no
checking for ldap_initialize... no
checking for ldap_start_tls_s... no
checking for ldapssl_init... no
checking for ldapssl_set_strength... no
checking for ldap_unbind_ext_s... no
checking for ldap_str2dn... no
checking for ldap_create... no
checking for ldap_sasl_bind_s... no
checking for ldap_ssl_client_init... no
checking for ldap_start_tls_s_np... no
checking for ldap_search_ext_s... no
checking for ldap_search_st... no

The configure however compeltes without any error and so does the make and
make install.
So, does this mean , I was able to successfully compile SUDO with LDAP


On Fri, Aug 19, 2011 at 7:35 PM, Todd C. Miller
<Todd.Miller at courtesan.com>wrote:

> On Fri, 19 Aug 2011 18:36:30 +0530, Rakesh Rajasekharan wrote:
> > I am compiling the SUDO 1.8.1 version with LDAP support. Basically
> > I need to compile SUDO on an HPUX HPPA and ia64 machine and create
> > a binary that can be used across various other HPUX machines. My
> > concern here is I want to compile it with LDAP support so, do I
> > really need to have ldap installed on the machine that I am compiling
> > or its fine if I have LDAP installed on the machine where I am going
> > to execute the binaries.
> You need to have the LDAP libraries and header files installed on
> the machine you are compiling sudo on.  You don't need to have LDAP
> configured on that machine, sudo just needs to be able to use the
> LDAP libraries and headers.  Typically this means either the HP
> LDAP installed in /opt/ldapux or OpenLDAP installed elsewhere.
>  - todd

More information about the sudo-users mailing list