nextcloud / user_external

👥 External user authentication methods like IMAP, SMB and FTP
https://apps.nextcloud.com/apps/user_external
107 stars 64 forks source link

Domain isn't stripped from username #155

Closed it-management closed 3 years ago

it-management commented 3 years ago

If $domain isn't specified for a backend, username is always the same as uid and no domain stripping is proceeded. See lines 64-80 in current version of imap.php.

I need to let users with more domains to login (they always have a unique user name) but with this bug is domain always part of username.

violoncelloCH commented 3 years ago

this is by design: if you strip the domain, you (as the admin) should know what (domain) you're striping, you shouldn't be striping everything... for your usecase I'd suggest to define multiple IMAP backends (one for each domain)