Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Designate Authentication

Hi,

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

-----------------------

Keystone Middleware

-----------------------

[keystone_authtoken] auth_host = designateexample.com 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 :

$url='openstackexample.com'; $port='5000'; $service='service'; $password='fe0e2bc9451a49d78131100173b4e931'; $username='designate';

$details=null; $url_send='http://'.$url.':'.$port.'/v2.0/tokens'; $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);

curl_close($curl);

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

Thanks for any help in advance.

Thank you,

Guru Prasad.K.V

click to hide/show revision 2
No.2 Revision

Designate Authentication

Hi,

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

:

-----------------------

#----------------------- # Keystone Middleware

-----------------------

Middleware #----------------------- [keystone_authtoken] auth_host = designateexample.com auth_port = 35357 auth_protocol = http admin_tenant_name = service admin_user = designate admin_password = fe0e2bc9451a49d78131100173b4e931

fe0e2bc9451a49d78131100173b4e931

=============================================================================

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

$url='openstackexample.com';
$port='5000';
$service='service';
$password='fe0e2bc9451a49d78131100173b4e931';
$username='designate';

$username='designate';

$details=null; $url_send='http://'.$url.':'.$port.'/v2.0/tokens'; $header1="Content-Type: application/json"; $header2="Accept: application/json"; $post='{"auth": {"tenantName": "'.$service.'", "passwordCredentials": {"username": "'.$username.'", "password": "'.$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);

$post);

$response = curl_exec($curl);

curl_close($curl);

curl_exec($curl); curl_close($curl);

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

Thanks for any help in advance.

Thank you,

Guru Prasad.K.V