You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "oraps (JIRA)" <ji...@apache.org> on 2008/02/13 08:32:07 UTC

[jira] Created: (JSPWIKI-184) Cannot register new user and save profile when integrate with LDAP authentication

Cannot register new user and save profile when integrate with LDAP authentication
---------------------------------------------------------------------------------

                 Key: JSPWIKI-184
                 URL: https://issues.apache.org/jira/browse/JSPWIKI-184
             Project: JSPWiki
          Issue Type: Bug
          Components: Authentication&Authorization
    Affects Versions: 2.6.0
         Environment: Windows XP, Tomcat 5.5
            Reporter: oraps
            Priority: Minor


I am able to follow the instructions on http://www.jspwiki.org/wiki/ActiveDirectoryIntegration to integrate against an LDAP server (Oracle Internet Directory). The security is working (i.e. required authentication on resources specified in the web-resource-collocation section of the web.xml file).  However, there are problem in the registration and profile page.

Here are the problems:

    *Cannot register a new user when I am not logged in (i.e. after I click on the "Join wikiname Now!" link on the login page)
    *Cannot create a profile after I successfully login using my LDAP username and password. 

Both scenarios display the same error message:

    * "You cannot set your login name because you are not logged in yet. You should log in first, using the credentials supplied by your administrator."

I have tried to remove the "<url-pattern>/Login.jsp</url-pattern>" in the web-resource-collection section of the web.xml file. I am able to register a new user. However, I am not able to login with my LDAP username and password.

I think the correct functionality should be following:
   1. Allow the LDAP users to create of their profile in JSPWiki.  This ways the users can set their wiki name attribute to be used in the JSPWiki ACL setting.
   2. Allow the non-LDAP users to register to create a new JSPWiki account.  Then, these users can login with the new account.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JSPWIKI-184) Cannot register new user and save profile when integrate with LDAP authentication

Posted by "Harry Metske (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12679988#action_12679988 ] 

Harry Metske commented on JSPWIKI-184:
--------------------------------------

yes

> Cannot register new user and save profile when integrate with LDAP authentication
> ---------------------------------------------------------------------------------
>
>                 Key: JSPWIKI-184
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-184
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Authentication&Authorization
>    Affects Versions: 2.6.0
>         Environment: Windows XP, Tomcat 5.5
>            Reporter: oraps
>            Priority: Minor
>
> I am able to follow the instructions on http://www.jspwiki.org/wiki/ActiveDirectoryIntegration to integrate against an LDAP server (Oracle Internet Directory). The security is working (i.e. required authentication on resources specified in the web-resource-collocation section of the web.xml file).  However, there are problem in the registration and profile page.
> Here are the problems:
>     *Cannot register a new user when I am not logged in (i.e. after I click on the "Join wikiname Now!" link on the login page)
>     *Cannot create a profile after I successfully login using my LDAP username and password. 
> Both scenarios display the same error message:
>     * "You cannot set your login name because you are not logged in yet. You should log in first, using the credentials supplied by your administrator."
> I have tried to remove the "<url-pattern>/Login.jsp</url-pattern>" in the web-resource-collection section of the web.xml file. I am able to register a new user. However, I am not able to login with my LDAP username and password.
> I think the correct functionality should be following:
>    1. Allow the LDAP users to create of their profile in JSPWiki.  This ways the users can set their wiki name attribute to be used in the JSPWiki ACL setting.
>    2. Allow the non-LDAP users to register to create a new JSPWiki account.  Then, these users can login with the new account.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JSPWIKI-184) Cannot register new user and save profile when integrate with LDAP authentication

Posted by "Janne Jalkanen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12581018#action_12581018 ] 

Janne Jalkanen commented on JSPWIKI-184:
----------------------------------------

@Benjamin: Yes, if Tomcat is managing the credentials, it is impossible for JSPWiki to change anything.  The  API simply does not allow us to change credentials - it's essentially a read-only thing.

@oraps: It seems that the people who wrote the LDAP authentication instructions are not reading these bug reports.  LDAP is not a part of the JSPWiki core distribution, so it might be a good idea to also ask on the jspwiki-user mailing list.

