ensky / taiga-contrib-ldap-auth

Taiga plugin for LDAP authentication
http://taiga.io
GNU Affero General Public License v3.0
54 stars 37 forks source link

Disable changing password in user account #21

Open flyingcircle opened 9 years ago

flyingcircle commented 9 years ago

So I have many people at my company who accidentally use the wrong password, and then go to try and change their password either in the user account settings or at the 'Forgot Password' link in the login page.

This changing of the password screws with the LDAP login process, and it needs to be disabled. I have found no way how to fix a user account beyond deleting it and having them recreate their account again through LDAP.

maci0 commented 9 years ago

same happens when changing the username from the interface, stuff breaks

muppeth commented 9 years ago

My workaround the passwords was to edit template.js at taiga-front/dist/js/templates.js and replace the link to user-change-password and forgot-password to my ldap user management. I know it's a dirty hack but works fine and directs the users to proper place.

As for usernames, I edited section "user-profile.html" and added attribute disabled after username field and real name. <input type=\"text\" name=\"username\" disabled id=\"username\"...

nebulade commented 8 years ago

Great idea @muppeth. Is there any idea how this could be streamlined into a more automatic process?

Thanks

muppeth commented 8 years ago

@nebulade sure. I though of writing up a shell script. Guess it;s about time since there is new release of taiga and it's time to update. I'll give you heads up when I'm done (for sure still this month).

I've been also in contact with taiga team as it should be fixed actually on their side rather then plugin itself. Haven't follow it much but they made user story with my request. Will check that prior update/shell script too.