LDAP and openfire.xml

Hi, does anyone have an openfire.xml file configured to automatically setup ldap that they would be willing to redact and share. I have been trying to configure an openfire.xml file that I can use for multiple installs just by changing key variables but I cannot get ldap to work via this method. Thanks