> Cannot register new user and save profile when integrate with LDAP authentication
> ---------------------------------------------------------------------------------
>
>                 Key: JSPWIKI-184
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-184
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Authentication&Authorization
>    Affects Versions: 2.6.0
>         Environment: Windows XP, Tomcat 5.5
>            Reporter: oraps
>            Priority: Minor
>
> I am able to follow the instructions on http://www.jspwiki.org/wiki/ActiveDirectoryIntegration to integrate against an LDAP server (Oracle Internet Directory). The security is working (i.e. required authentication on resources specified in the web-resource-collocation section of the web.xml file).  However, there are problem in the registration and profile page.
> Here are the problems:
>     *Cannot register a new user when I am not logged in (i.e. after I click on the "Join wikiname Now!" link on the login page)
>     *Cannot create a profile after I successfully login using my LDAP username and password. 
> Both scenarios display the same error message:
>     * "You cannot set your login name because you are not logged in yet. You should log in first, using the credentials supplied by your administrator."
> I have tried to remove the "<url-pattern>/Login.jsp</url-pattern>" in the web-resource-collection section of the web.xml file. I am able to register a new user. However, I am not able to login with my LDAP username and password.
> I think the correct functionality should be following:
>    1. Allow the LDAP users to create of their profile in JSPWiki.  This ways the users can set their wiki name attribute to be used in the JSPWiki ACL setting.
>    2. Allow the non-LDAP users to register to create a new JSPWiki account.  Then, these users can login with the new account.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (JSPWIKI-184) Cannot register new user and save profile when integrate with LDAP authentication

Posted by "Harry Metske (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JSPWIKI-184?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Harry Metske closed JSPWIKI-184.
--------------------------------

    Resolution: Duplicate

> Cannot register new user and save profile when integrate with LDAP authentication
> ---------------------------------------------------------------------------------
>
>                 Key: JSPWIKI-184
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-184
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Authentication&Authorization
>    Affects Versions: 2.6.0
>         Environment: Windows XP, Tomcat 5.5
>            Reporter: oraps
>            Priority: Minor
>
> I am able to follow the instructions on http://www.jspwiki.org/wiki/ActiveDirectoryIntegration to integrate against an LDAP server (Oracle Internet Directory). The security is working (i.e. required authentication on resources specified in the web-resource-collocation section of the web.xml file).  However, there are problem in the registration and profile page.
> Here are the problems:
>     *Cannot register a new user when I am not logged in (i.e. after I click on the "Join wikiname Now!" link on the login page)
>     *Cannot create a profile after I successfully login using my LDAP username and password. 
> Both scenarios display the same error message:
>     * "You cannot set your login name because you are not logged in yet. You should log in first, using the credentials supplied by your administrator."
> I have tried to remove the "<url-pattern>/Login.jsp</url-pattern>" in the web-resource-collection section of the web.xml file. I am able to register a new user. However, I am not able to login with my LDAP username and password.
> I think the correct functionality should be following:
>    1. Allow the LDAP users to create of their profile in JSPWiki.  This ways the users can set their wiki name attribute to be used in the JSPWiki ACL setting.
>    2. Allow the non-LDAP users to register to create a new JSPWiki account.  Then, these users can login with the new account.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JSPWIKI-184) Cannot register new user and save profile when integrate with LDAP authentication

Posted by "oraps (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12580172#action_12580172 ] 

oraps commented on JSPWIKI-184:
-------------------------------

Benjamin,

I follow your steps, and I get this error message. 

"Could not save profile: Login name cannot contain these characters: &quot;&#39;&lt;&gt;;&amp;\@{}%$"

Here are the steps:
1) login
2) Go to the Profile tab (/UserPreferences.jsp?tab=profile)
3) Enter the Name and Email Address
4) Click the Save button
5) Get the above error message.

> Cannot register new user and save profile when integrate with LDAP authentication
> ---------------------------------------------------------------------------------
>
>                 Key: JSPWIKI-184
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-184
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Authentication&Authorization
>    Affects Versions: 2.6.0
>         Environment: Windows XP, Tomcat 5.5
>            Reporter: oraps
>            Priority: Minor
>
> I am able to follow the instructions on http://www.jspwiki.org/wiki/ActiveDirectoryIntegration to integrate against an LDAP server (Oracle Internet Directory). The security is working (i.e. required authentication on resources specified in the web-resource-collocation section of the web.xml file).  However, there are problem in the registration and profile page.
> Here are the problems:
>     *Cannot register a new user when I am not logged in (i.e. after I click on the "Join wikiname Now!" link on the login page)
>     *Cannot create a profile after I successfully login using my LDAP username and password. 
> Both scenarios display the same error message:
>     * "You cannot set your login name because you are not logged in yet. You should log in first, using the credentials supplied by your administrator."
> I have tried to remove the "<url-pattern>/Login.jsp</url-pattern>" in the web-resource-collection section of the web.xml file. I am able to register a new user. However, I am not able to login with my LDAP username and password.
> I think the correct functionality should be following:
>    1. Allow the LDAP users to create of their profile in JSPWiki.  This ways the users can set their wiki name attribute to be used in the JSPWiki ACL setting.
>    2. Allow the non-LDAP users to register to create a new JSPWiki account.  Then, these users can login with the new account.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JSPWIKI-184) Cannot register new user and save profile when integrate with LDAP authentication

