logo       

Re: Problem with LDAP filter values substitution: msg#00094

java.jasig.cas.user

Subject: Re: Problem with LDAP filter values substitution

I've created a JIRA issue for it:
http://www.ja-sig.org/issues/browse/CAS-437

Thanks
-Scott

On 12/13/06, André Cruz <andre.cruz-LFYgMpW7nLheoWH0uzbU5w@xxxxxxxxxxxxxxxx> wrote:
Yes... Actually I altered it for my deployment.

Scott Battaglia wrote:
> Would you like it to do a replaceAll instead of a replaceFirst?
>
> -Scott
>
> On 12/12/06, *André Cruz* < andre.cruz-LFYgMpW7nLheoWH0uzbU5w@xxxxxxxxxxxxxxxx
> <mailto:andre.cruz-LFYgMpW7nLheoWH0uzbU5w@xxxxxxxxxxxxxxxx>> wrote:
>
>     Hello all.
>
>     From what I see in org.jasig.cas.adaptors.ldap.util.LdapUtils :
>
>             for (final Iterator iter = properties.keySet().iterator();
>     iter.hasNext();) {
>                 final String key = (String) iter.next();
>                 final String value = properties.getProperty(key, "");
>
>                 newFilter = newFilter.replaceFirst(key, value);
>             }
>
>
>     we can't have queries that use the same parameter more than once
>     in the
>     search filter. Like, for example, (|(email=%u)(alias=%u)). Only the
>     first %u is substituted. Is there a good reason for this? I'm going to
>     have to declare two authenticationHandlers so I can make that query.
>
>     Also, is there a way to set the REMOTE_USER to an ldap attribute
>     that is
>     retrieved with that query? For example, if someone logs in with a mail
>     alias I would like the REMOTE_USER to be the primary email...
>
>     Thanks for the help,
>     André Cruz
>
>
>
>     _______________________________________________
>     Yale CAS mailing list
>     cas-c5E7yoNEsvRIM2btvs0Z1A@xxxxxxxxxxxxxxxx <mailto:cas-c5E7yoNEsvRIM2btvs0Z1A@xxxxxxxxxxxxxxxx>
>     http://tp.its.yale.edu/mailman/listinfo/cas
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Yale CAS mailing list
> cas-c5E7yoNEsvRIM2btvs0Z1A@xxxxxxxxxxxxxxxx
> http://tp.its.yale.edu/mailman/listinfo/cas
>



_______________________________________________
Yale CAS mailing list
cas-c5E7yoNEsvRIM2btvs0Z1A@xxxxxxxxxxxxxxxx
http://tp.its.yale.edu/mailman/listinfo/cas






<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise