Menu

Protecting servlets using mod_auth_mysql

Help
eric
2006-01-25
2013-04-23
  • eric

    eric - 2006-01-25

    Hi,

    I need to integrate some servlets into a php application allowing users to authentify before runing the servlets.

    The php application in on an Apache Web server and the servlets deployed in Weblogic on another host.
    As the php application already use a MYSQL table to authentify users, i tried to use mod_auth_mysql to restrict access to servlets path to authentify users.
    But it seems that mod_auth_mysql only allow defining restricted areas with <Directory> in httpd.conf. 
    I tried to add in httpd.conf

    <Location /myServlets>
    SetHandler weblogic-handler
    WebLogicHost wlHost
    WebLogicPort wlPort

    AuthMySQLEnable On
    AuthMySQLHost mysqlHost
    AuthMySQLPort mysqlPort
    AuthMySQLUser user
    AuthMySQLPassword pwd
    AuthMySQLDB db
    AuthMySQLUserTable userTable
    AuthMySQLNameField userField
    AuthMySQLPasswordField pwdField
    AuthMySQLGroupField grpField
    AuthMySQLPwEncryption none
    </Location>

    But it doesn't work.

    How could i do ?

    Thanks.

    Eric

     
    • Jerry Stuckle

      Jerry Stuckle - 2006-01-26

      Sorry, there's no way to do what you wish with mod_auth_mysql (or any Apache authentication).  This is an Apache restriction, not mod_auth_mysql.

      The Apache authentication/authorization mechanism only works in <directory> entries and .htaccess files.  It can't be used in <location> entries or any other section of your config file.  See the apache docummentation for more information.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.