Posted by "oraps (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12580983#action_12580983 ] 

oraps commented on JSPWIKI-184:
-------------------------------

What is the username you are trying to use?
oraps>> I am trying to use the username called "judy".  My login name is an 8 digit numbers that my LDAP username.

> Cannot register new user and save profile when integrate with LDAP authentication
> ---------------------------------------------------------------------------------
>
>                 Key: JSPWIKI-184
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-184
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Authentication&Authorization
>    Affects Versions: 2.6.0
>         Environment: Windows XP, Tomcat 5.5
>            Reporter: oraps
>            Priority: Minor
>
> I am able to follow the instructions on http://www.jspwiki.org/wiki/ActiveDirectoryIntegration to integrate against an LDAP server (Oracle Internet Directory). The security is working (i.e. required authentication on resources specified in the web-resource-collocation section of the web.xml file).  However, there are problem in the registration and profile page.
> Here are the problems:
>     *Cannot register a new user when I am not logged in (i.e. after I click on the "Join wikiname Now!" link on the login page)
>     *Cannot create a profile after I successfully login using my LDAP username and password. 
> Both scenarios display the same error message:
>     * "You cannot set your login name because you are not logged in yet. You should log in first, using the credentials supplied by your administrator."
> I have tried to remove the "<url-pattern>/Login.jsp</url-pattern>" in the web-resource-collection section of the web.xml file. I am able to register a new user. However, I am not able to login with my LDAP username and password.
> I think the correct functionality should be following:
>    1. Allow the LDAP users to create of their profile in JSPWiki.  This ways the users can set their wiki name attribute to be used in the JSPWiki ACL setting.
>    2. Allow the non-LDAP users to register to create a new JSPWiki account.  Then, these users can login with the new account.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JSPWIKI-184) Cannot register new user and save profile when integrate with LDAP authentication

Posted by "Harry Metske (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12679981#action_12679981 ] 

Harry Metske commented on JSPWIKI-184:
--------------------------------------

Propose to close in a few days......

> Cannot register new user and save profile when integrate with LDAP authentication
> ---------------------------------------------------------------------------------
>
>                 Key: JSPWIKI-184
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-184
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Authentication&Authorization
>    Affects Versions: 2.6.0
>         Environment: Windows XP, Tomcat 5.5
>            Reporter: oraps
>            Priority: Minor
>
> I am able to follow the instructions on http://www.jspwiki.org/wiki/ActiveDirectoryIntegration to integrate against an LDAP server (Oracle Internet Directory). The security is working (i.e. required authentication on resources specified in the web-resource-collocation section of the web.xml file).  However, there are problem in the registration and profile page.
> Here are the problems:
>     *Cannot register a new user when I am not logged in (i.e. after I click on the "Join wikiname Now!" link on the login page)
>     *Cannot create a profile after I successfully login using my LDAP username and password. 
> Both scenarios display the same error message:
>     * "You cannot set your login name because you are not logged in yet. You should log in first, using the credentials supplied by your administrator."
> I have tried to remove the "<url-pattern>/Login.jsp</url-pattern>" in the web-resource-collection section of the web.xml file. I am able to register a new user. However, I am not able to login with my LDAP username and password.
> I think the correct functionality should be following:
>    1. Allow the LDAP users to create of their profile in JSPWiki.  This ways the users can set their wiki name attribute to be used in the JSPWiki ACL setting.
>    2. Allow the non-LDAP users to register to create a new JSPWiki account.  Then, these users can login with the new account.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JSPWIKI-184) Cannot register new user and save profile when integrate with LDAP authentication

Posted by "Janne Jalkanen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12580479#action_12580479 ] 

Janne Jalkanen commented on JSPWIKI-184:
----------------------------------------

What is the username you are trying to use?

