// loop through and set the passwords to clear text
for (CLdapServerConfiguration ldapServer : ldapConfiguration.getServers()) {
this.convertPasswordsToClearText(ldapServer);
}
LdapConfigurationXpp3Writer writer = new LdapConfigurationXpp3Writer();
StringWriter stringWriter = new StringWriter();
writer.write(stringWriter, ldapConfiguration);
return stringWriter.toString();
}