You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by alan bryan <al...@gmail.com> on 2006/08/17 08:08:47 UTC

[users@httpd] mod_authn_dbd or mod_auth_pgsql on Apache 2.2?

Has anyone gotten either mod_authn_dbd (using postgresql) or
mod_auth_pgsql to work on Apache 2.2 on FreeBSD (I'm using 6.1)?

mod_auth_dbd yields:
[crit] (70023)This function has not been implemented on this platform:
DBD: failed to initialise

mod_auth_pgsql yields:
No Authn provider configured

I've had no problems with my same config using mod_auth_pgsql under
Apache 2.0 so something about the new Authentication setup in 2.2 is
causing my problem here but I need help pointing out just what.

Thanks,
Alan

---------------------------------------------------------------------
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] mod_authn_dbd or mod_auth_pgsql on Apache 2.2?

Posted by Nick Kew <ni...@webthing.com>.
On Friday 18 August 2006 16:51, alan bryan wrote:

> There, I followed the example almost identically except for server
> login details.   Oh, and the are NO earlier error messages - here's
> the log from start:
>
> [Fri Aug 18 08:34:14 2006] [notice] Apache configured -- resuming
> normal operations
> [Fri Aug 18 08:34:14 2006] [crit] (70023)This function has not been
> implemented on this platform: DBD: driver for [DBDriver unset] not
> available

When you tell it to use postgresql:
DBDriver pgsql

one of two things can happen:
  (1) postgresql is available in your server, and it works (silently).
  (2) postgresql is not available, and it exits with
        "DBD: No driver for pgsql"

One or the other of those MUST happen before you can get the second
message above.

Since neither of those happened, I infer you have no DBDriver directive
in scope where it's giving this error.

The other possibility is that it's working fine, and these messages are
related to a different virtual host on your server.  I'm trying to figure
out if there is in fact a bug that could cause bogus errors from some
kind of virtualhost configurations.

> > Erm, no.  pgsql isn't linked to any of the modules.  Run ldd
> > on libaprutil for that.


-- 
Nick Kew

---------------------------------------------------------------------
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] mod_authn_dbd or mod_auth_pgsql on Apache 2.2?

Posted by alan bryan <al...@gmail.com>.
On 8/18/06, Nick Kew <ni...@webthing.com> wrote:
> On Friday 18 August 2006 01:05, alan bryan wrote:
>
> > I also got [crit] (70023)This function has not been implemented on
> > this platform: DBD: driver for [DBDriver unset] not available.
>
> That means you haven't even got a DBDriver directive.  RTFM!
> Either that or the DBDriver failed, which should get you an
> earlier error message.

Um, I have been reading as much about this as I could find,
specifically all of the docs
at:http://httpd.apache.org/docs/2.2/mod/mod_authn_dbd.html and related
links.
There, I followed the example almost identically except for server
login details.   Oh, and the are NO earlier error messages - here's
the log from start:

[Fri Aug 18 08:34:14 2006] [notice] Apache configured -- resuming
normal operations
[Fri Aug 18 08:34:14 2006] [crit] (70023)This function has not been
implemented on this platform: DBD: driver for [DBDriver unset] not
available
[Fri Aug 18 08:34:14 2006] [crit] (70023)This function has not been
implemented on this platform: DBD: failed to initialise
[Fri Aug 18 08:34:14 2006] [crit] (70023)This function has not been
implemented on this platform: DBD: driver for [DBDriver unset] not
available
[Fri Aug 18 08:34:14 2006] [crit] (70023)This function has not been
implemented on this platform: DBD: failed to initialise
[Fri Aug 18 08:34:14 2006] [crit] (70023)This function has not been
implemented on this platform: DBD: driver for [DBDriver unset] not
available
[Fri Aug 18 08:34:14 2006] [crit] (70023)This function has not been
implemented on this platform: DBD: failed to initialise

>
> > # ldd /usr/local/libexec/apache22/mod_authn_dbd.so
> > /usr/local/libexec/apache22/mod_authn_dbd.so:
>
> Erm, no.  pgsql isn't linked to any of the modules.  Run ldd
> on libaprutil for that.
>
> --
> Nick Kew

Sorry, but at this point I give up.  With responses like "RTFM" and
"of course" I'm just not getting any real help and am doing everything
I can think of as a real end user to solve this problem.  I'm seeing
errors and posting them and my configs and asking for help/ideas.  I'm
not sure what else I'm supposed to do to learn.  No, I'm not the
worlds foremost expert on this stuff and that's why I came here for
help.  I'll leave now so you can be alone as you seem to like it that
way as you explain here:
http://www.webthing.com/~nick/

For those still here, it seems that the pgsql libs aren't being linked
to with the FreeBSD port build for some reason even though the correct
options are being specified in the build commands.  I've asked
questions on the FreeBSD lists and there may be some answers there
eventually for anyone else with similar problems.

