All -

Is it possible to extend the following query within the current framework?

cas.authn.attributeRepository.jdbc[0].sql=select * from cas_attrs where {0}

I can hardcode a value {0} Column=XYZ and it will return the correct data
however, I have been unsuccessful in my attempts to update the code to ... from
cas_attrs where {0} {1}. This should evaluate to uid=someone and
group=somegroup

The CasPersonDirectoryConfiguration.java
and PrincipalAttributesProperties.java files were modded in an attempt to
pass a new variable which is failing.

Also, I switched the following to a hash map (ordered) but the system only
appears to access one value.

jdbcDao.setQueryAttributeMapping(Collections.singletonMap("username",
jdbc.getUsername()));

/*
                final Map<String, String> mapAttributes = new HashMap<>();
                mapAttributes.put("username", "uid");
                jdbcDao.setQueryAttributeMapping(mapAttributes);
*/

Please help if you can.

Thanks,
-Jeff

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CA%2BTBYOSXFyLp2xj5-HXbB0DGrbbgg9GDvMFuNa811-mR%3D0D-MA%40mail.gmail.com.

Reply via email to