We are trying to update the XML for the corp user store and receive a 500 error when importing the XML.
It took a while to find that the missing element was actually the password used by im to contact the directory.
<Credentials user="Their User"></Credentials>
and should be:
<Credentials user="Their User">EncryptedPassword</Credentials>
This password can be encrypted with the pwdtools utility.
the encrypted value can be added to the directory.xml and then import is successful.