Author Topic: modify roundcube code to automatically fetch username+password from db  (Read 2299 times)

Offline coolatt

  • Jr. Member
  • **
  • Posts: 13
hi all,

i want to bypass the login screen so that username+password for each user is automatically retrieved from a mysql db in clear text.

the idea is that an ID,username & password is stored in a database.
in the url of roundcube i want to add the id and make roundcube retrieve the corresponding username & password from the database.

when accessing roundcube i appended a SSID value like this:
https://webmail.xxx.mu:21443/index.php?ssid=333

in index.php i added some code at the top to retrieve the SSID using GET but its not working:

<?php

////////////////////////////////////////////////////////
   
$ssid $_GET['ssid'];
   
$myFile "/tmp/session";
   
$fh fopen($myFile'w') or die("can't open file");
   
fwrite($fh,$ssid);
   
fclose($fh);
////////////////////////////////////////////////////////

// include environment
require_once 'program/include/iniset.php';


someone please help me.