Hi Eric, > I replaced the getSpecialGroups method in LDAPHierachicalAuthentication.java > with the code you sent. I then ran "mvn package" followed by "ant update" and > "ant init_configs". After restarting Tomcat, I was able to login via LDAP, > but not with a local password. Here several lines dspace.log, followed by the > Java stacktrace.
Sorry - my fault. I sent that new method when I was up far too late last night! In the cold light of day I can see what is causing the problem, have fixed it in SVN, and tested it in both the JSPUI and Manakin. Use this instead: public int[] getSpecialGroups(Context context, HttpServletRequest request) { // Prevents anonymous users from being added to this group, and the second check // ensures they are LDAP users try { if (!context.getCurrentUser().getNetid().equals("")) { if (ldapGroup == null) { // Oops - the group isn't there. log.warn(LogManager.getHeader(context, "ldap_specialgroup", "Group defined in ldap.login.specialgroup does not exist")); return new int[0]; } else { return new int[] { ldapGroup.getID() }; } } } catch (NullPointerException npe) { // The user is not an LDAP user, so we don't need to worry about them } return new int[0]; } Thanks, Stuart _________________________________________________________________ Gwasanaethau Gwybodaeth Information Services Prifysgol Aberystwyth Aberystwyth University E-bost / E-mail: [EMAIL PROTECTED] Ffon / Tel: (01970) 622860 _________________________________________________________________ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech