Using mod_auth_mysql w/ PHP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jose.Dr.G@gmail.com

    Using mod_auth_mysql w/ PHP

    Hi,

    I've set up mod_auth_mysql to authenticate users to a mysql database.
    However, I would like to pass the credentials passed to the
    auth_mod_mysql module on to a php script. Is this possible?

  • Jose.Dr.G@gmail.com

    #2
    Re: Using mod_auth_mysql w/ PHP



    An now that I think about it I suppose the reverse could work too.
    Could I pass credentials to apache authentication from PHP. SSL would
    be used if that makes a difference.

    Comment

    • Jerry Stuckle

      #3
      Re: Using mod_auth_mysql w/ PHP

      Jose.Dr.G@gmail .com wrote:[color=blue]
      > Hi,
      >
      > I've set up mod_auth_mysql to authenticate users to a mysql database.
      > However, I would like to pass the credentials passed to the
      > auth_mod_mysql module on to a php script. Is this possible?
      >[/color]

      Yes and no.

      Apache sets the user name in $_SERVER['REMOTE_USER']. But the password, group
      info, etc. are not passed on.

      (Reference your follow up question) And no, you can't pass from a php script to
      mod_auth_mysql. Apache authentication takes place long before any page is loaded.

      --
      =============== ===
      Remove the "x" from my email address
      Jerry Stuckle
      JDS Computer Training Corp.
      jstucklex@attgl obal.net
      =============== ===

      Comment

      Working...