You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by bu...@apache.org on 2006/10/24 14:21:38 UTC

DO NOT REPLY [Bug 35339] - JNDIPrincipalStore fails in parseLdapName

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35339>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35339





------- Additional Comments From petras@skms.sk  2006-10-24 05:21 -------
(In reply to comment #0)
> parseLdapName assume, if not '=' character is found in the name argument, '=' 
> is at index. It should be -1 or gets a special process. 
> For now, parseLdapName("someuser") returns "omeuser", stripping the first 
> character. This is a problem when using the NIS context factory, where 
> result.getName() returns simply the username. As a consequence, store is 
> unusable because it reacts badly when asked later to find the object 
> "/users/omeuser" 
>  
>  
> Proposed solution: 
> if (name.indexOf("=")<0) return name; 
> in the method

or comment out this portion of the code:

if ( firstEqual < 0 ) {
   firstEqual = 0;
}

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org