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

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



Cyrille Giquello wrote:
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).

Hi Cyrille,

thanks for solving it yourself.
The login() variant should work as well
returning the simple sessionId string.
I haven't tracked down the bug yet.

But as login() will be replaced with connect() in future
we could think of sending an additional qos attribute
<return>sessionId</return> with connect() to tell xmlBlaster
that we don't want a full blown xml return but
only the simple sessionId string.


See U later for a updated CVS perl demo.

Great! Please commit it yourself to xmlBlaster.

cu

Marcel


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








-- Marcel Ruff mailto:ruff at swand.lake.de http://www.lake.de/home/lake/swand/ http://www.xmlBlaster.org