=?windows-1256?Q?Re=3A_How_to_enable_LDAP_authenticati?= =?windows-1256?Q?on_for_Roller_5=3F=FE=FE?=
Glen Mazza <[email protected]>
| Newsgroups | gmane.comp.java.roller.user |
|---|---|
| Message-ID | <[email protected]> |
Thanks for letting us know, I created a JIRA item to track the matter:
https://issues.apache.org/jira/browse/ROL-1987
Glen
On 02/03/2014 06:16 AM, leofreesand wrote:
> I sovled this problem finally!
>
> First I checked tomcat logfile the above 500 error is caused by a
> java.lang.IllegalAccessError and found a solution there:
> http://osdir.com/ml/java.springframework.user/2008-10/msg00017.html
> (simply using spring-ldap-1.2.1.jar instead of spring-ldap-1.2.jar...)
>
> Then when using ldap username/password the page will jump to
> roller-ui/login-redirect.rol and display a '500
> java.lang.NullPointerException' error -- the same error mentioned by
> Andreas Heizenreder's wiki page comment:
> https://cwiki.apache.org/confluence/display/ROLLER/Roller+4.0+with+LDAP+and+CAS
>
>
> Then I added folling code in
> roller-weblogger-5.0.3-source\weblogger-web\src\main\java\org\apache\roller\weblogger\ui\core\security\BasicUserAutoProvision.java:
> public boolean execute(HttpServletRequest request) {
> User ud = CustomUserRegistry.getUserDetailsFromAuthentication(request);
> if(ud != null) {
> UserManager mgr;
> // leo--
> ud.setId(org.apache.roller.util.UUIDGenerator.generateUUID());
> // --leo
>
> Now rebuild source code to get a new roller-weblogger-web-5.0.3.jar,
> when a ldap user logged in the program will create same user in
> rollerdb automatically.
> (one more thing: the defaultRole for ldap user must be 'editor'
> instead of 'register', or you will get a '403 Access Denied' error.)
>
>