Roundcube Community Forum

 

RC with PAM auth failing due to domain being appended to username

Started by pvint, May 01, 2013, 10:45:40 AM

Previous topic - Next topic

pvint

Good day - Pretty sure I'm missing something simple here, but I cannot get RC to authenticate with courier-imap using PAM auth. A bit of a look into it shows the following in my mail log:
Apr 30 16:15:11 mailhost imapd: Connection, ip=[::ffff:127.0.0.1]
Apr 30 16:15:11 mailhost authdaemond: received auth request, service=imap, authtype=login
Apr 30 16:15:11 mailhost authdaemond: authpam: trying this module
Apr 30 16:15:11 mailhost authdaemond: authpam: username 'pvint@localhost' not found in password file
Apr 30 16:15:11 mailhost authdaemond: authpam: REJECT - try next module
Apr 30 16:15:11 mailhost authdaemond: authshadow: trying this module
Apr 30 16:15:11 mailhost authdaemond: authshadow: REJECT - try next module
Apr 30 16:15:11 mailhost authdaemond: FAIL, all modules rejected
Apr 30 16:15:11 mailhost imapd: LOGIN FAILED, user=pvint, ip=[::ffff:127.0.0.1]


The key problem seems to be that RC is appending "@domain" where I only want to use usernames. I'm running this server on an intranet with no connection to any other network or domain, so using domains is not desired.

In my main.inc.php I have:
$rcmail_config['default_host'] = 'localhost';
$rcmail_config['username_domain'] = '';
$rcmail_config['imap_auth_type'] = '';


I have tried changing the above to other options to no avail. (Also tried the latest version from git with same result)

Any thoughts?

Thanks!
Paul

pvint

Heh - I forgot to make my question clear!  ::)

Can I stop it from adding the "@domain" when sending the login info to the imap server?