Hi!

When testing a deploy script, that works as expected with 4.0.2, on 4.1 I noticed that there was a need to pass plaintext passwords to createUser, rather then the documented MD5 hash. When passing MD5 hash, the password gets double MD5:hashed in 41.

There is new code in 4.1 that encodes password using the authenticator plugins (encode method);

cloudstack.4.1/server/src/com/cloud/user/AccountManagerImpl.java

       ...
       String encodedPassword = null;
        for (UserAuthenticator  authenticator : _userAuthenticators) {
            encodedPassword = authenticator.encode(password);
            if (encodedPassword != null) {
                break;
            }
        }
       ...

The 41 API docs still notes that an MD5 hash shall be passed in.
What am I missing here?

/Ove


--
Ove Everlid
System Administrator / Architect / SDN & Linux hacker
Mobile: +46706662363
Office: +4618656913 (note EMEA Time Zone)

Reply via email to