Menu

Change Password in iTop to update the password in LDAP

hong
2021-07-05
2021-07-07
  • hong

    hong - 2021-07-05

    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?

     
  • Guillaume Lajarige

    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

     
    • hong

      hong - 2021-07-05

      I am using v2.7. What if I modify the 'change password' part in 'model.authent-ldap.php'? Will that works in portal?

       
      • Guillaume Lajarige

        ⚠ 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

         
        • hong

          hong - 2021-07-07

          Thanks, it helps a lot!

           

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.