{"action":"created","issue":{"url":"https://api.github.com/repos/aerospike/aerospike-client-php/issues/41","labels_url":"https://api.github.com/repos/aerospike/aerospike-client-php/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/aerospike/aerospike-client-php/issues/41/comments","events_url":"https://api.github.com/repos/aerospike/aerospike-client-php/issues/41/events","html_url":"https://github.com/aerospike/aerospike-client-php/issues/41","id":69690199,"number":41,"title":"Aerospike Server Enterprise Edition (Authentication Issue)","user":{"login":"cqeescalona","id":11064217,"avatar_url":"https://avatars.githubusercontent.com/u/11064217?v=3","gravatar_id":"","url":"https://api.github.com/users/cqeescalona","html_url":"https://github.com/cqeescalona","followers_url":"https://api.github.com/users/cqeescalona/followers","following_url":"https://api.github.com/users/cqeescalona/following{/other_user}","gists_url":"https://api.github.com/users/cqeescalona/gists{/gist_id}","starred_url":"https://api.github.com/users/cqeescalona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cqeescalona/subscriptions","organizations_url":"https://api.github.com/users/cqeescalona/orgs","repos_url":"https://api.github.com/users/cqeescalona/repos","events_url":"https://api.github.com/users/cqeescalona/events{/privacy}","received_events_url":"https://api.github.com/users/cqeescalona/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aerospike/aerospike-client-php/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"rbotzer","id":133497,"avatar_url":"https://avatars.githubusercontent.com/u/133497?v=3","gravatar_id":"","url":"https://api.github.com/users/rbotzer","html_url":"https://github.com/rbotzer","followers_url":"https://api.github.com/users/rbotzer/followers","following_url":"https://api.github.com/users/rbotzer/following{/other_user}","gists_url":"https://api.github.com/users/rbotzer/gists{/gist_id}","starred_url":"https://api.github.com/users/rbotzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbotzer/subscriptions","organizations_url":"https://api.github.com/users/rbotzer/orgs","repos_url":"https://api.github.com/users/rbotzer/repos","events_url":"https://api.github.com/users/rbotzer/events{/privacy}","received_events_url":"https://api.github.com/users/rbotzer/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-04-20T21:55:05Z","updated_at":"2015-04-20T22:18:35Z","closed_at":null,"body":"Hi,\r\n\r\nI'm trying to connect to an Aerospike Server Enterprise Edition version 3.5.8 with the PHP client but I can't. Actually I was developing on a community server with no problem at all, but once I upgraded to enterprise I got the issue.\r\n\r\nThis is basically what I'm doing:\r\n\r\n ```php\r\n$config = [\r\n    \"hosts\" => [\r\n        [\"addr\" => \"127.0.0.1\", \"port\" => 3000]\r\n    ],\r\n    \"user\" => \"someuser\",\r\n    \"pass\" => \"somepassword\"\r\n];\r\n\r\n$db = new Aerospike($config);\r\n\r\nif (!$db->isConnected()) {\r\n  echo \"Failed to connect to the Aerospike server [{$db->errorno()}]: {$db->error()}\\n\";\r\n  exit(1);\r\n}\r\n\r\n$result = array();\r\n$callback = function ($record) use(&$result) {\r\n    $result = $record['bins'];\r\n};\r\n\r\n$where = \\Aerospike::predicateEquals(\"name\", \"test\");\r\n$status = $this->db->query('namespacetest', 'settest', $where, $callback);\r\n\r\nif ($status === \\Aerospike::OK) {\r\n   return $result;\r\n}\r\nreturn null;\r\n\r\n```\r\n\r\nActually it does connect to the server. \r\n\r\nThe problem is when does the query. I receive the following error code:\r\n\r\n**errorno = 80**\r\n**error = AEROSPIKE_NOT_AUTHENTICATED** (User must be authentication before performing database operations.)\r\n\r\nI've already created the user at the console using AQL commands. I granted permissions to this user. And I actually can read and write with this user (over the console only), but when try to use the client, just can't.\r\n\r\nThanks.\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aerospike/aerospike-client-php/issues/comments/94582343","html_url":"https://github.com/aerospike/aerospike-client-php/issues/41#issuecomment-94582343","issue_url":"https://api.github.com/repos/aerospike/aerospike-client-php/issues/41","id":94582343,"user":{"login":"rbotzer","id":133497,"avatar_url":"https://avatars.githubusercontent.com/u/133497?v=3","gravatar_id":"","url":"https://api.github.com/users/rbotzer","html_url":"https://github.com/rbotzer","followers_url":"https://api.github.com/users/rbotzer/followers","following_url":"https://api.github.com/users/rbotzer/following{/other_user}","gists_url":"https://api.github.com/users/rbotzer/gists{/gist_id}","starred_url":"https://api.github.com/users/rbotzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbotzer/subscriptions","organizations_url":"https://api.github.com/users/rbotzer/orgs","repos_url":"https://api.github.com/users/rbotzer/repos","events_url":"https://api.github.com/users/rbotzer/events{/privacy}","received_events_url":"https://api.github.com/users/rbotzer/received_events","type":"User","site_admin":false},"created_at":"2015-04-20T22:18:35Z","updated_at":"2015-04-20T22:18:35Z","body":"Hi Eidher. The security methods are not implemented yet for the PHP client, but are due soon."}}