users@glassfish.java.net

Re: jdbc realm with web service security not working

From: <glassfish_at_javadesktop.org>
Date: Mon, 24 Mar 2008 02:04:47 PST

Hi,

  It appears you have configured the Application for two types of Authentication

1. BASIC auth in login-config
2. WSS Username/Password Authentication in the Service WSDL (via WS-Policy)

Is that True ?. Can you attach your WSDL ?.

The WSS Username/Password authentication does not pick the realm configuration from the login-config/realm definition because it is not intended to. So it falls back to the default realm for WSS username/password authentication.

If you need to specify the realm for WSS authentication then you would have to specify the realm currently in : sun-application.xml of your EAR.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-application PUBLIC '-//Sun Microsystems, Inc.//DTD Application Server 9.0 Java EE Application 5.0//EN' 'http://www.sun.com/software/appserver/dtds/sun-application_5_0-0.dtd'>
<sun-application>
   <realm>uddirealm</realm>
</sun-application>

In anycase it two types of authentication seems unnecessary. I have to see your WSDL to get an idea of where the issue is.

thanks
[Message sent by forum member 'kumarjayanti' (kumarjayanti)]

http://forums.java.net/jive/thread.jspa?messageID=265427