Sounds like feature envy...
What tells you that the LDAP server will authorize IMAP users to change their passwords from the IMAP server ?
For sure, my LDAP server doesn't want that. The IMAP server is configured for read-only access to the passwords.
So, this feature highly depends on the implementation of the LDAP server and doesn't belong to a Webmail application... IMO.