Roundcube Community Forum

 

Login with/without @domain.bla

Started by Mythics, February 24, 2011, 09:36:36 AM

Previous topic - Next topic

Mythics

Hey, first post so forgive any ignorance if you would.

I'm taking over the administration of a local ISP and they offer RoundCube currently as their webmail.

I came to this position after working in Technical Support for quite some time, so I'm now getting the opportunity to alleviate a lot of issues that customers called in quite often about (usually due to lack of knowledge on their part).

This question I would assume to be a simple one. Currently, we only use one domain, so all users login with just a username and not their full email address.

Is is possible for me to simply edit RC (or configure it) to allow the use of full email addresses as an option, but to simply drop off the @whatever.com or what have you?

We do have quite a few other issues with it, mostly speed related, but we're only using Version 0.4.2 at the moment. We've currently been using the plugin webcalendar as well to compliment RC, but we'll be moving from that soon enough to something a little more.. well, supported.


Thanks for any and all help,
Mythics

SKaero

In /config/main.inc.php set $rcmail_config['mail_domain']

Mythics

So, that'd take our system the way it is now where users must NOT use a domain to login, to a method of using or not using the domain either way should work?

I only ask because it didn't seem to change anything when I just tried it.


(You may want to ignore that as I didn't consider that'd be only for new users, I'd have to modify the user's table now too, correct?)

SKaero

Ah sorry I gave the wrong variable, its $rcmail_config['username_domain'] not $rcmail_config['mail_domain'] that should make it work for new and existing users.

havid


Mythics

#5
The config states that ADDS the domain to all usernames upon logging in.
I'm saying, when a user logs in and specifies even the only domain we host, it fails.
Users are only able to login if they do NOT specify a domain currently.
Setting that variable to our domain name actually makes all accounts unable to login.

We want users to be able to login with or without a domain specified.
The only time we want it to fail is when they specify any domain other than the one we actually host.

Currently, you can only login if you do NOT specify a domain.

SKaero

It works for me whether I specify a domain or not, ie [email protected] and user work when I have have username_domain set to:
$rcmail_config['username_domain'] = 'example.com';

JohnDoh

QuoteThe config states that ADDS the domain to all usernames upon logging in.
I'm saying, when a user logs in and specifies even the only domain we host, it fails.
Users are only able to login if they do NOT specify a domain currently.
Setting that variable to our domain name actually makes all accounts unable to login.

does your imap server use usernames which dont include the domain name? Sounds like you need to make a plugin on the `authenticate` hook and then check the username for a domain and if found then strip it.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

Mythics

Our imap server does in fact use usernames without the domain.

Thanks for the tip. I made a plugin within about 10 mins that strips out just our domain only from usernames upon authenticating and so far it looks like it's working absolutely perfect.