Ejemplo n.º 1
0
        /// <summary>
        /// Changes the user authentication driver and the password
        /// </summary>
        /// <returns><c>true</c>, if user auth was changed, <c>false</c> otherwise.</returns>
        /// <param name="id">Identifier.</param>
        /// <param name="newAuthDriver">New auth driver.</param>
        /// <param name="newPassword">New password.</param>
        public bool UserChangeAuth(int id, string newAuthDriver, string newPassword)
        {
            bool result = false;
            XmlRpcUserManagement xrum = (XmlRpcUserManagement)GetProxy(typeof(XmlRpcUserManagement));
            Array openNebulaReturnArr = xrum.oneUserChauth(this.SessionSHA, id, newAuthDriver, newPassword);

            result = (bool)openNebulaReturnArr.GetValue(0);
            return(result);
        }