Return-Path: Authentication-Results: lists.ozlabs.org; spf=none (mailfrom) smtp.mailfrom=linux.vnet.ibm.com (client-ip=148.163.156.1; helo=mx0a-001b2d01.pphosted.com; envelope-from=ratagupt@linux.vnet.ibm.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.vnet.ibm.com Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 46d0Hj36ChzDqPG for ; Tue, 24 Sep 2019 22:05:04 +1000 (AEST) Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x8OC4l65012117 for ; Tue, 24 Sep 2019 08:05:00 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2v7gh1e4dg-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 24 Sep 2019 08:04:56 -0400 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 24 Sep 2019 13:04:22 +0100 Received: from b06avi18878370.portsmouth.uk.ibm.com (9.149.26.194) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 24 Sep 2019 13:04:19 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x8OC4JbK29229440 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 24 Sep 2019 12:04:19 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id ED80F11C05E for ; Tue, 24 Sep 2019 12:04:18 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2D34011C054 for ; Tue, 24 Sep 2019 12:04:18 +0000 (GMT) Received: from [9.80.223.88] (unknown [9.80.223.88]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS for ; Tue, 24 Sep 2019 12:04:17 +0000 (GMT) Subject: Re: Change the password through the REST interface To: openbmc@lists.ozlabs.org References: <23454dbb362e4d5198d0733d0f49fda9@inspur.com> From: Ratan Gupta Date: Tue, 24 Sep 2019 17:34:14 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <23454dbb362e4d5198d0733d0f49fda9@inspur.com> Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-TM-AS-GCONF: 00 x-cbid: 19092412-4275-0000-0000-0000036A7576 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19092412-4276-0000-0000-0000387CED12 Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-09-24_05:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1909240123 X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Sep 2019 12:05:05 -0000 Hi, Which webserver(bmcweb/phosphor-rest-server) you are using it? If bmcweb then use the redfish API to change the password. Ratan On 24/09/19 7:08 AM, Xiaochao Ma (ÂíС³¬) wrote: > Hi, all > > I'm trying to change the user's password through the REST interface. > > Feedback is "The specified method cannot be found" > > The'busctl introspect'command also failed to find this method. > > What may be the cause? Is there any other way to change passwords through REST? > > $ curl -k -H "X-Auth-Token: $token" -H "Content-Type: application/json" > -d "{\"data\": [\"1qaz@WSX\"] }" -X POST > https://${bmc}/xyz/openbmc_project/user/xiao/action/SetPassword > { > "data": { > "description": "The specified method cannot be found" > }, > "message": "404 Not Found", > "status": "error" > } >