Hi ALL,
I want to let the LDAP user change his/her password in the iTop userprofile page. And then use php modify function to update this user's password in LDAP. Can anyone help me with that?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Which version of iTop are you using? In iTop 2.7+ there is an API you can use to add content to the preferences page.
In the end-users portal there is no native API, still this can be done but through some "hacking", there is no guarantee it will still work on the future releases.
Guillaume
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
⚠ You should never modify the files from the iTop package as you will loose everything during the next upgrade.
You should create your own extension:
- Tutorial to create your extension
- Extend the API AbstractPortalUIExtension class to inject HTML / JS in the page that will on submit call a custom PHP endpoint
Hope this helps,
Guillaume
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi ALL,
I want to let the LDAP user change his/her password in the iTop userprofile page. And then use php modify function to update this user's password in LDAP. Can anyone help me with that?
Hello Hong,
Which version of iTop are you using? In iTop 2.7+ there is an API you can use to add content to the preferences page.
In the end-users portal there is no native API, still this can be done but through some "hacking", there is no guarantee it will still work on the future releases.
Guillaume
I am using v2.7. What if I modify the 'change password' part in 'model.authent-ldap.php'? Will that works in portal?
⚠ You should never modify the files from the iTop package as you will loose everything during the next upgrade.
You should create your own extension:
- Tutorial to create your extension
- Extend the API AbstractPortalUIExtension class to inject HTML / JS in the page that will on submit call a custom PHP endpoint
Hope this helps,
Guillaume
Thanks, it helps a lot!