cancel
Showing results for 
Search instead for 
Did you mean: 

LDAP auth: Could not resolve view with name 'user/[x]'

karypid
Champ in-the-making
Champ in-the-making
Hello,

I'm a first-time user of Alfresco.

I've set up version 3.3 (community) successfully and configured LDAP authentication using an OpenLDAP installation as a provider. I test my setup by trying to login to Alfresco Share. Thinks work fine (authentication succeeds when I use an account defined in LDAP), but certain accounts that contain the dot/period ( '.' ) fail immediately after login with:

javax.servlet.ServletException: Could not resolve view with name 'user/[x] in servlet with name 'Spring Surf Dispatcher Servlet'
   org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1042)
   org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:798)
   org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
   org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
   org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

[x] is the part of the username that preceeds the period/dot. For example, if the username was 'str1.str2' whould give: Could not resolve view with name 'user/str1 in servlet with name 'Spring Surf Dispatcher Servlet'

For accounts whose username is a simple string (e.g. 'somestr'), there is no error and user dashboard is displayed.

I tried setting the ldap.authentication.escapeCommasInBind and ldap.authentication.escapeCommasInUid but that didn't help. Any ideas how I can get around this? Most accounts have a "firstname.lastname" format as their uid attribute so the vast majority of users would have to change their username.
4 REPLIES 4

karypid
Champ in-the-making
Champ in-the-making
Forgot to mention that the problem occurs only with the "share" application. All users (even those with '.' in their username) can access the "machine:8080/alfresco" application.

karypid
Champ in-the-making
Champ in-the-making
I would really appreciate some help with this.

At the very least, can anybody verify that they are using user names that contain the dot/period character ('.') in them with Alfresco 3.3?

For example, are you able to use accounts with user names such as 'john.doe' or 'scott.smith' ?

I'm absolutely certain that this is not really a problem with LDAP per se, but rather with the way Alfresco Surf encodes URLs. It appears that Alfresco Surf truncates the username at the dot, so if you try to access the home page of 'john.doe' you actually end up hitting the page for user 'john' which does not exist.

I will wait another few days to see if there are any replies and then open a bug report.

mikeh
Star Contributor
Star Contributor

karypid
Champ in-the-making
Champ in-the-making
Thank you Mike.

Sorry for missing this post (I did look for related posts but failed to find one). Guess I need to improve my search skills…