Then add at line 23 $labels['mailbox'] = 'Mailbox'; to your lables.inc
Using this setup the Mailbox is the main user as far as RC is concered so that as with exchange any user with permissions can login to a user and administer that account.
I also changed all of the address book lookups to query where (userid = $user or '0'); where 0 is your administrator account, then you can create, administor and share your contacts with your admin account.
Title: Re: Exchange backend IMAP
Post by: claud43 on February 22, 2008, 01:31:15 AM
Hello, I am following your change exchange for 5 but I can not understand where to make the changes. You can specify the changes better with 'latest roundcube?
The changes that I need are: domain / userdomain / alias exchange
thank you
Title: Re: Exchange backend IMAP
Post by: fregster on February 22, 2008, 07:20:27 AM
Okay I will try to clear this up.
Exchange has mailboxes and users that can access them and so the standard IMAP of just username is not enough.
When loging in with a exchange backend you need to specify the mailbox / username. You can either get your users to put this into the username field ie "Username: test/paul.fryer" Or update the login page to have a seperate input field ie "Username: paul.fryer" and "Mailbox: test"
For simplacity I will assume you only have one backend and it's an exchange 5 based server we will save the mailbox as a session var ($_SESSION['alias']) to make changes to the funcion calls as minimal as posible
This setup uses the mailbox as the username as this keeps the preferences per mailbox you could inverse it for preferences per alias
Step one Update your localisation file to have a lable for the mailbox field
does not pass $alias in, this is why I used the session var and when posted to main put $_SESSION['alias'] = $_POST['alias'];
I did not change the function connect to include alias but you could do function connect($host, $user, $pass, $port=143, $use_ssl=FALSE, $alias=NULL)
You would have to find where you call it and update the calls though which for a non-perminant hack is a pain.
Title: Re: Exchange backend IMAP
Post by: mono76 on February 29, 2008, 05:06:39 AM
Hi there !
Sorry about my english ! i'm french !! :)
I want to try this post in my roundcube configuration to use Exchange backend, but i don't find where i can insert the modification in the files : program/include/main.inc and program/include/rcube_imap.inc It's possible to see your complete configurations files? because i'm lost ! :P I'm using roundcube webmail 0.1 rc2
thx
Title: Re: Exchange backend IMAP
Post by: fregster on March 05, 2008, 04:57:06 AM
I can post the files but you should be able to copy and paste the changes from above.
NOTE THESE FILES ARE NOT RC2 THERE ARE AN OLD SVN Note: There are also other changes the might / will break your RC install
There are only 4 files that need to be changed please find them attached