[I'm cc-ing my response here, for the record:]


Hi Mike,


I answered you already this morning, but I suspect my mail client died before the email actually got sent, so here is the reply again.


1) When I load the test.php, this is what I'm getting:

Command
Array ( [action] => lookup [object] => domain [attributes] => Array (
[domain] => domain.com [affiliate_id] => 12345 ) )
Warning: pack(): Type H: illegal hex digit in
/usr/local/www/data/opensrs-php/openSRS_base.php on line 668

This would be the result of not setting the password correctly in your openSRS.php (i.e. extended) class. Make sure your file looks something like:


class openSRS extends openSRS_base {

            var $USERNAME               = 'yourOpenSRSname';
            var $TEST_PRIVATE_KEY       = 'abcdef1234567890';
            var $LIVE_PRIVATE_KEY       = 'abcdef1234567890';

...

And that those passwords are the correct hexadecimal passwords generated by OpenSRS.


2) Authentication failed. I know the username is right. I know the private
key is right. I generated a new one from resellers.opensrs.net and
copy/pasted it in.

Because of problem #1, the PHP client can't send the password to OpenSRS. Thus you can't authenticate.


Fix problem #1, and #2 should go away.

- Colin



Reply via email to