Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 69446 invoked from network); 14 Aug 2006 22:42:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Aug 2006 22:42:46 -0000 Received: (qmail 62802 invoked by uid 500); 14 Aug 2006 22:42:37 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 62775 invoked by uid 500); 14 Aug 2006 22:42:37 -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 62764 invoked by uid 99); 14 Aug 2006 22:42:37 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Aug 2006 15:42:37 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of alan.bryan@gmail.com designates 64.233.182.185 as permitted sender) Received: from [64.233.182.185] (HELO nf-out-0910.google.com) (64.233.182.185) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Aug 2006 15:42:36 -0700 Received: by nf-out-0910.google.com with SMTP id x37so102673nfc for ; Mon, 14 Aug 2006 15:42:14 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=fYAt0c0AFJOJDuxxvVKDGDjmGK058t73kpfu8NQT3VIFFkf8Z9BJL2MkpPnVDW5G1fm5dx4ZQdURswwwnbVsPjchmgQnsPBt5ILxEFtgZhaURglD6SSVdrISjsvW0vBHAoG5IVckmK93MjoktIdOHHZvj0VrPT3R8PIOrTNte+g= Received: by 10.49.8.1 with SMTP id l1mr469945nfi; Mon, 14 Aug 2006 15:42:13 -0700 (PDT) Received: by 10.49.93.1 with HTTP; Mon, 14 Aug 2006 15:42:13 -0700 (PDT) Message-ID: <892916310608141542w6145da8va1c40c0a5c300352@mail.gmail.com> Date: Mon, 14 Aug 2006 15:42:13 -0700 From: "alan bryan" To: users@httpd.apache.org Cc: nick@webthing.com In-Reply-To: <892916310608141533k15e9bf2s175c2acdf981d7f9@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <892916310608141244r77f7b935yf65ea12f2958ac1@mail.gmail.com> <200608142125.27251.nick@webthing.com> <892916310608141533k15e9bf2s175c2acdf981d7f9@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Subject: Fwd: [users@httpd] Authorization in Apache 2.2 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N (resending as last wasn't sent as plain text - sorry) On 8/14/06, Nick Kew wrote: > On Monday 14 August 2006 20:44, alan bryan wrote: > > I'm trying to set up some sort of basic authentication in Apache > > 2.2authenticating against a PostgreSQL > > 8.1 database. > > > > Has anyone been able to successfully get the new mod_authn_dbd to work on > > FreeBSD? > > Of course:-) Thanks for responding. Any hints as to how? I installed ports/apache22. What compile time options are needed to make this work? I tried "WITH_PGSQL=YES WITH_CUSTOM_AUTH=dbd" and that didn't seem to do it. When using the example config from http://httpd.apache.org/docs/2.2/mod/mod_authn_dbd.html I get the following errors: [crit] (70023)This function has not been implemented on this platform: DBD: failed to initialise That's what made me question if anyone has been able to get it to work on FreeBSD. Either something was missed when I compiled or this is actually not a valid combination (apache2.2, postgresql8.1, FreeBSD 6.1). > > I've also tried mod_auth_pgsql which compiles fine but I get the error: > > "No Authn provider configured" > > when I run it using the same .htaccess that works fine in Apache 2.0. > > That looks like mod_auth_basic getting in before it. How do I specify the order so that mod_auth_basic doesn't get in before it? The examples on the mod_auth_pgsql site show that you should set the AuthType to basic - I tried it both at the top and bottom of my .htaccess file with the same results. Is this something where I need to change the order the modules are loaded in httpd.conf? > And you really shouldn't tr and run any SQL-based authentication > from .htaccess. mod_authn_dbd won't let you (it would be a security > risk to let .htaccess users specify their own SQL query to be executed > by the server), and using .htaccess is not compatible with efficient > usage of SQL. I understand. When I tried the mod_authn_dbd as per the example on apache.org I got the error described above about it not being implemented on this platform and that wasn't in a .htaccess. I am trying .htaccess for mod_auth_pgsql as it's worked like that before. I don't think this is the cause of the current error though. > > So, any ideas to fix the above issues or get some other way to get basic > > auth to work on 2.2? > > You'd need to me more specific about what doesn't work for you. Hopefully the above is more specific. Additionally here's my .htaccess for using mod_auth_pgsql that works fine in apache 2.0 but not 2.2: AuthName "Administration Area" AuthType basic Auth_PG_host localhost Auth_PG_port 5432 Auth_PG_encrypted on Auth_PG_user username Auth_PG_database dbname Auth_PG_pwd_table users Auth_PG_uid_field username Auth_PG_pwd_field password require user username Thanks again, Alan > -- Nick Kew --------------------------------------------------------------------- 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 --------------------------------------------------------------------- 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