Hi again.
I had a problem with my server. I tried the same in a local installation and it works. I configured CAS without LDAP simply filling the CAS configuration fields and not the LDAP ones. But I have a new problem.
- CAS server sends me an HTML with an XML embedded and the error I get is the next:
Warning: DOMDocument::loadXML(): Input is not proper UTF-8, indicate encoding ! Bytes: 0xF1 0x65 0x63 0x65 in Entity, line: 3 in /var/www/moodletest/auth/cas/CAS/CAS/domxml-php4-to-php5.php on line 72
CAS Authentication failed!
You were not authenticated.
You may submit your request again by clicking here.
If the problem persists, you may contact the administrator of this site.
phpCAS 1.1.3 using server https://myserver/cas/ (CAS 2.0)
- The header of the response is this:
HTTP/1.1 200 OK
Date: Thu, 12 Apr 2012 12:39:24 GMT
Content-Type: text/html;charset=ISO-8859-1
Content-Language: gl
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 306
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
- The HTML is:
<html>
<head></head>
<body>
<cas:serviceresponse xmlns:cas="http://www.yale.edu/tp/cas">
<cas:authenticationsuccess>
<cas:user>XXXXXX@XXX.XX</cas:user>
<cas:attributes>
<cas:employeetype>EXT</cas:employeetype>
<cas:userprincipalname>XXXXXX@XXX.XX</cas:userprincipalname>
<cas:sn>XXXXXX XXXXX</cas:sn>
<cas:employeeid>XXXXXXXXX</cas:employeeid>
<cas:cn>XXXXX XXXXX XXXXX</cas:cn>
<cas:givenname>XXXXX</cas:givenname>
<cas:tipoautenticacion>Formulario</cas:tipoautenticacion>
</cas:attributes>
</cas:authenticationsuccess>
</cas:serviceresponse>
</body>
</html>
Is this a normal response of the CAS server? Or the module is not prepared for this case?
Thanks.
Iván.