[WebSVN] idea for auth of SSL cert users

View: New views
1 Messages — Rating Filter:   Alert me  

[WebSVN] idea for auth of SSL cert users

by Volker Hage :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi folks,

I have a Subversion setup with https and client certificates; these contain Emails which represent the usernames. To authenticate the users I changed the include/auth.php as follows

  function setUsername() {
//    if (isset($_SERVER["REMOTE_USER"])) {
//      $this->user = $_SERVER["REMOTE_USER"];
//    } else if (isset($_SERVER["REDIRECT_REMOTE_USER"])) {
//      $this->user = $_SERVER["REDIRECT_REMOTE_USER"];
//    } else if (isset($_SERVER["PHP_AUTH_USER"])) {
//      $this->user = $_SERVER["PHP_AUTH_USER"];
//    }
        $this->user = $_SERVER['SSL_CLIENT_S_DN_Email'];
  }


Greetings
Volker

start: 0000-00-00 end: 0000-00-00