-
1. Re: Question Regarding LDAP UserCallBack Implementation
joploya Feb 15, 2013 9:41 AM (in response to roxy1987)1 of 1 people found this helpfulHi !
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
-
2. Re: Question Regarding LDAP UserCallBack Implementation
roxy1987 Feb 15, 2013 9:47 AM (in response to joploya)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.
-
3. Re: Question Regarding LDAP UserCallBack Implementation
joploya Feb 15, 2013 10:00 AM (in response to roxy1987)1 of 1 people found this helpfulI'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 :
and java code :
Hope this will help you.
-
4. Re: Question Regarding LDAP UserCallBack Implementation
roxy1987 Feb 15, 2013 10:05 AM (in response to joploya)Amazing. Thanks a million.