[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem Authenticate with Perl/Xml-Rpc



Ok,
I've found my error.

I did a call to authenticate.login. A bad idea.
With a call to authenticate.connect it's right now !
Great ;o)

Perhaps we should update the code demo/perl/xmlroc/hello.pl

Cyrille.




Cyrille Giquello a écrit :

> Hi all,
>
> After made some xmlBlaster's client in Java & Corba,
> I try to make one in Perl & Xml-Rpc.
>
> But I can't logging with another security plugin than the Simple one.
>
> For the same login's call, xmlBlaster trace 2 times a call to getClientPlugin().
> First time with the good plugin type, a second time with the Simple plugin type.
>
> Trace one is :
> CALL  SecurityPluginLoader.getClientPlugin] type=htpasswd version=1.0
> Second trace is :
> CALL  SecurityPluginLoader.getClientPlugin] type=null version=null
>
> Is it a normal behavior, or a indice for my problem ?
> Have you got a idea ?
>
> Cyrille.
>
> Following some code & trace :
>
> =================================
> Here is the QoS then the Call in Perl :
>
> $loginQos = "<qos>\n<securityService type=\"htpasswd\" version=\"1.0\">\r\n"
>             ."   <![CDATA[\r\n"
>             ."   <passwd>azerty</passwd>\r\n"
>             ."   <user>azerty</user>\r\n"
>             ."   ]]>\r\n"
>             ."</securityService>\n</qos>\r\n";
>  my $sessionId2 = $server2->call('authenticate.login', "azerty", "azerty", $loginQos, ""
> );
>
> =================================
> Xml-Rpc server in xmlBlaster answring
> Fault returned from XML RPC Server, fault code 0: java.lang.Exception:
> id=SecurityPluginManager.NoAcce
> ss reason=It\'s not allowed to use the standard security manager!
>
> =================================
> XmlBlaster trace is :
> TRACE SaxHandlerBase] Creating new SaxHandlerBase
> TRACE XmlQoSBase] Creating new XmlQoSBase
> CALL  SecurityPluginLoader.getClientPlugin] type=htpasswd version=1.0
> TRACE SecurityPluginLoader] Trying
> Class.forName('org.xmlBlaster.authentication.plugins.htpasswd.ClientPlugin')
> ...
> TRACE SecurityPluginLoader] Found I_ClientPlugin
> 'org.xmlBlaster.authentication.plugins.htpasswd.ClientPlugin'
> INFO  SecurityPluginLoader] Plugin
> 'org.xmlBlaster.authentication.plugins.htpasswd.ClientPlugin' successfully in
> itialized
> TRACE SaxHandlerBase] Creating new SaxHandlerBase
> CALL  SecurityPluginLoader.getClientPlugin] type=null version=null
> TRACE SecurityPluginLoader] Trying
> Class.forName('org.xmlBlaster.authentication.plugins.simple.ClientPlugin') ..

--
 Cyrille / Ktaland

-----------------------------------------
-      http://www.ktaland.com/
- Pour votre MAC: http://TOUSOFT.COM/
-----------------------------------------

Encryption | Duncan Campbell | DST | Blacklisted 411 | ECHELON | 2600 | PGP | Corsica | NSA