The CAS client that I use is mod_auth_cas (Apache module written in C
language and uses the apr library). When I added the new attribute
(memberOf) to the XML response, I got some problems: mod_auth_cas crached every
time that a user had a special character (é,è,à...) in group list. It was a
problem in the XML parser. So I printed the XML response to try debuggin. It
seems that all the special character are coded in this manner :
    ç --> "\xe7"
    é --> "\xe8"
    è --> "\xe9"
    ê --> "\xea"
    à --> "\xe0"

I think that these are hexa values (UTF-8??). I simply transformed these
characters (after receiving XML response from the CAS server) to their
equivalents like this:

   "\xe7" --> c
   "\xe8" --> e
   "\xe9" --> e

It works (I modified the mod_auth_cas to restrict access only to specified
groups in a new directive :CASGroups). However, I have to use modified group
names in my .htaccess file : français --> francais in order to work.

My problem is that unmodified clients (at least mod_auth_cas) can't use the
CAS server anymore because of the XML Parser crash.

I hope you've understood my problem (I apologize for my poor english).

ABH.

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to