public LdapName findGroupAbsoluteDN(String groupname) throws Exception {
        try {
            LdapName r = LdapManager.escapeForJNDI(findGroupRDN(groupname, baseDN));
            r.addAll(0, baseDN);
            return r;
        }
        catch (Exception e) {
            if (alternateBaseDN == null) {
                throw e;
            }
            LdapName r = LdapManager.escapeForJNDI(findGroupRDN(groupname, alternateBaseDN));
            r.addAll(0, alternateBaseDN);
            return r;
        }
    }
Like {@link #findGroupRDN(String)} but returns the absolute DN of a group
xmppserver/src/main/java/org/jivesoftware/openfire/ldap/LdapManager.java