---------------------------------------------------------------------
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] mod_authn_dbd or mod_auth_pgsql on Apache 2.2?

Posted by Nick Kew <ni...@webthing.com>.
On Friday 18 August 2006 01:05, alan bryan wrote:

> I also got [crit] (70023)This function has not been implemented on
> this platform: DBD: driver for [DBDriver unset] not available.

That means you haven't even got a DBDriver directive.  RTFM!
Either that or the DBDriver failed, which should get you an
earlier error message.

> # ldd /usr/local/libexec/apache22/mod_authn_dbd.so
> /usr/local/libexec/apache22/mod_authn_dbd.so:

Erm, no.  pgsql isn't linked to any of the modules.  Run ldd
on libaprutil for that.

-- 
Nick Kew

---------------------------------------------------------------------
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] mod_authn_dbd or mod_auth_pgsql on Apache 2.2?

Posted by alan bryan <al...@gmail.com>.
> > mod_auth_dbd yields:
> > [crit] (70023)This function has not been implemented on this platform:
> > DBD: failed to initialise
>
> That message is a little misleading.  "this platform" doesn't mean FreeBSD,
> it means it's not implemented in your APR-UTIL build.  There should be some
> previous error messages, and "ldd" can tell you whether you've built it with
> pgsql enabled at all.

I also got [crit] (70023)This function has not been implemented on
this platform: DBD: driver for [DBDriver unset] not available.

I think you are on to something here that pgsql isn't enabled at all.
I used the FreeBSD port to build and used the WITH_PGSQL option as
well as adding in mod_authn_dbd
and mod_dbd.  While those modules are successfully built, it does
appear that something in the way the port is building is not properly
linking to postgres.  PostgreSQL 8.1 is installed on the same machine
and working fine - listening on local sockets and via TCP/IP.

# ll /usr/local/libexec/apache22/ | grep dbd
-rwxr-xr-x  1 root  wheel     8077 Aug 17 13:58 mod_authn_dbd.so
-rwxr-xr-x  1 root  wheel    14068 Aug 17 13:58 mod_dbd.so

# ldd /usr/local/libexec/apache22/mod_authn_dbd.so
/usr/local/libexec/apache22/mod_authn_dbd.so:

# ldd /usr/local/libexec/apache22/mod_dbd.so
/usr/local/libexec/apache22/mod_dbd.so:

So, I should be seeing some linking to pgsql libs when doing the above
ldd's right?

This post:
http://marc.theaimsgroup.com/?l=apache-httpd-users&m=113855247701995&w=2
that you answered also alludes to a similar problem.

So, I guess I now have to figure out how to get the apr-utils part of
the build to get this option passed to it.  Since I'm not compiling
this by myself but relying on the FreeBSD ports system to handle it,
I'm not sure how to do that other than the options I already used,
namely WITH_PGSQL=yes (and I also used WITH_PGSQL=/usr/local/pgsql).

If you think that indeed that is the problem please let me know and
I'll ask on FreeBSD specific lists as to what can be done about
getting the port to build against the pgsql libs properly.

Thanks,
Alan

---------------------------------------------------------------------
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] mod_authn_dbd or mod_auth_pgsql on Apache 2.2?

Posted by Benjamin Cuthbert <be...@db.com>.
Nick i did have libgcc installed but no luck, this seems strange.

-bash-3.00$ pkginfo |grep gcc
application SMCgcc                       gcc
application SMClibgcc                    libgcc

-bash-3.00$ make
Making all in srclib
make[1]: Entering directory `/apps/exlink/tmp/httpd-2.2.3/srclib'
Making all in apr
make[2]: Entering directory `/apps/exlink/tmp/httpd-2.2.3/srclib/apr'
make[3]: Entering directory `/apps/exlink/tmp/httpd-2.2.3/srclib/apr'
/bin/bash /apps/exlink/tmp/httpd-2.2.3/srclib/apr/libtool --silent 
--mode=compile gcc -g -O2   -DHAVE_CONFIG_H -DSOLARIS2=10 
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -I./include 
-I/apps/exlink/tmp/httpd-2.2.3/srclib/apr/include/arch/unix 
-I./include/arch/unix -I/apps/exlink/tmp/httpd-2.2.3/srclib/apr/include -o 
passwd/apr_getpass.lo -c passwd/apr_getpass.c && touch 
passwd/apr_getpass.lo
In file included from /usr/include/sys/wait.h:24,
                 from include/apr.h:131,
                 from include/apr_pools.h:37,
                 from 
/apps/exlink/tmp/httpd-2.2.3/srclib/apr/include/arch/apr_private_common.h:24,
                 from 
/apps/exlink/tmp/httpd-2.2.3/srclib/apr/include/arch/unix/apr_private.h:779,
                 from passwd/apr_getpass.c:22:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/sys/procset.h:24,
                 from /usr/include/sys/wait.h:25,
                 from include/apr.h:131,
                 from include/apr_pools.h:37,
                 from 
/apps/exlink/tmp/httpd-2.2.3/srclib/apr/include/arch/apr_private_common.h:24,
                 from 
/apps/exlink/tmp/httpd-2.2.3/srclib/apr/include/arch/unix/apr_private.h:779,
                 from passwd/apr_getpass.c:22:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from include/apr.h:131,
                 from include/apr_pools.h:37,
                 from 
/apps/exlink/tmp/httpd-2.2.3/srclib/apr/include/arch/apr_private_common.h:24,
                 from 
/apps/exlink/tmp/httpd-2.2.3/srclib/apr/include/arch/unix/apr_private.h:779,
                 from passwd/apr_getpass.c:22:
/usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
In file included from include/apr_general.h:33,
                 from include/apr_pools.h:39,
                 from 
/apps/exlink/tmp/httpd-2.2.3/srclib/apr/include/arch/apr_private_common.h:24,
                 from 
/apps/exlink/tmp/httpd-2.2.3/srclib/apr/include/arch/unix/apr_private.h:779,
                 from passwd/apr_getpass.c:22:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
make[3]: *** [passwd/apr_getpass.lo] Error 1
make[3]: Leaving directory `/apps/exlink/tmp/httpd-2.2.3/srclib/apr'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/apps/exlink/tmp/httpd-2.2.3/srclib/apr'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/apps/exlink/tmp/httpd-2.2.3/srclib'
make: *** [all-recursive] Error 1


Regards

Ben Cuthbert
Deutsche Bank - Global Markets
TISO / Arch Global Finance / Prime Services
PGP: http://pgp.mit.edu

+44 (0) 20 754 76389 (Tel)
+44 (0) 20 754 74996 (Fax)



Nick Kew <ni...@webthing.com> 
08/17/2006 10:49 AM
Please respond to
users@httpd.apache.org


To
users@httpd.apache.org
cc

Subject
Re: [users@httpd] mod_authn_dbd or mod_auth_pgsql on Apache 2.2?






On Thursday 17 August 2006 07:08, alan bryan wrote:
> Has anyone gotten either mod_authn_dbd (using postgresql) or
> mod_auth_pgsql to work on Apache 2.2 on FreeBSD (I'm using 6.1)?

Didn't you post this just a few days ago?  Why the new thread?

Oh, you're the one who replied *twice* by posting here and CC:ing me.
Don't ever do that again, or I'll *permanently* killfile you.

> mod_auth_dbd yields:
> [crit] (70023)This function has not been implemented on this platform:
> DBD: failed to initialise

That message is a little misleading.  "this platform" doesn't mean 
FreeBSD,
it means it's not implemented in your APR-UTIL build.  There should be 
some
previous error messages, and "ldd" can tell you whether you've built it 
with
pgsql enabled at all.

> mod_auth_pgsql yields:
> No Authn provider configured

Use either 2.0 or 2.2 authn.  Mixing them is likely to lead to that kind
of problem.  If you want to use an old module, don't load the new ones.


-- 
Nick Kew

---------------------------------------------------------------------
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





---

This e-mail may contain confidential and/or privileged information. If you 
are not the intended recipient (or have received this e-mail in error) 
please notify the sender immediately and destroy this e-mail. Any 
unauthorized copying, disclosure or distribution of the material in this 
e-mail is strictly forbidden.

Re: [users@httpd] mod_authn_dbd or mod_auth_pgsql on Apache 2.2?

Posted by Nick Kew <ni...@webthing.com>.
On Thursday 17 August 2006 07:08, alan bryan wrote:
> Has anyone gotten either mod_authn_dbd (using postgresql) or
> mod_auth_pgsql to work on Apache 2.2 on FreeBSD (I'm using 6.1)?

Didn't you post this just a few days ago?  Why the new thread?

Oh, you're the one who replied *twice* by posting here and CC:ing me.
Don't ever do that again, or I'll *permanently* killfile you.

> mod_auth_dbd yields:
> [crit] (70023)This function has not been implemented on this platform:
> DBD: failed to initialise

That message is a little misleading.  "this platform" doesn't mean FreeBSD,
it means it's not implemented in your APR-UTIL build.  There should be some
previous error messages, and "ldd" can tell you whether you've built it with
pgsql enabled at all.

> mod_auth_pgsql yields:
> No Authn provider configured

Use either 2.0 or 2.2 authn.  Mixing them is likely to lead to that kind
of problem.  If you want to use an old module, don't load the new ones.


-- 
Nick Kew

---------------------------------------------------------------------
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