View Single Post
  #5 (permalink)  
Old 01-20-2006, 02:34 PM
schemers schemers is offline
Zimbra Employee
 
Posts: 228
Default

Take a look at ZimbraServer/docs/preauth.txt (also attached) in the latest source release. It describes how to do exactly that.

I'll also attach a simple JSP that shows how to use preauth. The following line in the sample:

Code:
String redirect = generateRedirect(request, "user1");
Generates all the required preauth data to login as user1. You'd obviously want to change that to the user id you are preauth'ing. I modified this example slightly and didn't test it, so let me know if it doesn't work.
Attached Files
File Type: txt preauth.txt (9.6 KB, 1492 views)
File Type: txt preauth.jsp.txt (3.7 KB, 929 views)

Last edited by schemers : 02-14-2006 at 11:01 AM. Reason: attaching a file. fix example. attach example.
Reply With Quote