--- old+++ new@@ -1,3 +1,3 @@-- in `set_pawwsord` handle case, where old password is not provided ([#7342] for reference). Use admin credentials for LDAP in this case.+- in `set_password` handle case, where old password is not provided ([#7342] for reference). Use admin credentials for LDAP in this case.
- Enable `forgotten_password_process` for LDAP provider
- Store hashed password (algorithm in [#7342]). Algorithm, # of rounds and salt length should be `.ini` options
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Because of them /auth/preferences/ is almost empty, when using LDAP auth provider. I.e. you can't set display name, email, etc.
I guess, this is because sfx auth method provides those settings through legacy part of sourceforge?
To test forgotten password recovery capabilities I've changed condition to != 'sfx'.
I wonder if this change should be commited? Maybe Allura instance on sourceforge would also rely on legacy part to provide those, but I think these preferences should be available for other deployment too, even when using LDAP auth.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Good catch. I think we'll need deeper updates to make it really work well with LDAP though. LDAP will often provide names and email addresses, and may or may not let users change those within Allura (e.g. have to change it somewhere else in LDAP directly). So this will probably have to be configurable for each provider, and likely some additional methods or hooks to keep LDAP (or any other auth store) in sync with Allura changes if allowed. Lets handle that in a separate ticket. I can create one in a while.
For now lets just keep it as-is for name and email. Few others like password recovery I think is fine to change to != 'sfx' (And then we can clean up the 'sfx' references later, once we get rid if it)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Diff:
While working on this I've discovered that
user_prefs.html
and relevant controller does checks like this:Because of them
/auth/preferences/
is almost empty, when using LDAP auth provider. I.e. you can't set display name, email, etc.I guess, this is because sfx auth method provides those settings through legacy part of sourceforge?
To test forgotten password recovery capabilities I've changed condition to
!= 'sfx'
.I wonder if this change should be commited? Maybe Allura instance on sourceforge would also rely on legacy part to provide those, but I think these preferences should be available for other deployment too, even when using LDAP auth.
Good catch. I think we'll need deeper updates to make it really work well with LDAP though. LDAP will often provide names and email addresses, and may or may not let users change those within Allura (e.g. have to change it somewhere else in LDAP directly). So this will probably have to be configurable for each provider, and likely some additional methods or hooks to keep LDAP (or any other auth store) in sync with Allura changes if allowed. Lets handle that in a separate ticket. I can create one in a while.
For now lets just keep it as-is for name and email. Few others like password recovery I think is fine to change to
!= 'sfx'
(And then we can clean up the 'sfx' references later, once we get rid if it)Closed #591.
je/42cc_7388
Also fixes [#7387].
New config options:
Related
Tickets:
#7387