Apologies in advance if this isn't formatted or researched as you'd like. I've been using Apache HTTPD for many, many years, but have never needed to set this aspect of configuration up. I do not understand why mod_authn_file is ommitted or missing. 2.2.9-r1 installed could verify if their httpd.conf file omits mod_authn_file. I found thatn 'authn_file' was not present, so I added it then re-emerged apache:. I couldn’t and a 30 minute journey through Google couldn’t show me how to install mod_env.so. I eventually found a German forum where someone used ‘a2enmod env’. ‘env’ is the name of the module needed. In the wake of last week's 'Single Value Authentication Module' query, and the decision to follow the sage advice from that thread, my colleagues and I have decided to use a database lookup to authenticate the user. This way we can hopefully use mostly off-the-shelf components, and have the specialized business logic involved in denying access to the resource when the user's authorization has expired simply be part of the database query (query would only return passwords for users whose access is not expired). So, I've read the documentation for mod_dbd and mod_authn_dbd for Apache 2.2.x and those modules are compiled and ready for loading. The database involved will be an ORACLE database. I set up a configuration to test this, pretty much following the example in the mod_authn_dbd documentation: DBDriver pgsql DBDMin 4 DBDKeep 8 DBDMax 20 DBDExptime 300 DBDParams 'dbname=george user=yogi password=fred' AuthType Basic AuthName 'Restricted Access: Supply appropriate credentials' AuthBasicProvider dbd Require valid-user AuthDBDUserPWQuery 'SELECT password FROM authn WHERE user =%s AND expired = no' Syntax scan is fine EXCEPT for DBDriver line. It reports: DBD: No driver for pgsql Now, I am NOT a Database person. I used what was in the mod_authn_dbd documentation just to get started. The mod_dbd docs says this selects an apr_dbd driver name. It's not clear to me if I even HAVE any apr_dbd drivers installed on this machine (yet). Presuming somebody locally will be taking care of setting up the Oracle connection(s) needed, what apr_dbd stuff do I need, where do I find it, what do I do with it? I've looked for cookbooks on this (including my dog-eared copy of Ken and Rich's _Cookbook_;-P) and haven't found anything yet. Somebody take pity? J.Lance Wilkinson ('Lance') InterNet: [email protected] Systems Design Specialist - Lead Phone: (814) 865-4870 Digital Library Technologies FAX: (814) 863-3560 E3 Paterno Library Penn State University University Park, PA 16802 --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: [email protected] ' from the digest: [email protected] For additional commands, e-mail: [email protected]. On Thu, 15 Sep 2011 17:01:17 -0400 'J.Lance Wilkinson' wrote: Now, I am NOT a Database person. I used what was in the mod_authn_dbd documentation just to get started. The mod_dbd docs says this selects an apr_dbd driver name. It's not clear to me if I even HAVE any apr_dbd drivers installed on this machine (yet). Presuming somebody locally will be taking care of setting up the Oracle connection(s) needed, what apr_dbd stuff do I need, where do I find it, what do I do with it?Look in the APR libs directory for a file called apr_dbd_pgsql.so, apr_dbd_oracle.so, and similarly-named files. Those are driver files. If you build the server yourself, you (may) have to use '--with-foo' configuration options. If you installed from packages, check your packager's docs. J.Lance Wilkinson Do I need to load these as modules, too? Or do they get dynamically associated from the library when the DBDriver directive calls for them? Or do they get statically linked into mod_dbd.so when included in the package build? They're not present in my lib directory or any other subordinate to the server root.
0 Comments
Leave a Reply. |