Subject: The mailing list for listmasters using Sympa
List archive
[sympa-users] SOAP trusted applications: authentication fails with "Incorrect number of parameters"
- From: "Jahnke-Zumbusch, Dirk" <address@concealed>
- To: address@concealed
- Subject: [sympa-users] SOAP trusted applications: authentication fails with "Incorrect number of parameters"
- Date: Tue, 5 Sep 2017 11:44:42 +0200 (CEST)
Hi everyone,
I am experimenting with trusted applications and SOAP using
SYMPA 6.2.16 and this definition of trusted_applications.conf:
$ cat /etc/sympa/trusted_applications.conf
# this file is a sample for the description of remote trusted applications.
You may define multiple remote applications.
trusted_application
# name of the trusted application. This is the appname soap element
name foo_proxy
md5password MD5HASH
# the md5 digest of the application pasword. You can get it with sympa.pl
--md5_digest=<the password>
#
proxy_for_variables USER_EMAIL,remote_host,user_password
# the comma separated list of vars the trusted application can set.
I would like to find out, which lists a specific address is
subscribe to in my application. So I tested first using the
SYMPA SOAP client script:
$ /usr/share/sympa/bin/sympa_soap_client.pl
--soap_url https://my.listserver.url/sympasoap
--trusted_application=foo_proxy
--trusted_application_password=the_password
--service=which
--proxy_vars="address@concealed,remote_host=my.client.de,user_password=dummy"
and receive
Soap error :
detail = You should login first
faultcode = soap:Client
faultstring = User not authenticated
Ok, lets login first, get the session id etc.:
$ /usr/share/sympa/bin/sympa_soap_client.pl
--soap_url https://my.listserver.url/sympasoap
--trusted_application=foo_proxy
--trusted_application_password=the_password
--service=login
--proxy_vars="address@concealed,remote_host=my.client.de,user_password=dummy"
calling authenticateRemoteAppAndRun( foo_proxy, the_password,
remote_host=my.client.de,address@concealed,user_password=dummy,login,)
Soap error :
detail = Use : <HTTP host> <email> <password>
faultcode = soap:Client
faultstring = Incorrect number of parameters
/var/log/sympa.log states:
Sep 5 11:35:41 sympa-server sympasoap[24661]: notice Sympa::SOAP::login()
Sep 5 11:35:41 sympa-server sympasoap[24661]: err main::#88 >
Sympa::SOAP::Transport::handle#117 > SOAP::Transport::HTTP::CGI::handle#603 >
SOAP::Transport::HTTP::Server::handle#438 > SOAP::Server::handle#2826 >
(eval)#2860 > (eval)#2875 > Sympa::SOAP::authenticateRemoteAppAndRun#429 >
Sympa::SOAP::login#169 Email not defined
Sep 5 11:35:41 sympa-server sympasoap[24661]: err main::#88 >
Sympa::SOAP::Transport::handle#117 > SOAP::Transport::HTTP::CGI::handle#603 >
SOAP::Transport::HTTP::Server::handle#438 > SOAP::Server::handle#2826 >
(eval)#2860 > (eval)#2875 > Sympa::SOAP::authenticateRemoteAppAndRun#429 >
Sympa::SOAP::login#172 Passwd not defined
Sep 5 11:35:41 sympa-server sympasoap[24661]: err main::#88 >
Sympa::SOAP::Transport::handle#117 > SOAP::Transport::HTTP::CGI::handle#603 >
SOAP::Transport::HTTP::Server::handle#438 > SOAP::Server::handle#2826 >
(eval)#2860 > (eval)#2875 > Sympa::SOAP::authenticateRemoteAppAndRun#429 >
Sympa::SOAP::login#177 Incorrect number of parameters
So Email and Passed are not defined. But how do I specify them correctly?
Now I am somewhat lost as I have no clue, what I did wrong.
Any ideas from your side?
NB: using the SOAP client directly works fine:
$ /usr/share/sympa/bin/sympa_soap_client.pl
--soap_url https://my.listserver.url/sympasoap
--address@concealed
--user_password=super-duper-password
--service=which
results in
cookie : Set-Cookie3: sympa_session=......; path="/"; domain=xxxx; path_spec;
expires="2017-09-05 09:50:51Z"; version=1
LOGIN....
0
'c43b22a3d81ebefd6d87d49c1767751931'
AuthenticateAndRun service=which;(session_id=.....)....
0
....
Cheers,
Dirk
--
Dirk Jahnke-Zumbusch Deutsches Elektronen-Synchrotron DESY
IT Information Fabrics Member of the Helmholtz Association
D-22603 Hamburg Notkestrasse 85 / 22607 Hamburg
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature
- [sympa-users] SOAP trusted applications: authentication fails with "Incorrect number of parameters", Jahnke-Zumbusch, Dirk, 09/05/2017
Archive powered by MHonArc 2.6.19+.