Needed features : account expiring - change password by group


I need two features into Openfire.

First, I need that inactives accounts to be automatically deleted.

Second, I need to allow some groups of users to be able to change their password but not all users.

Is it something I can develop into an Openfire plugin ?

Any help will be apreciated! Thanks.