What you described earlier is all automated. You don’t need to define beans for 
DAOs in XML. 

In principal, you will need to put in the settings for authentication 
attributes based on LDAP and SQL. Then DAOs will be constructed for you 
automatically and merged together. If you find this recipe does not work, 
either share your settings or open up an issue please.

-- 
Misagh

From: Erdal Gunyar <gun...@gmail.com>
Reply: Erdal Gunyar <gun...@gmail.com>
Date: October 18, 2016 at 12:27:59 PM
To: CAS Community <cas-user@apereo.org>
Subject:  [cas-user] CAS 5: Changing the principal resolver in 
application.properties  

Hello all,

I'm quite confused by the CAS 5 documentation :
https://apereo.github.io/cas/development/installation/Configuration-Properties.html#authentication-attributes
https://apereo.github.io/cas/development/installation/Configuration-Properties.html#principal-resolution

I'm reading that I can change the principal resolver only with the 
configuration properties.

For example, change the default LDAP resolver (for the LDAP authentication 
handler) by a JDBC resolver.
I've tested that but the default LDAP resolver stays and the SQL is not even 
queried.
The JDBC internal DAO must be built though because as soon as I put some JDBC 
attribute repo stuff on the config, the app needs for the hssqldb dependency on 
the launch.

The part of the documentation that makes me think it's possible is :
https://apereo.github.io/cas/development/installation/Configuration-Properties.html#principal-resolution

Principal Resolution
In the event that a separate resolver is put into place, control how the final 
principal should be constructed by default.
# cas.personDirectory.principalAttribute=
# cas.personDirectory.returnNull=false
But I don't see how here... I'm puzzled.

Any help, even hint will be greatly appreciated :)


--
CAS gitter chatroom: https://gitter.im/apereo/cas
CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
CAS documentation website: https://apereo.github.io/cas
CAS project website: https://github.com/apereo/cas
---
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+unsubscr...@apereo.org.
To post to this group, send email to cas-user@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/27c8c5a3-d37b-4d5f-ba45-4103d1b90ab9%40apereo.org.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

-- 
CAS gitter chatroom: https://gitter.im/apereo/cas
CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
CAS documentation website: https://apereo.github.io/cas
CAS project website: https://github.com/apereo/cas
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+unsubscr...@apereo.org.
To post to this group, send email to cas-user@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/etPan.5805e7de.28eacb85.27bf%40unicon.net.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

Reply via email to