Bug in LDAP authentification with virtual wikis

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Bug in LDAP authentification with virtual wikis

Xavier MOGHRABI
Hi

I try to configure LDAP with my XWiki installation which is virtual.
I got an error : java.lang.NullPointerException. I'd like to propose the patch
below.

--
Xavier MOGHRABI - Consortium ObjectWeb
Email : xavier.moghrabi at objectweb.org
Phone : +33 4 76 61 52 35



Index: LDAPAuthServiceImpl.java
===================================================================
--- LDAPAuthServiceImpl.java    (rĂ©vision 922)
+++ LDAPAuthServiceImpl.java    (copie de travail)
@@ -183,7 +183,7 @@
             } catch (Exception e) {}

             if (context.isVirtual()) {
-                if (DN==null && DN.length()!=0) {
+                if (DN==null || DN.length()==0) {
                     // Then we check in the main database
                     String db = context.getDatabase();
                     try {






--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws