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

Re: [xmlblaster] xml-rpc & login with a securityService



Ok, i've found da problem !

I've to update hello.pl to change
$sessionId = $server->call('authenticate.login', "afdas", "xb12afdas", $loginQos, "");
to
$xmldata = $server->call('authenticate.connect', $loginQos );
then parsing $xmldata to look at a sessionId ...

So, I've just started some Perl package to handle that stuff (xmlBlaster/connectQos.pm).

See U later for a updated CVS perl demo.

Cyrille


Cyrille Giquello a écrit :

> Hi Marcel,
> Hi all.
>
> I try to use a auth plugin to login into xmlBlaster. Specially the htpasswd one.
>
> With java client there is no problem, it's working fine with the connectQos.
>
> But, with Perl & xml-rpc, only Simple authentification is working ....
>
> in the script demo/perl/xmlrpc/hello.pl I change the qos from
>
> my $loginQos = "<qos></qos>";
> $sessionId = $server->call('authenticate.login', "afdas", "xb12afdas", $loginQos, "");
>
> to
>
> my $loginQos = "<qos>\n\n<securityService type=\"htpasswd\" version=\"1.0\">\n"
>             ."   <![CDATA[\n"
>             ."   <user>afdas</user>\n"
>             ."   <passwd>xb12afdas</passwd>\n"
>             ."   ]]>\n"
>             ."</securityService>\n"
>             ."<ptp>true</ptp>\n"
>             ."<session timeout='3600000' maxSessions='6'>\n"
>             ."</session></qos>\n";
>
> $sessionId = $server->call('authenticate.login', "afdas", "xb12afdas", $loginQos, "");
>
> And it doesn't use plugin htpasswd, but the simple one !
>
> Thanks for comment ;o)
>
>  Cyrille.
>
> -----------------------------------------
> -      http://www.ktaland.com/
> - Pour votre MAC: http://TOUSOFT.COM/
> -----------------------------------------
>
> Encryption | Duncan Campbell | DST | Blacklisted 411 | ECHELON | 2600 | PGP | Corsica |
> NSA

--
 Cyrille / Ktaland

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

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