Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 56928 invoked from network); 26 Jan 2006 17:42:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Jan 2006 17:42:22 -0000 Received: (qmail 76067 invoked by uid 500); 26 Jan 2006 17:42:06 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 76055 invoked by uid 500); 26 Jan 2006 17:42:06 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 76044 invoked by uid 99); 26 Jan 2006 17:42:06 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jan 2006 09:42:06 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of prepaid@gmail.com designates 64.233.162.200 as permitted sender) Received: from [64.233.162.200] (HELO zproxy.gmail.com) (64.233.162.200) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jan 2006 09:42:04 -0800 Received: by zproxy.gmail.com with SMTP id x3so462782nzd for ; Thu, 26 Jan 2006 09:41:44 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=J8Ht+pV1LFVixLzMTonW1JItl3pvDbOYkOelr/egs6ol1lU9JPucGuSR72tHlYOqbjkFnc4XutvpuaexZYFeRoGz7O3rNRCj9/gcG7nVuq4OhtF/Yr1+sIQvg4EVJh2cNKsRHt2Wu1YhQkWun/6LQmCMiSr2i/7l9RChLMjsP6M= Received: by 10.36.251.8 with SMTP id y8mr1694895nzh; Thu, 26 Jan 2006 09:41:44 -0800 (PST) Received: by 10.36.251.25 with HTTP; Thu, 26 Jan 2006 09:41:44 -0800 (PST) Message-ID: <6beddb200601260941l45de6fb8ke9f566bdce3a1991@mail.gmail.com> Date: Thu, 26 Jan 2006 09:41:44 -0800 From: Prepaid To: users@httpd.apache.org In-Reply-To: <43D8DEC4.5030505@rider.edu> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_206_26350684.1138297304121" References: <6beddb200601251141h4a59dbcat925ac19d0c346fc1@mail.gmail.com> <43D7D71F.20800@rider.edu> <6beddb200601251442u2d5f69bdm205d8ed40ed32cab@mail.gmail.com> <43D8DEC4.5030505@rider.edu> X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Compiling Apache 2.2.0 on Solaris 10 with mod_authnz_ldap support X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_206_26350684.1138297304121 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks. That definatley did help a bit.. I think now my error is just in creating the correct LDAPURL since I'm getting error: [Thu Jan 26 09:38:24 2006] [warn] [client X] [9503] auth_ldap authenticate: user username authentication failed; URI /test [LDAP: ldap_simple_bind_s() failed][Invalid credentials] Does my analysis of the situation make sense? On 1/26/06, Ricardo Stella wrote: > > > There's a bug in the help files - Following the sample, you are still > trying to authenticate to a local file... > > http://issues.apache.org/bugzilla/show_bug.cgi?id=3D38036 > > AuthBasicProvider ldap > AuthType Basic > AuthName "Password protected area" > Order deny,allow > Deny from all > Allow from yourdomain.example.com > AuthLDAPURL ldap://127.0.0.1/dc=3Dexample,dc=3Dcom?uid?one > AuthzLDAPAuthoritative off > require valid-user > > > > > Prepaid wrote: > > Thanks for the help, that did help get apache compiled with authnz_ldap > > > > However when I try to setup a directory to be LDAP protected I get: > > > > [Wed Jan 25 14:42:07 2006] [error] Internal error: pcfg_openfile() > > called with NULL filename > > [Wed Jan 25 14:42:07 2006] [error] [client em] (9)Bad file number: > > Could not open password file: (null) > > > > On 1/25/06, *Ricardo Stella* < stella@rider.edu > > > wrote: > > > > > > Not sure where you put the ldap libraries, but just in case, you > > might > > want to 'help' apache find them. I had problems using the mozilla > > libs > > with timeout, so switching back to openldap libs, and configure > > kept on > > finding and trying to link to them... Also, in case it finds first > > Sun's stock libraries... > > > > .. with-ldap-lib=3D/usr/local/openldap/lib > > --with-ldap-include=3D/usr/local/openldap/include > > > > My .02... > > > > Prepaid wrote: > > > Hello > > > > > > So I am attempting to build apache with mod_authnz_ldap on > > Solaris 10. > > > I use the following configure command: > > > $ ./configure --with-ldap --enable-authnz-ldap > > --with-ldap-sdk=3Dopenldap > > > > > > > > > The configure goes fine, and the make goes fine for a while too, > > but > > > dies with the following error: > > > make[1]: Entering directory `/home/prepaid/httpd-2.2.0' > > > gcc -g -O2 -DSOLARIS2=3D10 -D_POSIX_PTHREAD_SEMANTICS > -D_REENTRANT > > > -D_LARGEFILE64_SOURCE -I/home/prepaid/httpd- > > 2.2.0/srclib/pcre -I. > > > -I/home/prepaid/httpd- 2.2.0/os/unix > > > -I/home/prepaid/httpd-2.2.0/server/mpm/prefork > > > -I/home/prepaid/httpd-2.2.0/modules/http > > > -I/home/prepaid/httpd-2.2.0/modules/filters > > > -I/home/prepaid/httpd-2.2.0/modules/proxy > > > -I/home/prepaid/httpd-2.2.0/include -I/home/prepaid/httpd- > > > 2.2.0/modules/generators -I/home/prepaid/httpd-2.2.0 > /modules/mappers > > > -I/home/prepaid/httpd- 2.2.0/modules/database > > > -I/home/prepaid/httpd-2.2.0/srclib/apr/include > > > -I/home/prepaid/httpd-2.2.0/srclib/apr-util/include > > > -I/home/prepaid/httpd- 2.2.0/srclib/apr-util/xml/expat/lib > > > -I/home/prepaid/httpd- 2.2.0/modules/proxy/../generators > > > -I/home/prepaid/httpd-2.2.0/modules/ssl > > > -I/home/prepaid/httpd-2.2.0/modules/dav/main -c > > > /home/prepaid/httpd-2.2.0/server/buildmark.c > > > /home/prepaid/httpd-2.2.0 /srclib/apr/libtool --silent > > --mode=3Dlink gcc > > > -g -O2 -L/home/prepaid/httpd-2.2.0 > /srclib/apr-util/xml/expat/lib > > > -o httpd modules.lo buildmark.o -export-dynamic server/libmain.l= a > > > modules/aaa/libmod_authn_file.la > > modules/aaa/libmod_authn_default.la > > > modules/aaa/libmod_authz_host.la > > modules/aaa/libmod_authz_groupfile.la > > > modules/aaa/libmod_authz_user.la modules/aaa/libmod_authnz_ldap.l= a > > > modules/aaa/libmod_authz_default.la > > modules/aaa/libmod_auth_basic.la > > > modules/filters/libmod_include.la modules/filters/libmod_filter.l= a > > > modules/loggers/libmod_log_config.la > modules/metadata/libmod_env.la > > > modules/metadata/libmod_setenvif.la modules/http/libmod_http.la > > > modules/http/libmod_mime.la modules/generators/libmod_status.la > > > modules/generators/libmod_autoindex.la > > > modules/generators/libmod_asis.la modules/generators/libmod_cgi.l= a > > > modules/mappers/libmod_negotiation.la > modules/mappers/libmod_dir.la > > > modules/mappers/libmod_actions.la > modules/mappers/libmod_userdir.la > > > modules/mappers/libmod_alias.la modules/mappers/libmod_so.la > > > server/mpm/prefork/libprefork.la os/unix/libos.la -lm > > > /home/prepaid/httpd- 2.2.0/srclib/pcre/libpcre.la > > > /home/prepaid/httpd-2.2.0/srclib/apr-util/libaprutil-1.la > > > > > -lldap -ldl -lpthread > > > /home/prepaid/httpd- 2.2.0 > /srclib/apr-util/xml/expat/lib/libexpat.la > > > /home/prepaid/httpd- 2.2.0/srclib/apr/libapr-1.la > > -luuid > > > -lsendfile -lrt -lsocket -lnsl -lpthread > > > Undefined first referenced > > > symbol in file > > > apr_ldap_info server/.libs/libmain.a( > > exports.o) > > > apr_ldap_init server/.libs/libmain.a( > > exports.o) > > > > > apr_ldap_url_parse_ext server/.libs/libmain.a(exports.= o > ) > > > apr_ldap_ssl_deinit > > server/.libs/libmain.a(exports.o ) > > > apr_ldap_is_ldapi_url server/.libs/libmain.a( > > exports.o) > > > apr_ldap_is_ldaps_url > > server/.libs/libmain.a(exports.o) > > > apr_ldap_set_option > > server/.libs/libmain.a(exports.o) > > > apr_ldap_get_option server/.libs/libmain.a( > > exports.o) > > > > > apr_ldap_is_ldap_url server/.libs/libmain.a(exports.= o > ) > > > apr_ldap_ssl_init > > server/.libs/libmain.a(exports.o) > > > apr_ldap_url_parse server/.libs/libmain.a( > > exports.o) > > > ld: fatal: Symbol referencing errors. No output written to > > .libs/httpd > > > collect2: ld returned 1 exit status > > > make[1]: *** [httpd] Error 1 > > > make[1]: Leaving directory `/home/prepaid/httpd- 2.2.0' > > > make: *** [all-recursive] Error 1 > > > > > > > > > I'm not sure how to proceed or what exactly is missing. > > > > > > > > > Thanks! > > > > -- > > > > =B0(((=3D((=3D=3D=3D=B0=B0=B0(((=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D > > > > > > > > > --------------------------------------------------------------------- > > The official User-To-User support forum of the Apache HTTP Server > > Project. > > See 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 > > > > > > > > > > -- > > =B0(((=3D((=3D=3D=3D=B0=B0=B0(((=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D > > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project= . > See 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 > > > ------=_Part_206_26350684.1138297304121 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks. That definatley did help a bit..

