Suresh,
It does not work:
$ curl "http://localhost:8096/client/api?command=ldapConfig&listall=true";
<?xml version="1.0" encoding="UTF-8"?><ldapconfigresponse
cloud-stack-version="4.1.1"><errorcode>431</errorcode><cserrorcode>9999</cserrorcode><errortext>Unable
to execute API command ldapconfig due to missing parameter
hostname</errortext></ldapconfigresponse>
According to
http://cloudstack.apache.org/docs/api/apidocs-4.1/root_admin/ldapConfig.html ,
this api call is not intended to show current config, you can only set new
one :(


On Tue, Aug 20, 2013 at 7:45 PM, Suresh Sadhu <suresh.sa...@citrix.com>wrote:

>
> Try this command to list your ldap config :
> http://localhost:8096/client/api?command=ldapConfig&listall=true
>
> regards
> sadhu
>
> -----Original Message-----
> From: Valery Ciareszka [mailto:valery.teres...@gmail.com]
> Sent: 20 August 2013 21:33
> To: users
> Subject: get ldap config
>
> Hi all.
>
> How do I get current ldap config ? I have not found proper api call -
> there are only calls to set up new ldap config or remove it.
>
> When I look into mysql database I see follolwing :
>
> mysql> select name,value from configuration where name like '%ldap%';
> +---------------------+----------------------------------------------+
> | name                | value                                        |
> +---------------------+----------------------------------------------+
> | ldap.dn             | OLshiesGXy8tVG5mGEs/Zg9G+KqqtVuTu9Y8LXCnxqk= |
> | ldap.hostname       | <somehashedvalueofhostname>             |
> | ldap.passwd         | <somehashedvalueofpassword>             |
> | ldap.port           | lOxYeuE8YsED2VKKq3oWpA==                     |
> | ldap.queryfilter    | 1Ar5wiQfIfjIYBP6ymo/cAQsQcq/N5N6             |
> | ldap.searchbase     | 0fIfg/1NJwjCMDmTBqv+BUDhHWIjSSrtVlSli+4Uyi4= |
> | ldap.truststore     | NULL                                         |
> | ldap.truststorepass | NULL                                         |
> | ldap.usessl         | r1C1NnD4Z4oTXErfIStJtg==                     |
> +---------------------+----------------------------------------------+
> 9 rows in set (0.00 sec)
>
> I tried to decode this as base64 but got unreadable binary output.
>
> Any thoughts ?
>
> used env - CS 4.1.0
>
> --
> Regards,
> Valery
>
> http://protocol.by/slayer
>



-- 
Regards,
Valery

http://protocol.by/slayer

Reply via email to