I have a php based web application that manages several other systems including Active Directory and Google Apps. Whenever a user is edited those changes are synced to all of our other systems. Several of the systems require the password be set on their system as well as our system.
Currently all the changes are synced synchronously during the single page request however I would like to have a background process sync all the changes. Is there a reasonably secure way to store the password in a retrievable format for the background process to sync it and then delete it? Unfortunately Active Directory and some of our other systems don't provide a way to send a hashed copy of the password to set the password.