You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Aaron Smith <Aa...@kzoo.edu> on 2007/07/11 18:31:45 UTC
[users@httpd] Secure LDAP Auth to Active Directory
So I'm having a devil of a time getting Apache 2.0.55 compiled on an
HP-UX 11.11 system to support secure LDAP authentication to our Active
Directory servers. I configure it like so:
./configure --prefix=/opt/apache2 --enable-auth-dbm=shared
--enable-expires=shared --enable-headers=shared --enable-rewrite=shared
--enable-mime-magic=shared --enable-info=shared --enable-status=shared
--enable-userdir=shared --enable-http --enable-so --enable-ssl=static
--with-ssl=/opt/openssl098 --with-perl=/opt/perl58 --with-ndbm
--enable-ldap=shared --enable-auth_ldap
--with-ldap=/usr/local/OpenLDAP.2.3
The configure runs fine, but when I try to run 'make' I get:
libtool: link: warning: this platform does not like uninstalled shared
libraries
libtool: link: `httpd' will be relinked during installation
/usr/ccs/bin/ld: Unsatisfied symbols:
util_ldap_connection_close (first referenced in
modules/experimental/.libs/mod_auth_ldap.a(mod_auth_ldap.o)) (code)
util_ldap_cache_comparedn (first referenced in
modules/experimental/.libs/mod_auth_ldap.a(mod_auth_ldap.o)) (code)
util_ldap_cache_checkuserid (first referenced in
modules/experimental/.libs/mod_auth_ldap.a(mod_auth_ldap.o)) (code)
util_ldap_connection_find (first referenced in
modules/experimental/.libs/mod_auth_ldap.a(mod_auth_ldap.o)) (code)
util_ldap_cache_compare (first referenced in
modules/experimental/.libs/mod_auth_ldap.a(mod_auth_ldap.o)) (code)
collect2: ld returned 1 exit status
I'm also wondering if I'm even headed towards what I need. At one
point, I got this to compile (this will teach me not to take notes) and
the LDAP authentication worked, but the SSL portion did not. When the
module loaded, it would say that SSL support was unavailable. I seem to
recall reading in the docs that I need to compile with the netscape
version of LDAP in order to support SSL, but other sites seem to
indicate that's not the case.
RE: [users@httpd] Secure LDAP Auth to Active Directory
Posted by Aaron Smith <Aa...@kzoo.edu>.
Hmmm. Ok. So perhaps something along the line isn't being built but
it's not stopping the entire process. I'll try it again and take a
closer look at the output.
--------------------------------------------------------------------
Aaron Smith Aaron.Smith@kzoo.edu
System Administrator (269) 337-7496
Kalamazoo College
-----Original Message-----
From: Eric Covener [mailto:covener@gmail.com]
Sent: Thursday, July 12, 2007 5:22 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Secure LDAP Auth to Active Directory
On 7/12/07, Aaron Smith <Aa...@kzoo.edu> wrote:
> Well, I tried added that but it didn't seem to help. It's acting like
> it can't find the shared libraries for OpenLDAP. I have the directory
> in SHLIB_PATH and I a -L/usr/local/OpenLDAP.2.3/lib in the line before
> the error, so I'm not sure how else to direct it to the appropriate
> libraries.
AFAICT Your error message isn't actually failing to find real LDAP
symbols, it's failing to find the apache-provided LDAP utility
functions provided by mod_ldap (as opposed to mod_auth_ldap)
Perhaps you've somehow managed to build a static mod_auth_ldap and DSO
mod_auth_ldap or something along those lines? (I'm only familiar with
LDAP on 2.2.x)
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Secure LDAP Auth to Active Directory
Posted by Eric Covener <co...@gmail.com>.
On 7/12/07, Aaron Smith <Aa...@kzoo.edu> wrote:
> Well, I tried added that but it didn't seem to help. It's acting like
> it can't find the shared libraries for OpenLDAP. I have the directory
> in SHLIB_PATH and I a -L/usr/local/OpenLDAP.2.3/lib in the line before
> the error, so I'm not sure how else to direct it to the appropriate
> libraries.
AFAICT Your error message isn't actually failing to find real LDAP
symbols, it's failing to find the apache-provided LDAP utility
functions provided by mod_ldap (as opposed to mod_auth_ldap)
Perhaps you've somehow managed to build a static mod_auth_ldap and DSO
mod_auth_ldap or something along those lines? (I'm only familiar with
LDAP on 2.2.x)
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Secure LDAP Auth to Active Directory
Posted by Brian Foddy <br...@nwa.com>.
My full config for hpux b11.11 (httpd 2.2.4) is
./configure --prefix=/tmp/apache --enable-so --enable-modules=all
--disable-auth-digest --with-ldap-lib=/opt/openldap/lib
--with-ldap-include=/opt/openldap/include --with-ldap-sdk=openldap
--with-ldap --enable-authnz-ldap --enable-mods-shared=all --enable-so
linking to openldap 2.3.32. I believe it was all build with gcc 3.4.3.
I just wish I could get mm_mod_auth_ldap to build correctly, as I need the
nested group membership of Active Directory; that I don't believe the
standard Apache LDAP
module supports. I'm "usually" pretty good at building open source on
UNIX/Linux,
but that combo has me totally stumped and can't find anyone more versed
to help.
Good luck,
Brian
Aaron Smith wrote:
>Well, I tried added that but it didn't seem to help. It's acting like
>it can't find the shared libraries for OpenLDAP. I have the directory
>in SHLIB_PATH and I a -L/usr/local/OpenLDAP.2.3/lib in the line before
>the error, so I'm not sure how else to direct it to the appropriate
>libraries.
>
>--------------------------------------------------------------------
>Aaron Smith Aaron.Smith@kzoo.edu
>System Administrator (269) 337-7496
>Kalamazoo College
>
>I have been having my own problems with related modules. It will
>probably help your case
>to use OpenLDAP for its libraries; there's a config option to only build
>
>client libs and binaries.
>Add the --with-ldap-sdk=openldap might be missing.
>
>Brian
>
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server
>Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>
>
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: [users@httpd] Secure LDAP Auth to Active Directory
Posted by Aaron Smith <Aa...@kzoo.edu>.
Well, I tried added that but it didn't seem to help. It's acting like
it can't find the shared libraries for OpenLDAP. I have the directory
in SHLIB_PATH and I a -L/usr/local/OpenLDAP.2.3/lib in the line before
the error, so I'm not sure how else to direct it to the appropriate
libraries.
--------------------------------------------------------------------
Aaron Smith Aaron.Smith@kzoo.edu
System Administrator (269) 337-7496
Kalamazoo College
I have been having my own problems with related modules. It will
probably help your case
to use OpenLDAP for its libraries; there's a config option to only build
client libs and binaries.
Add the --with-ldap-sdk=openldap might be missing.
Brian
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Secure LDAP Auth to Active Directory
Posted by Brian Foddy <br...@nwa.com>.
Aaron Smith wrote:
> So I’m having a devil of a time getting Apache 2.0.55 compiled on an
> HP-UX 11.11 system to support secure LDAP authentication to our Active
> Directory servers. I configure it like so:
>
> ./configure --prefix=/opt/apache2 --enable-auth-dbm=shared
> --enable-expires=shared --enable-headers=shared
> --enable-rewrite=shared --enable-mime-magic=shared
> --enable-info=shared --enable-status=shared --enable-userdir=shared
> --enable-http --enable-so --enable-ssl=static
> --with-ssl=/opt/openssl098 --with-perl=/opt/perl58 --with-ndbm
> --enable-ldap=shared --enable-auth_ldap
> --with-ldap=/usr/local/OpenLDAP.2.3
>
> The configure runs fine, but when I try to run ‘make’ I get:
>
> libtool: link: warning: this platform does not like uninstalled shared
> libraries
>
> libtool: link: `httpd' will be relinked during installation
>
> /usr/ccs/bin/ld: Unsatisfied symbols:
>
> util_ldap_connection_close (first referenced in
> modules/experimental/.libs/mod_auth_ldap.a(mod_auth_ldap.o)) (code)
>
> util_ldap_cache_comparedn (first referenced in
> modules/experimental/.libs/mod_auth_ldap.a(mod_auth_ldap.o)) (code)
>
> util_ldap_cache_checkuserid (first referenced in
> modules/experimental/.libs/mod_auth_ldap.a(mod_auth_ldap.o)) (code)
>
> util_ldap_connection_find (first referenced in
> modules/experimental/.libs/mod_auth_ldap.a(mod_auth_ldap.o)) (code)
>
> util_ldap_cache_compare (first referenced in
> modules/experimental/.libs/mod_auth_ldap.a(mod_auth_ldap.o)) (code)
>
> collect2: ld returned 1 exit status
>
> I’m also wondering if I’m even headed towards what I need. At one
> point, I got this to compile (this will teach me not to take notes)
> and the LDAP authentication worked, but the SSL portion did not. When
> the module loaded, it would say that SSL support was unavailable. I
> seem to recall reading in the docs that I need to compile with the
> netscape version of LDAP in order to support SSL, but other sites seem
> to indicate that’s not the case.
>
>
I have been having my own problems with related modules. It will
probably help your case
to use OpenLDAP for its libraries; there's a config option to only build
client libs and binaries.
Add the --with-ldap-sdk=openldap might be missing.
Brian
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org