Discussion:
[jboss-user] [jBPM] - Question Regarding LDAP UserCallBack Implementation
roxy1987
2013-02-14 21:13:46 UTC
Permalink
roxy1987 [https://community.jboss.org/people/roxy1987] created the discussion

"Question Regarding LDAP UserCallBack Implementation"

To view the discussion, visit: https://community.jboss.org/message/797778#797778

--------------------------------------------------------------
Hi,

With the default implementation of UserCallBack, I believe, jBPM checks the table ORGANIZATIONALENTITY to see if the user is valid or not.

Now if I implement callBack with LDAP server, do I need to worry about putting the user information in the table ORGANIZATIONALENTITY??
I am concerned that if I use LDAP directly, and if I leave the table empty, there may be some feature/API which look for user information in the database.

Regards.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/797778#797778]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Sandra Renaud
2013-02-15 14:41:46 UTC
Permalink
Sandra Renaud [https://community.jboss.org/people/joploya] created the discussion

"Re: Question Regarding LDAP UserCallBack Implementation"

To view the discussion, visit: https://community.jboss.org/message/797926#797926

--------------------------------------------------------------
Hi !

This is my turn to reply to you.

I have implemented my own userGroupCallBack with ldap. And for this part it works more or less. When it checks a user existence, it automatically added him (or the group) in the database.
But, when the user already exists in the database it still tries to insert it and rise a MySQL duplicate primary key error. But this error desn't lock the process.

So you don't need to load users and groups in the table.

Regards,
Sandra
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/797926#797926]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
roxy1987
2013-02-15 14:47:49 UTC
Permalink
roxy1987 [https://community.jboss.org/people/roxy1987] created the discussion

"Re: Question Regarding LDAP UserCallBack Implementation"

To view the discussion, visit: https://community.jboss.org/message/797928#797928

--------------------------------------------------------------
:) Thanks Sandra.
I can handle the exception as long as it is not getting in the way of the process. WIll it be okay for you to share your call back class with me?

Regards.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/797928#797928]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Sandra Renaud
2013-02-15 15:00:49 UTC
Permalink
Sandra Renaud [https://community.jboss.org/people/joploya] created the discussion

"Re: Question Regarding LDAP UserCallBack Implementation"

To view the discussion, visit: https://community.jboss.org/message/797935#797935

--------------------------------------------------------------
I'm sorry but my userGroupCallbackImpl won't be very usefull for you because I use a common lib to access the ldap server in my job. So this is not the example you need.

But Mauricio Salatino has made a good example linked to his book :
https://github.com/Salaboy/jBPM5-Developer-Guide/blob/master/chapter_07/jBPM5-HumanTaskAndProcesses/src/test/resources/jbpm.usergroup.callback.properties https://github.com/Salaboy/jBPM5-Developer-Guide/blob/master/chapter_07/jBPM5-HumanTaskAndProcesses/src/test/resources/jbpm.usergroup.callback.properties
and java code :
https://github.com/Salaboy/jBPM5-Developer-Guide/tree/master/chapter_07/jBPM5-HumanTaskAndProcesses/src/main/java/com/salaboy/jbpm5/dev/guide/ldap https://github.com/Salaboy/jBPM5-Developer-Guide/tree/master/chapter_07/jBPM5-HumanTaskAndProcesses/src/main/java/com/salaboy/jbpm5/dev/guide/ldap

Hope this will help you.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/797935#797935]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
roxy1987
2013-02-15 15:05:45 UTC
Permalink
roxy1987 [https://community.jboss.org/people/roxy1987] created the discussion

"Re: Question Regarding LDAP UserCallBack Implementation"

To view the discussion, visit: https://community.jboss.org/message/797937#797937

--------------------------------------------------------------
Amazing. Thanks a million. :)
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/797937#797937]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...