Jump to content

Zendesk


Recommended Posts

  • 1 year later...

Hi everyone - the Zendesk integration at

 

http://blog.admod.com/2011/09/20/zendesk-remote-authentication-via-whmcs-with-autologin/

 

Works very nicely. However, to get it to work with WHMCS 5.1.x and later, you will need to change the method employed to calculate the value for $_SESSION['upw']

 

Whereas before it was derived as:

 

md5($results2['userid'] . $results2['password'] . $_SERVER['REMOTE_ADDR'])

 

It must now be derived as:

 

sha1($results2['userid'] . $results2['password'] . $_SERVER['REMOTE_ADDR'] . substr(sha1($cc_encryption_hash),0,20))

 

$cc_encryption_hash is a salt value that is in the main whmcs configuration.php so just include that file at the top of the login script.

 

Just hunt through the login script for 'md5' and you will find the two locations where you must change the code.

 

Happy days! :lol:

Link to comment
Share on other sites

  • 3 months later...

Hi, With

sha1($results2['userid'] . $results2['password'] . $_SERVER['REMOTE_ADDR'] . substr(sha1($cc_encryption_hash),0,20))

 

i don't know where to put that.

 

$cc_encryption_hash is a salt value that is in the main whmcs configuration.php so just include that file at the top of the login script.

 

can you be more specific?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated