Servlets and Authentication

I have a servlet that I call from a form in a database. The database has the ACL set so that everyone has to authenticate. On the first connection the user will authenticate with the server and be granted access to the database. How do I tell in my servlet who was just authenticated and more importantly how to create a session object for them to perform operations at the proper security level?

Subject: Servlets and Authentication

You can tell who was authenticated with “request.getRemoteUser()” method.A servlet always use the security level of the serverID

import java.io.*;

import java.util.*;

import javax.servlet.*;

import javax.servlet.http.*;

import lotus.domino.*;

public class DisponMB extends HttpServlet {

public void doGet(HttpServletRequest request, HttpServletResponse response) {

  try {

      NotesThread.sinitThread();

      String aux = request.getRemoteUser();