Hello,
I search and try lots of configuration and I have no results.
I want to provide ldap attributes from CAS I have defined
ldapPersonAttributeDao in deployerConfigContext.xml :
<bean id="ldapPersonAttributeDao"
class="org.jasig.services.persondir.support.ldap.LdaptivePersonAttributeDao"
p:connectionFactory-ref="searchPooledLdapConnectionFactory"
p:baseDN="${ldap.baseDn}"
p:searchControls-ref="searchControls"
p:searchFilter="uid={0}">
<property name="resultAttributeMapping">
<map>
<!--
| Key is LDAP attribute name, value is principal
attribute name.
-->
<entry key="uid" value="uid" />
<entry key="mail" value="mail" />
</map>
</property>
</bean>
<bean id="searchControls"
class="javax.naming.directory.SearchControls"
p:searchScope="2"
p:countLimit="10" />
I have no restriction in my service json :
{
"@class" : "org.jasig.cas.services.RegexRegisteredService",
"serviceId" : "^https://phptestcas.domaine.com/.*",
"name" : "phptestcas",
"id" : 10000003,
"description" : "Authorization for testing application phptestcas.",
"proxyPolicy" : {
"@class" : "org.jasig.cas.services.RefuseRegisteredServiceProxyPolicy"
},
"evaluationOrder" : 0,
"usernameAttributeProvider" : {
"@class" :
"org.jasig.cas.services.DefaultRegisteredServiceUsernameProvider"
},
"logoutType" : "BACK_CHANNEL",
"accessStrategy" : {
"@class" :
"org.jasig.cas.services.DefaultRegisteredServiceAccessStrategy",
"enabled" : true,
"ssoEnabled" : true
}
}
But when I try a with phpcas to get attributes :
<p>uid : <b><?php echo phpCAS::getAttribute('uid'); ?></b>.</p>
<p>mail : <b><?php echo phpCAS::getAttribute('mail'); ?></b>.</p>
I have no results.
What I missing ?
Sincerely
guidtz
--
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