Article ID: 124623, created on Feb 26, 2015, last review on Feb 26, 2015

  • Applies to:
  • H-Sphere 3.6.2
  • H-Sphere 3.6.3

Symptoms

Can we through the API select to use Long, PHP5.x-only MySQL password hash length?

Resolution

Yes, please use an example below:

There is hash length parameter 'oldPasswordHash' in MySQL API:

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:axis="http://axis.hsphere.psoft">
   <soapenv:Header/>
   <soapenv:Body>
      <axis:changePassword soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <at xsi:type="urn:AuthToken" xmlns:urn="urn:UserServices">
            <accountId xsi:nil="true"/>
           <login xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">username</login>
            <password xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">password</password>
            <role xsi:nil="true"/>
         </at>
         <name xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">user2</name>
         <newPassword xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">password2</newPassword>
         <oldPasswordHash xsi:type="soapenc:boolean" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">1</oldPasswordHash>
      </axis:changePassword>
   </soapenv:Body>
</soapenv:Envelope>

6b908665c0d1eca5bdd0141a32fd712a 6311ae17c1ee52b36e68aaf4ad066387 f213b9fa8759d57bee5d547445806fe7 2e39a5e5b1423cc126cf735bac076008 e5eac925e853cc7ef3f6055683c98fbb

Email subscription for changes to this article
Save as PDF