Author Topic: map_pw_file: File based User Password to Password Lookup  (Read 4746 times)

Offline venia

  • Newbie
  • *
  • Posts: 1
map_pw_file: File based User Password to Password Lookup
« on: April 08, 2012, 04:24:15 AM »
I user rc for my kids and I do not want to expose the imap server
password to them. So this plugin gives me the opportunity to separate
roundcube login from imap login.

This plugin act's like a man in the middle: It reads on login the given
password and matches this together with the given username against a
password table. On a match it replaces the password with a new one,
which is used for imap login.



INSTALLATION

Add it to the plugins list in config/main.inc.php and set there
   
   $rcmail_config['map_pw_file'] = 'config/map_pw_file.txt';

to a relative path (seen from to rc root) to your user table text file.
It should not accessible via web and in this format:

# map_pw_file.txt
# username TAB password for roundcube TAB password for imap
# Comments are ok, beware of SPACES THEY ARE TAKEN IN TO ACCOUNT
# and of course only single tabs to separate the fields
user@domain.tl   Password for roundcube    Password for the IMAP