TeamSite 6.5
CS 2.0
Solaris 8
I took the code from
this post and started to play with CS via SOAP::Lite in PERL.
It all works fine... but I'm seeing something strange.
It appears that I can log in with
any valid user name
without a valid password.
I've tried it on the ts server box and remotely.. it appears I am able to read and set information via CS using the beginSessionUsingPassword method for access.
I've attached the sample modules and code I was testing with, it's setup to run on a local ts server.
Can someone verify that this is happening to them.
change this line (18)
# login
my $login = $access->beginSessionUsingPassword('someuser','master','','en', 'TeamSite','localhost');
to a valid user name, leaving the password field blank.
change this line (49)
$result = $filesys->fileSetPrivate($context,'/default/main/CWS/WORKAREA/Global/templatedata/sysAdmin/deployment/datacapture.cfg', 1);
to a valid vpath.
It should set that file to private, as well as list all the branch details as per the original example.
This is the soap packets that are sent for access
POST http://localhost/iw/services/cm/2.0/accessservice
Accept: text/xml
Accept: multipart/*
Content-Length: 805
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns
OAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns
OAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<namesp1:beginSessionUsingPassword xmlns:namesp1="http://content-services.org/cm/2.0/access">
<userName xsi:type="xsd:string">
validuser
</userName>
<roleName xsi:type="xsd:string">
master
</roleName>
<password xsi:type="xsd:string"/>
<locale xsi:type="xsd:string">
en
</locale>
<appContext xsi:type="xsd:string">
TeamSite
</appContext>
<serverName xsi:type="xsd:string">
localhost
</serverName>
</namesp1:beginSessionUsingPassword>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP/1.1 200 (OK)
Connection: close
Date: Fri, 04 Mar 2005 17:02:20 GMT
Server: Apache/1.3.31 (Unix) mod_fastcgi/2.4.2 mod_ssl/2.8.19 OpenSSL/0.9.7d
Content-Type: text/xml; charset="utf-8"
Client-Date: Fri, 04 Mar 2005 17:02:20 GMT
Client-Peer: 127.0.0.1:80
Client-Response-Num: 1
Client-Transfer-Encoding: chunked
EmbeddedSOAPServer: WASP-C++ Goldfish/4.5.1-iwn1 (SunOS sun4u 5.8 Generic_117350-08)
P3P: CP="CAO PSA OUR"
<SOAP-ENV:Envelope xmlns
OAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns
E="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<ns0:beginSessionUsingPasswordResponse xmlns:ns0="http://content-services.org/cm/2.0/access">
<beginSessionUsingPasswordReturn xsi:type="ns1:CSLoginInfo" xmlns:ns1="http://content-services.org/access/services2.0.xsd">
<context xsi:type="ns2:CSContext" xmlns:ns2="http://content-services.org/types/services2.0.xsd">
<locale xsi:type="xsd:string">
en
</locale>
<appContext xsi:type="xsd:string">
TeamSite
</appContext>
<sessionString xsi:type="xsd:string">
52616e646f6d49564ae00f33bad727d7cf020990ba0a8c9743ef433039e7613c43de2e15c585f085d60452c58b45737f
</sessionString>
<serverName xsi:type="xsd:string">
localhost
</serverName>
</context>
<userName xsi:type="xsd:string">
jc88151
</userName>
<roleName xsi:type="xsd:string">
master
</roleName>
<expirationDate xsi:type="xsd:dateTime">
2005-03-05T12:02:20-05:00
</expirationDate>
</beginSessionUsingPasswordReturn>
</ns0:beginSessionUsingPasswordResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
John Cuiuli