You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Valery Ciareszka <va...@gmail.com> on 2013/08/13 12:37:15 UTC

api login

Hi all.

I'm using CS 4.1.0 and try to perform login api call, as described at
http://cloudstack.apache.org/docs/api/apidocs-4.1/root_admin/login.html
However, it does not work with md5. And it works if i send password in
plain text.

MD5 worked in cs 4.0.2, but now it works with plaintext only.

> api login username=admin password=md5hashofpasswordhere
HTTP Error 531:

> api login username=admin password=UNENCRYPTEDPASSWORDHERE
account = admin
domainid = e3bcebeb-9932-4448-aa9f-e2b613ba45e7
firstname = admin
lastname = cloud
registered = false
sessionkey = XPNqQLFq7T250YLXWgawnfH0GM8=
timeout = 1800
type = 1
userid = 79c285d1-54df-4169-84d1-72ff99f52998
username = admin


What's wrong with md5 auth in cs 4.1 ?


-- 
Regards,
Valery

http://protocol.by/slayer

Re: api login

Posted by Diego Spinola Castro <sp...@gmail.com>.
Hi Chiaradeep. As far as i could understand i have to add PlainText and Md5
into  /etc/cloudstack/management/components.xml.

So , my components.xml looks like:

<!-- Security adapters -->
<bean id="userAuthenticators" class="com.cloud.utils.component.AdapterList">
  <property name="Adapters">
    <list>
      <ref bean="PlainTextUserAuthenticator"/>
      <ref bean="MD5UserAuthenticator"/>
      <ref bean="LDAPUserAuthenticator"/>
    </list>
  </property>
</bean>


But i'm still can't login using md5. What is wrong?

Btw its new installation of CS 4.2.0



2013/8/13 Chiradeep Vittal <Ch...@citrix.com>

> See this discussion (esp. the response from Prasanna)
> http://markmail.org/thread/7r6ia3ckkt6fzlic
>
> -----Original Message-----
> From: Valery Ciareszka [mailto:valery.tereshko@gmail.com]
> Sent: Tuesday, August 13, 2013 3:37 AM
> To: users
> Subject: api login
>
> Hi all.
>
> I'm using CS 4.1.0 and try to perform login api call, as described at
> http://cloudstack.apache.org/docs/api/apidocs-4.1/root_admin/login.html
> However, it does not work with md5. And it works if i send password in
> plain text.
>
> MD5 worked in cs 4.0.2, but now it works with plaintext only.
>
> > api login username=admin password=md5hashofpasswordhere
> HTTP Error 531:
>
> > api login username=admin password=UNENCRYPTEDPASSWORDHERE
> account = admin
> domainid = e3bcebeb-9932-4448-aa9f-e2b613ba45e7
> firstname = admin
> lastname = cloud
> registered = false
> sessionkey = XPNqQLFq7T250YLXWgawnfH0GM8= timeout = 1800 type = 1 userid =
> 79c285d1-54df-4169-84d1-72ff99f52998
> username = admin
>
>
> What's wrong with md5 auth in cs 4.1 ?
>
>
> --
> Regards,
> Valery
>
> http://protocol.by/slayer
>

RE: api login

Posted by Chiradeep Vittal <Ch...@citrix.com>.
See this discussion (esp. the response from Prasanna)
http://markmail.org/thread/7r6ia3ckkt6fzlic

-----Original Message-----
From: Valery Ciareszka [mailto:valery.tereshko@gmail.com] 
Sent: Tuesday, August 13, 2013 3:37 AM
To: users
Subject: api login

Hi all.

I'm using CS 4.1.0 and try to perform login api call, as described at http://cloudstack.apache.org/docs/api/apidocs-4.1/root_admin/login.html
However, it does not work with md5. And it works if i send password in plain text.

MD5 worked in cs 4.0.2, but now it works with plaintext only.

> api login username=admin password=md5hashofpasswordhere
HTTP Error 531:

> api login username=admin password=UNENCRYPTEDPASSWORDHERE
account = admin
domainid = e3bcebeb-9932-4448-aa9f-e2b613ba45e7
firstname = admin
lastname = cloud
registered = false
sessionkey = XPNqQLFq7T250YLXWgawnfH0GM8= timeout = 1800 type = 1 userid = 79c285d1-54df-4169-84d1-72ff99f52998
username = admin


What's wrong with md5 auth in cs 4.1 ?


--
Regards,
Valery

http://protocol.by/slayer