Commit 481e7807 authored by Max's avatar Max
Browse files

And get right substring

parent ce401be4
......@@ -619,7 +619,7 @@ public class ConfigUtils {
final String dn = siteDNsForHostname.iterator().next();
try {
site = dn.substring(dn.lastIndexOf("ou=") + 1);
site = dn.substring(dn.lastIndexOf('=') + 1);
// Get the hostConfig from LDAP based on the site and hostname
hostConfig = LDAPHelper.checkLdapTree("(&(host=" + hostName + "))", "ou=Config,ou=" + site + ",ou=Sites,", "host");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment