jsp - Waffle Principle username is Null -
my index.jsp
<% if (request.getuserprincipal() != null) { %> user principal name <b><%= request.getuserprincipal().getname() %></b>.<br> email <b><%= secur32util.getusernameex(secur32.extended_name_format.nameuserprincipal) %></b>. <br><br> <% } else { %> no user principal identified. <br><br> <% }
web.xml
<?xml version="1.0" encoding="iso-8859-1"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"> <filter> <filter-name>securityfilter</filter-name> <filter-class>waffle.servlet.negotiatesecurityfilter</filter-class> <init-param> <param-name>principalformat</param-name> <param-value>fqn</param-value> </init-param> <init-param> <param-name>roleformat</param-name> <param-value>both</param-value> </init-param> <init-param> <param-name>allowguestlogin</param-name> <param-value>true</param-value> </init-param> <init-param> <param-name>securityfilterproviders</param-name> <param-value> waffle.servlet.spi.negotiatesecurityfilterprovider waffle.servlet.spi.basicsecurityfilterprovider </param-value> </init-param> <init-param> <param-name>waffle.servlet.spi.negotiatesecurityfilterprovider/protocols</param-name> <param-value> negotiate ntlm </param-value> </init-param> <init-param> <param-name>waffle.servlet.spi.basicsecurityfilterprovider/realm</param-name> <param-value>wafflefilterdemo</param-value> </init-param> </filter> <filter-mapping> <filter-name>securityfilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <!-- system information helpful debugging --> <servlet> <servlet-name>waffleinfo</servlet-name> <servlet-class>waffle.servlet.waffleinfoservlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>waffleinfo</servlet-name> <url-pattern>/waffle</url-pattern> </servlet-mapping> </web-app>
i have incorporated waffle single sign on jsp application , not able username of person using webpage on client side . error no user principal identified. correspondes principle user being null. please new single sing on using waffle
Comments
Post a Comment