> Cannot register new user and save profile when integrate with LDAP authentication
> ---------------------------------------------------------------------------------
>
>                 Key: JSPWIKI-184
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-184
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Authentication&Authorization
>    Affects Versions: 2.6.0
>         Environment: Windows XP, Tomcat 5.5
>            Reporter: oraps
>            Priority: Minor
>
> I am able to follow the instructions on http://www.jspwiki.org/wiki/ActiveDirectoryIntegration to integrate against an LDAP server (Oracle Internet Directory). The security is working (i.e. required authentication on resources specified in the web-resource-collocation section of the web.xml file).  However, there are problem in the registration and profile page.
> Here are the problems:
>     *Cannot register a new user when I am not logged in (i.e. after I click on the "Join wikiname Now!" link on the login page)
>     *Cannot create a profile after I successfully login using my LDAP username and password. 
> Both scenarios display the same error message:
>     * "You cannot set your login name because you are not logged in yet. You should log in first, using the credentials supplied by your administrator."
> I have tried to remove the "<url-pattern>/Login.jsp</url-pattern>" in the web-resource-collection section of the web.xml file. I am able to register a new user. However, I am not able to login with my LDAP username and password.
> I think the correct functionality should be following:
>    1. Allow the LDAP users to create of their profile in JSPWiki.  This ways the users can set their wiki name attribute to be used in the JSPWiki ACL setting.
>    2. Allow the non-LDAP users to register to create a new JSPWiki account.  Then, these users can login with the new account.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JSPWIKI-184) Cannot register new user and save profile when integrate with LDAP authentication

Posted by "Janne Jalkanen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12679986#action_12679986 ] 

Janne Jalkanen commented on JSPWIKI-184:
----------------------------------------

So we should replace this with JSPWIKI-517?

> Cannot register new user and save profile when integrate with LDAP authentication
> ---------------------------------------------------------------------------------
>
>                 Key: JSPWIKI-184
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-184
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Authentication&Authorization
>    Affects Versions: 2.6.0
>         Environment: Windows XP, Tomcat 5.5
>            Reporter: oraps
>            Priority: Minor
>
> I am able to follow the instructions on http://www.jspwiki.org/wiki/ActiveDirectoryIntegration to integrate against an LDAP server (Oracle Internet Directory). The security is working (i.e. required authentication on resources specified in the web-resource-collocation section of the web.xml file).  However, there are problem in the registration and profile page.
> Here are the problems:
>     *Cannot register a new user when I am not logged in (i.e. after I click on the "Join wikiname Now!" link on the login page)
>     *Cannot create a profile after I successfully login using my LDAP username and password. 
> Both scenarios display the same error message:
>     * "You cannot set your login name because you are not logged in yet. You should log in first, using the credentials supplied by your administrator."
> I have tried to remove the "<url-pattern>/Login.jsp</url-pattern>" in the web-resource-collection section of the web.xml file. I am able to register a new user. However, I am not able to login with my LDAP username and password.
> I think the correct functionality should be following:
>    1. Allow the LDAP users to create of their profile in JSPWiki.  This ways the users can set their wiki name attribute to be used in the JSPWiki ACL setting.
>    2. Allow the non-LDAP users to register to create a new JSPWiki account.  Then, these users can login with the new account.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JSPWIKI-184) Cannot register new user and save profile when integrate with LDAP authentication

Posted by "Benjamin Leung (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12573422#action_12573422 ] 

Benjamin Leung commented on JSPWIKI-184:
----------------------------------------

I've experienced similar problem.  But I was using the Tomcat's servlet container's authorization service.

I was able to get around the 2nd issue.  

After loggin in, enter something in the 'Name' and 'Email' field in the profile page where it displays the error message "You cannot set your login name...".  After you click save, you should see your profile created and a better error message "You cannot set your login name because your credentials are managed by the web container, not the wiki."

> Cannot register new user and save profile when integrate with LDAP authentication
> ---------------------------------------------------------------------------------
>
>                 Key: JSPWIKI-184
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-184
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Authentication&Authorization
>    Affects Versions: 2.6.0
>         Environment: Windows XP, Tomcat 5.5
>            Reporter: oraps
>            Priority: Minor
>
> I am able to follow the instructions on http://www.jspwiki.org/wiki/ActiveDirectoryIntegration to integrate against an LDAP server (Oracle Internet Directory). The security is working (i.e. required authentication on resources specified in the web-resource-collocation section of the web.xml file).  However, there are problem in the registration and profile page.
> Here are the problems:
>     *Cannot register a new user when I am not logged in (i.e. after I click on the "Join wikiname Now!" link on the login page)
>     *Cannot create a profile after I successfully login using my LDAP username and password. 
> Both scenarios display the same error message:
>     * "You cannot set your login name because you are not logged in yet. You should log in first, using the credentials supplied by your administrator."
> I have tried to remove the "<url-pattern>/Login.jsp</url-pattern>" in the web-resource-collection section of the web.xml file. I am able to register a new user. However, I am not able to login with my LDAP username and password.
> I think the correct functionality should be following:
>    1. Allow the LDAP users to create of their profile in JSPWiki.  This ways the users can set their wiki name attribute to be used in the JSPWiki ACL setting.
>    2. Allow the non-LDAP users to register to create a new JSPWiki account.  Then, these users can login with the new account.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.