Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

[14:10:26 CDT(-0500)] <EricDalquist> you have user attributes configured in portlet.xml?

[14:11:30 CDT(-0500)] <mmoayyed> I have the user attribute entries defined for both password and user.login.id. I have configured clearpass and I do see the log entry that indicates psw is being retrieved. I have also added the 'cachedPasswordUserInfoService' bean into the context

[14:11:46 CDT(-0500)] <mmoayyed> still, isEmpty() returns true

[14:11:51 CDT(-0500)] <EricDalquist> weird

[14:16:17 CDT(-0500)] <mmoayyed> I had no values for attributes, that would have been slightly better. But a completely empty map makes very suspicious. javadocs say the attribute needs to be supported by the current runtime system. Is there any other configuration that I should add?

[14:16:27 CDT(-0500)] <mmoayyed> *if I had...

[14:16:55 CDT(-0500)] <athena> that does seem odd - maybe set a breakpoint in CachedPasswordUserInfoService?

[14:17:07 CDT(-0500)] <athena> make sure it' sgetting called, retrieving successfully, etc.

[14:17:35 CDT(-0500)] <EricDalquist> so the parts that need to match are:

[14:17:35 CDT(-0500)] <EricDalquist> the attribute(s) are needed in portlet.xml

[14:17:35 CDT(-0500)] <EricDalquist> the same attribute(s) need to exist in personDirectory

[14:17:35 CDT(-0500)] <EricDalquist> the exception to the previous point are "special" attribute names for things like the cached password or CAS PGT

[14:27:22 CDT(-0500)] <mmoayyed> I definitely have uid, username and user.login.id defined in person-dir. This particular user does exist inside UP_USER. my person directory config for uPortalJdbcUserSource and uPortalAccountUserSource is identical to the copy of the file on github

[14:29:08 CDT(-0500)] <mmoayyed> just one thing though. I dont have to do anything special for CachedPasswordUserInfoService to kick in right? user info beans are all loaded by type?

[14:29:22 CDT(-0500)] <EricDalquist> I believe so

[14:29:29 CDT(-0500)] <mmoayyed> 'cause the documentation suggested that it needed to be added to somewhere else, but I suspect that's old

[14:29:33 CDT(-0500)] <EricDalquist> @Autowired

[14:29:33 CDT(-0500)] <EricDalquist> public void setUserInfoServices(Set<UserInfoService> userInfoServices) {

[14:29:37 CDT(-0500)] <EricDalquist> looks like it

[14:41:55 CDT(-0500)] <mmoayyed> does UP has a logging aspect, such that if I turn up the TRACE level, I'd be able to review method arguments on entering and exiting methods?

[14:42:56 CDT(-0500)] <EricDalquist> no

[14:43:03 CDT(-0500)] <EricDalquist> would be a nice thing to add

[14:43:05 CDT(-0500)] <mmoayyed> I am working on a remote linux server, and it's hooked up in a way that makes the build very difficult locally. If it's possibly, I'd rather debug the issue through logs

[14:43:24 CDT(-0500)] <mmoayyed> This is what CAS does:

[14:43:25 CDT(-0500)] <mmoayyed> http://grepcode.com/file/repo1.maven.org/maven2/org.jasig.cas/cas-server-core/3.4.11/org/jasig/cas/aspect/LogAspect.java#LogAspect

[14:44:01 CDT(-0500)] <mmoayyed> should be able to use the same exact code, with very little changes

[14:44:42 CDT(-0500)] <EricDalquist> yeah

[14:50:09 CDT(-0500)] <EricDalquist> athena: what was that JS templating library you were looking at?

[15:00:56 CDT(-0500)] <athena> backbone.js

[15:01:00 CDT(-0500)] <athena> builds on jQuery and underscore

[15:01:20 CDT(-0500)] <athena> been getting a lot of use on other projects at unicon - seems to have a pretty good reputation

[15:01:26 CDT(-0500)] <athena> playing with it right now, actually

[15:03:42 CDT(-0500)] <athena> has templating, events, some nice stuff

[15:04:09 CDT(-0500)] <EricDalquist> cool

[15:04:14 CDT(-0500)] <EricDalquist> just passed it on to nick

[15:04:29 CDT(-0500)] <EricDalquist> he was complaining about mockup up a week view of a calendar in html

[15:04:33 CDT(-0500)] <athena> i'm certainly not an expert, but people like matt have been doing a lot of work with it

[15:04:33 CDT(-0500)] <EricDalquist> (smile)

[15:04:58 CDT(-0500)] <athena> trying it out on the news portlet right now

[15:05:20 CDT(-0500)] <EricDalquist> cool