Roundcube Community Forum

 

LDAP - Roundcube authentication

Started by iiztp, October 16, 2024, 07:03:35 AM

Previous topic - Next topic

iiztp

Hi everyone,

Here is my problem, I have an OpenLDAP server working with Dovecot and Postfix (and so Roundcube).

In the LDAP, my users have a uid and an email basically.

What I'd like to have with roundcube, is to allow people to connect with their uid and retrieve their email address.

What I have now is, when you connect with your uid, you have the mail address uid@example.com
And when you connect with your mail address you have the right mail address.
Both have the same inbox, but when you want to send with uid@example.com it tells you that the mail does not exists (which is normal), and when you send with the right mail address it works (which is normal) the problem here is only the authentication and the mail address roundcube gives me.

To the best of my knowledge, we can't change emails of the users when they log in right ?

Do you have any indication that could help me ?

Thanks a lot,
iiztp.

alec

I'm not sure, but you can try to set mail_domain and username_domain options to an empty string. Then enable and configure new_user_identity plugin.

The idea is that users log in with just uid, then Roundcube uses the uid alone as username, but the identities contain proper email addresses.

iiztp

Hi,

I might try that, thanks !

I'll get back here if I have any problem