Emails for unknown users

Added by Vaktis Vaktis over 9 years ago

Hi,

I've got incoming mails setup from MS Exchange and it works a treat for registered users, but is there a way to allow unknown users to send in issues and also have them receive mail updates when the issues change?

http://www.redmine.org/wiki/redmine/RedmineReceivingEmails hints that unknown_user=accept requires disabling of the authentication which is not optimal. Any suggestions?

Replies (9)

RE: Emails for unknown users - Added by Felix Schäfer over 9 years ago

Read RedmineReceivingEmails (a little further than where you seem to have gotten) and try unknown_user=create, that will create redmine users for addresses redmine doesn't know about yet.

RE: Emails for unknown users - Added by Vaktis Vaktis over 9 years ago

Yeah, about that... does it create a dummy users who are not able to log in?

Eventually this might create a lot of users that already exist in the LDAP. Would setting up LDAP auth avoid this duplicate storage thing or is it even applicable?

RE: Emails for unknown users - Added by Felix Schäfer over 9 years ago

No, it creates a full user and sends her a new password and everything, but doesn't care about LDAP (LDAP is used for authentication only) while creating the user. If the user ends up with the same login it has in LDAP, redmine will probably make the connection, but don't expect more.

If you have all your users in LDAP already, you could use one of the plugins/scripts to mass import your users from LDAP to redmine and forego the whole unknown user thing altogether.

RE: Emails for unknown users - Added by Vaktis Vaktis over 9 years ago

Yes, all potential users exists in LDAP. Then I might as well blast all the users into Redmine and save us from all the user maintenance.

Are you refering to #1838 for mass importing users?

I guess this requires scheduled updates to get hold of new dudes.

Btw, thanks for the incredibly fast help!

RE: Emails for unknown users - Added by Felix Schäfer over 9 years ago

Vaktis Vaktis wrote:

Are you refering to #1838 for mass importing users?

There are a couple of things floating around, but I haven't used any of them, so I can't tell you which one is better. I think Eric Davis had something up on github (http://github.com/edavis10) around those lines, his work usually is a safe bet.

I guess this requires scheduled updates to get hold of new dudes.

Yes.

RE: Emails for unknown users - Added by Terence Mill over 9 years ago

IN this context i have to ask, what will happen if an user hold and logged in via ldap will change his email or name via "My account" settings. This attributes are trusted and shall be only pulled from ldap. Eg. we internally resgiter external users for enteprise network access, and also validate to our customer care center that the email is correct, cause the email is used to send password reset link for our internal ldap. A user shouldn't be able to change this data in the copy in redmine db.

RE: Emails for unknown users - Added by Felix Schäfer over 9 years ago

Terence Mill wrote:

IN this context i have to ask, what will happen if an user hold and logged in via ldap will change his email or name via "My account" settings.

Vanilla redmine only reads the attributes from LDAP at user creation time, after that, it's used only for authentication, i.e. the user can change stuff in redmine, but those changes are done in redmine only. Conversely, any changes in the LDAP won't be reflected in redmine either once the user has been created in redmine.

RE: Emails for unknown users - Added by Vaktis Vaktis over 9 years ago

Felix Schäfer wrote:

There are a couple of things floating around, but I haven't used any of them, so I can't tell you which one is better. I think Eric Davis had something up on github (http://github.com/edavis10) around those lines, his work usually is a safe bet.

I'm trying to get mr Davis' things(http://github.com/edavis10/redmine_extra_ldap) to work but the documentation is so vague and my risky trials just fails. This info is available:

Run or schedule any of the following rake tasks:
* rake extra_ldap:add_existing_users_to_default_group
* rake extra_ldap:add_new_users
* rake extra_ldap:lock_or_unlock_accounts
* rake extra_ldap:update_custom_user_data

... i'm kind of hoping that he's hanging around or someone has tried them. Anyone?

RE: Emails for unknown users - Added by Felix Schäfer over 9 years ago

  1. use the source, Luke ;-)
  2. ask him on IRC, he's at best rarely in the forums.

(1-9/9)