Hi,
If i commented user name from client_policy.xml . It is giving
"username token notspcified" error in log. If uncommented than it asking
for password. My aim is to just access services from server using ssl.
Server required authentication username and passwd. I got cirtificate
from server and resendig to the server for autharization. I am also
attaching service.xml.
Thanks
Divakar
Dumindu Pallewela wrote:
divakar wrote:
Hi,
I commented user name from client_policy.xml . I is giving "user
name token notspcified" error in log.
That is an error logged from rampart.
I have one doubt why it is
accessing service.xml from
/usr/local/axis2c/services/sec_echo/service.xml. should it need for client.
I'm afraid I didn't get what you mean. If what you are asking is
whether a service needs a service.xml, of course it does.
HTH,
Dumindu.
<service name="sec_echo">
<parameter name="ServiceClass" locked="xsd:false">sec_echo</parameter>
<description>
This is a testing service , to test Rampart/C [Security] functionalities.
</description>
<!--Rampart configurations START -->
<module ref="rampart"/>
<!--Rampart configurations END -->
<operation name="CreateActivity">
<!--messageReceiver class="axis2_receivers" /-->
<parameter name="wsamapping">http://schemas.ggf.org/bes/2006/08/bes-factory/BESFactoryPortType/CreateActivity</parameter>
</operation>
<wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">
<wsp:ExactlyOne>
<wsp:All>
<sp:AsymmetricBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
<wsp:Policy>
<sp:InitiatorToken>
<wsp:Policy>
<sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never">
<wsp:Policy>
<sp:WssX509V3Token10/>
</wsp:Policy>
</sp:X509Token>
</wsp:Policy>
</sp:InitiatorToken>
<sp:RecipientToken>
<wsp:Policy>
<sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
<wsp:Policy>
<sp:WssX509V3Token10/>
</wsp:Policy>
</sp:X509Token>
</wsp:Policy>
</sp:RecipientToken>
<sp:AlgorithmSuite>
<wsp:Policy>
<sp:Basic256Rsa15/>
</wsp:Policy>
</sp:AlgorithmSuite>
<sp:Layout>
<wsp:Policy>
<sp:Strict/>
</wsp:Policy>
</sp:Layout>
<sp:IncludeTimestamp/>
<!--sp:EncryptBeforeSigning/-->
</wsp:Policy>
</sp:AsymmetricBinding>
<!--sp:SignedSupportingTokens xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
<wsp:Policy>
<sp:UsernameToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Always"/>
</wsp:Policy>
</sp:SignedSupportingTokens-->
<sp:Wss10 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
<wsp:Policy>
<sp:MustSupportRefKeyIdentifier/>
<sp:MustSupportRefEmbeddedToken/>
<sp:MustSupportRefIssuerSerial/>
</wsp:Policy>
</sp:Wss10>
<sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
<sp:Body/>
</sp:EncryptedParts>
<sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
<sp:Body/>
</sp:SignedParts>
<rampc:RampartConfig xmlns:rampc="http://ws.apache.org/rampart/c/policy">
<rampc:User>pbsgridworks\\administrator</rampc:User>
<rampc:TimeToLive>360</rampc:TimeToLive>
<rampc:EncryptionUser>b</rampc:EncryptionUser>
<rampc:PasswordType>Digest</rampc:PasswordType>
<rampc:PasswordCallbackClass>/usr/local/axis2c/bin/samples/rampart/callback/libpwcb.so</rampc:PasswordCallbackClass>
<!--rampc:ReceiverCertificate>AXIS2C_HOME/bin/samples/rampart/keys/bhome/alice_cert.cert</rampc:ReceiverCertificate-->
<rampc:Certificate>/home/divakar/Desktop/examples/murali.pem</rampc:Certificate>
<!--rampc:PrivateKey>AXIS2C_HOME/bin/samples/rampart/keys/bhome/bob_key.pem</rampc:PrivateKey-->
</rampc:RampartConfig>
</wsp:All>
</wsp:ExactlyOne>
</wsp:Policy>
</service>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]