I think now my error is jus= t in creating the correct LDAPURL since I'm getting error:
[Thu Jan 26 0= 9:38:24 2006] [warn] [client X] [9503] auth_ldap authenticate: user usernam= e authentication failed; URI /test [LDAP: ldap_simple_bind_s() failed][Inva= lid credentials]

Does my analysis of the situation make sense?

On 1/26/06, Ricardo Stella= <stella@rider.edu> wrote= :

There's a bug= in the help files - Following the sample, you are still
trying to authe= nticate to a local file...

http://issues.apache.org/bugzilla/show_bug.cgi?id=3D38036

Aut= hBasicProvider ldap
AuthType Basic
AuthName "Password protected = area"
Order deny,allow
Deny from all
Allow from yourdomain.example.com
AuthLDAPURL ldap://127.0.0= .1/dc=3Dexample,dc=3Dcom?uid?one
AuthzLDAPAuthoritative off
require v= alid-user




Prepaid wrote:
> Thanks for the help, that did he= lp get apache compiled with authnz_ldap
>
> However when I try = to setup a directory to be LDAP protected I get:
>
> [Wed Jan 2= 5 14:42:07 2006] [error] Internal error: pcfg_openfile()
> called with NULL filename
> [Wed Jan 25 14:42:07 2006] [erro= r] [client em] (9)Bad file number:
> Could not open password file: (n= ull)
>
> On 1/25/06, *Ricardo Stella* < stella@rider.edu
> <mailto:stella@rider.edu>> wrote:
>
>
>  &nb= sp;  Not sure where you put the ldap libraries, but just in case, you<= br>>     might
>     want to 'help' apache find them.  I = had problems using the mozilla
>     libs
>=      with timeout, so switching back to openldap libs, = and configure
>     kept on
>  &n= bsp;  finding and trying to link to them...  Also, in case i= t finds first
>     Sun's stock libraries...
>
>&n= bsp;    .. with-ldap-lib=3D/usr/local/openldap/lib
>&n= bsp;    --with-ldap-include=3D/usr/local/openldap/include>
>     My .02...
>
>  =    Prepaid wrote:
>     > Hello
>    = >
>     > So I am attempting to build apac= he with mod_authnz_ldap on
>     Solaris 10.
&= gt;     > I use the following configure command:
= >     >   $ ./configure  --wi= th-ldap --enable-authnz-ldap
>     --with-ldap-sdk=3Dopenldap
> &n= bsp;   >
>     >
> &nb= sp;   > The configure goes fine, and the make goes fine for a = while too,
>     but
>   &nb= sp; > dies with the following error:
>     > make[1]: Entering directory `/home/prepai= d/httpd-2.2.0'
>     > gcc -g -O2  &= nbsp; -DSOLARIS2=3D10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
>&= nbsp;    > -D_LARGEFILE64_SOURCE    -= I/home/prepaid/httpd-
>     2.2.0/srclib/pcre -I.
>   = ;  > -I/home/prepaid/httpd- 2.2.0/os/unix
>   =   > -I/home/prepaid/httpd-2.2.0/server/mpm/prefork
> &nb= sp;   > -I/home/prepaid/httpd-2.2.0/modules/http
> =     > -I/home/prepaid/httpd- 2.2.0/modules/filters
>     > -I/home/prepaid/= httpd-2.2.0/modules/proxy
>     > -I/home/prep= aid/httpd-2.2.0/include -I/home/prepaid/httpd-
>   &nb= sp; > 2.2.0/modules/generators -I/home/prepaid/httpd- 2.2.0/modules/mappers
>     > -I/home/prepaid/= httpd- 2.2.0/modules/database
>     > -I/home/= prepaid/httpd-2.2.0/srclib/apr/include
>     >= -I/home/prepaid/httpd-2.2.0/srclib/apr-util/include
>     > -I/home/prepaid/httpd- 2.2.0/srclib/apr-u= til/xml/expat/lib
>     > -I/home/prepaid/http= d- 2.2.0/modules/proxy/../generators
>     > -= I/home/prepaid/httpd-2.2.0/modules/ssl
>     >= -I/home/prepaid/httpd- 2.2.0/modules/dav/main  -c
>     > /= home/prepaid/httpd-2.2.0/server/buildmark.c
>    = > /home/prepaid/httpd-2.2.0 /srclib/apr/libtool --silent
> &= nbsp;   --mode=3Dlink gcc
>     > -g= -O2     -L/home/prepaid/httpd- 2.2.0/srclib/apr-util/xml/expat/lib
>     > -o= httpd  modules.lo buildmark.o -export-dynamic server/libmain.la<= br>>     > modules/aaa/libmod_authn_file.la
&g= t;     modules/aaa/libmod_authn_default.la
>     > modules/aaa/libmod_authz_host.la
>&= nbsp;    modules/aaa/libmod_authz_groupfile.la
> =     > modules/aaa/libmod_authz_user.la modules/aaa/libmod= _authnz_ldap.la
>     > modules/aaa/libmod_aut= hz_default.la
>     modules/aaa/libmod_auth_basic.la
>&n= bsp;    > modules/filters/libmod_include.la modules/filte= rs/libmod_filter.la
>     > modules/loggers/li= bmod_log_config.la modules/metadata/libmod_env.la
>   =   > modules/metadata/libmod_setenvif.la modules/http/libmod_http.la
>     > modules/http/libmod_mime.la modules/g= enerators/libmod_status.la
>     > modules/gen= erators/libmod_autoindex.la
>     > modules/ge= nerators/libmod_asis.la modules/generators/libmod_cgi.la
>     > modules/mappers/libmod_negotiation.la= modules/mappers/libmod_dir.la
>     > modules= /mappers/libmod_actions.la modules/mappers/libmod_userdir.la
> &= nbsp;   > modules/mappers/libmod_alias.la modules/mappers/libm= od_so.la
>     > server/mpm/prefork/libprefork.la os/u= nix/libos.la -lm
>     > /home/prepaid/httpd- = 2.2.0/srclib/pcre/libpcre.la
>     > /home/pre= paid/httpd-2.2.0/srclib/apr-util/libaprutil- 1.la
>     <http:/= /1.la>
>     > <http://1.la> -lldap -ldl -lpthread
>   &nbs= p; > /home/prepaid/httpd- 2.2.0/srclib/apr-util/xml/expat/lib/libexpat.l= a
>     > /home/prepaid/httpd- 2.2.0/srclib/apr= /libapr-1.la <http:/= /1.la>
>     <h= ttp://1.la> -luuid
>     > -lsendfile -= lrt -lsocket -lnsl -lpthread
>     > Undefined    &nbs= p;            &= nbsp;     first referenced
>   &nb= sp; >  symbol        &= nbsp;           &nbs= p;        in file
>  &nb= sp;  > apr_ldap_info        = ;            &n= bsp;  server/.libs/libmain.a(
>     exports.= o )
>     > apr_ldap_init    = ;            &n= bsp;      server/.libs/libmain.a(
> &nb= sp;   exports.o)
>     >
>&nbs= p;    apr_ldap_url_parse_ext     &n= bsp;        server/.libs/libmain.a(= exports.o)
>     > apr_ldap_ssl_deinit
>     server/.libs/libmain.a(exports.o )
>=      > apr_ldap_is_ldapi_url    =            server/.libs/l= ibmain.a(
>     exports.o)
>  &nb= sp;  > apr_ldap_is_ldaps_url
>     server= /.libs/libmain.a( exports.o)
>     > apr_ldap_set_option
>=      server/.libs/libmain.a(exports.o)
> &nb= sp;   > apr_ldap_get_option      = ;           server/.libs/= libmain.a(
>     exports.o)
>  &n= bsp;  >
>     apr_ldap_is_ldap_url &= nbsp;           &nbs= p;  server/.libs/libmain.a( exports.o)
>     > apr_ldap_ssl_init
>&n= bsp;    server/.libs/libmain.a(exports.o)
>  = ;   > apr_ldap_url_parse      &n= bsp;           serve= r/.libs/libmain.a(
>     exports.o)
> =     > ld: fatal: Symbol referencing errors. No output wri= tten to
>     .libs/httpd
>    = ; > collect2: ld returned 1 exit status
>     = > make[1]: *** [httpd] Error 1
>     > make= [1]: Leaving directory `/home/prepaid/httpd- 2.2.0'
>  &nbs= p;  > make: *** [all-recursive] Error 1
>     >
>     ><= br>>     > I'm not sure how to proceed or what ex= actly is missing.
>     >
>  &= nbsp;  >
>     > Thanks!
>
&g= t;     --
>
>     =B0((= (=3D((=3D=3D=3D=B0=B0=B0(((=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D
>
>
>
>     ------------------= ---------------------------------------------------
>  &nbs= p;  The official User-To-User support forum of the Apache HTTP Server<= br>>     Project.
>     Se= e <URL:=20 http://httpd.apache.org/= userslist.html> for more info.
>     To un= subscribe, e-mail: us= ers-unsubscribe@httpd.apache.org
>     <mailto:users-unsubscribe@httpd.apache.org>
&g= t;        "   from t= he digest: users-digest-unsubscribe@httpd.apache.org
>   &nbs= p; <mailto:= users-digest-unsubscribe@httpd.apache.org>
>   =   For additional commands, e-mail:=20 users-help@httpd.apache.org<= /a>
>     <mailto:
users-help@httpd.apache.org>
>
>
&= gt;

--

=B0(((=3D((=3D=3D=3D=B0=B0=B0(((=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D



-----------------------------------------------= ----------------------
The official User-To-User support forum of the Ap= ache HTTP Server Project.
See <URL:http://h= ttpd.apache.org/userslist.html> for more info.
To unsubscribe, e-= mail: users-unsubscri= be@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.a= pache.org
For additional commands, e-mail: users-help@httpd.apache.org



------=_Part_206_26350684.1138297304121--