Line 401 in getSearchScope() method:
String scope = getIdentityConfiguration().getValue(IdentityConfiguration.USER_CONTEXT_DN);
A typo or intend?
Anyway, I have integrated JBoss Portal with CAS and OpenLDAP successfully. Great work!
Regards,
Shi Yusen/Beijing Langhua Ltd.