Attributes are officially only available with the SAML protocol. Check
the saml example please:
https://wiki.jasig.org/display/CASC/phpCAS+examples#phpCASexamples-SAMLProtocolwithAttributeRelease
Just replace CAS_VERSION_2_0 with SAML_VERSION_1_1 and it should work.
The next phpcas will get attributes for the cas 2.0 protocol. But this
"hack" also needs server-side modifications and is not part of the
official protocol. Since SAML has attributes out of the box there is
really no need to implement the cas 2.0 attribute hack unless you need
attributes+proxy support which are a pretty rare combination.
Cheers,
Joachim
Am 04.07.2010 18:14, schrieb TUBETTI:
hi,
I had install CAS server 3.4.2.
I used this https://wiki.jasig.org/display/CASUM/Attributes to configure
recovery of ldap attributes.
On the client server I use phpCAS 1.1.1
I test with example_simple.php
the protocol is CAS_VERSION_2_0
the authentication is ok
when I add the method getAttribute('sn') to recover this attribute i have this
error :
Fatal error: Call to undefined method phpCAS::getAttribute()
when I try to use getAttributes() methode ( var_dump( phpCAS::getAttributes())
)I have this result :
array {0}
Why I have a fatal error when I use getAttribute() method ?
Why my array is empty when I use getAttributes() ?
There was something else to set on the CAS server or on the client server?
Thanks in advance!
Fred TUBETTI
--
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