Closed GoogleCodeExporter closed 9 years ago
Attached the proposed enhancement in code.
Original comment by sebastia...@gmail.com
on 6 May 2013 at 6:01
Attachments:
Thanks for the enhancement (and code). Unfortunately this won't work well due
to an upcoming patch that removes allUserAttributes from the UserInterfaceBean.
The best bet is to use the pwmSession.getSessionManager().getActor() to get a
chai user of the actor to read the attributes.
Also, Changing the interface of the External methods is undesirable. And
lastly, an ideal substitute would be to replace the External methods with
outbound webservice/rest calls. The code for PWM is really to volatile to
offer Java interfaces.
Original comment by jrivard
on 6 May 2013 at 6:09
Ah that is a pity, but understandable. I guess the UserInterfaceBean gets
adjusted to make the fetching of LDAP attributes more dynamically? You are
right that Interfaces shouldn't normally change, but I chose the easy way out
;) REST is indeed a more modular approach and I'll have a look at it, but takes
significantly more time to code than the proposed patch to ExternalRuleMethod
interface.
Original comment by sebastia...@gmail.com
on 6 May 2013 at 6:32
I had a look at pwmSession.getSessionManager().getActor(). Seems like a viable
solution. However, in the External Class I don't see any way to get the
pwmSession of that user, which is required for the getActor method. Could you
give an example how I would accomplish that? Thanks!
Original comment by sebastia...@gmail.com
on 8 May 2013 at 5:59
Original issue reported on code.google.com by
sebastia...@gmail.com
on 5 May 2013 at 10:04