I've created an IFrame Portlet to open my jsp page in User Application.
The page(test.jsp) have a code like this:

<% Identity i = new Identity();

In the case above I put a constant dn ("cn=admin,o=user"). But I need to
put this dynamic.

The problem is: I don't now how to get the dn of the user that is login.

Can I use some API? Portlet API?

Help me. Please. Thanks