Designate Authentication

asked 2014-04-26 12:17:29 -0500

Guru gravatar image

updated 2014-04-26 12:34:04 -0500

larsks gravatar image


I'm using designate, as per designate configuration file it uses keystone for authentication. Please see that part of configuraion file below :

# Keystone Middleware
auth_host =
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = designate
admin_password = fe0e2bc9451a49d78131100173b4e931

I used the normal openstack keystone authentication but that failed. Please see the keystone authentication code that I used below :


$header1="Content-Type: application/json";
$header2="Accept: application/json";
$post='{"auth": {"tenantName": "'.$service.'", "passwordCredentials": {"username": "'.$username.'", "password": "'.$password.'"}}}';

$curl = curl_init();
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_URL, $url_send);
curl_setopt($curl, CURLOPT_HTTPHEADER,array($header1,$header2));
curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $post);

$response = curl_exec($curl);

Can anyone please guide me on how to make authentication call using designate api?

edit retag flag offensive close merge delete


I notice that the hostname and port in your code differ from the configuration file example at the beginning of the question. While I realize that you are trying to obfuscate hostnames here, it doesn't help us if you are inconsistent in your obfuscation. And the port number is significant.

larsks gravatar imagelarsks ( 2014-04-26 12:36:16 -0500 )edit

...although for basic authentication either port should work. Can you get a debug trace from libcur to see what is actually being sent? In what fashion is the authentication request failing? Are there any errors in your keystone logs that correspond to the request?

larsks gravatar imagelarsks ( 2014-04-26 12:38:51 -0500 )edit

Hi larsks,

 Thank you for the reply. I will check this and get back.

Thank You,

Guru Prasad.K.V

Guru gravatar imageGuru ( 2014-04-29 02:19:16 -0500 )edit