<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<div class="moz-cite-prefix">On 9/25/2019 5:20 AM, rgrs wrote:<br>
</div>
<blockquote type="cite"
cite="mid:cxuypplMD4p5tYjtGnd1FnZAXWYwCuvRn7U6qlQ_E8fkPDnIiesmEvIbWSz4GAMH7Zm70_WwNHHS77ykmQKJsRVT6tXvOeFL4vexQ250E0I=@protonmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div><br>
</div>
<div>Is there any difference in user management from WebUI and
ipmitool?<br>
</div>
<div>When I add user via WebUI, a user is created and deleted
immediately. Not sure why.<br>
</div>
</blockquote>
<p>The WebUI uses the Redfish API to create/update/delete users. <br>
<a class="moz-txt-link-freetext" href="https://github.com/openbmc/phosphor-webui/blob/418db63c77aad03fe3401c7acd9f9792fab96a68/app/common/services/api-utils.js#L616">https://github.com/openbmc/phosphor-webui/blob/418db63c77aad03fe3401c7acd9f9792fab96a68/app/common/services/api-utils.js#L616</a><br>
</p>
<p> Ratan or Richard do you know what is going on here?</p>
<blockquote type="cite"
cite="mid:cxuypplMD4p5tYjtGnd1FnZAXWYwCuvRn7U6qlQ_E8fkPDnIiesmEvIbWSz4GAMH7Zm70_WwNHHS77ykmQKJsRVT6tXvOeFL4vexQ250E0I=@protonmail.com">
<div>When I add user via IPMItool, users are getting added but
WebUI user configuration page is blank.<br>
</div>
</blockquote>
<br>
I thought IPMI and Redfish users were treated the same in
phosphor-user-manager.<br>
<br>
What version of OpenBMC?<br>
<br>
<blockquote type="cite"
cite="mid:cxuypplMD4p5tYjtGnd1FnZAXWYwCuvRn7U6qlQ_E8fkPDnIiesmEvIbWSz4GAMH7Zm70_WwNHHS77ykmQKJsRVT6tXvOeFL4vexQ250E0I=@protonmail.com">
<div><br>
</div>
<div><b><u>Logs:</u></b><br>
</div>
<div><b>journalctl (User creation with WebUI):</b><br>
</div>
<div>Sep 25 09:17:52 mybmc nslcd[1127]: [200854]
<passwd="TestUser"> no available LDAP server found: Server
is unavailable: Transport endpoint is not connected<br>
</div>
<div>Sep 25 09:17:52 mybmc nslcd[1127]: [b127f8]
<passwd=1000> no available LDAP server found: Server is
unavailable: Transport endpoint is not connected<br>
</div>
<div>Sep 25 09:17:52 mybmc useradd[1816]: new user: name=TestUser,
UID=1000, GID=100, home=/home/TestUser, shell=/bin/sh<br>
</div>
<div>Sep 25 09:17:52 mybmc useradd[1816]: add 'TestUser' to group
'web'<br>
</div>
<div>Sep 25 09:17:52 mybmc useradd[1816]: add 'TestUser' to group
'redfish'<br>
</div>
<div>Sep 25 09:17:52 mybmc useradd[1816]: add 'TestUser' to group
'priv-admin'<br>
</div>
<div>Sep 25 09:17:52 mybmc useradd[1816]: add 'TestUser' to group
'ipmi'<br>
</div>
<div>Sep 25 09:17:52 mybmc useradd[1816]: add 'TestUser' to shadow
group 'web'<br>
</div>
<div>Sep 25 09:17:52 mybmc useradd[1816]: add 'TestUser' to shadow
group 'redfish'<br>
</div>
<div>Sep 25 09:17:52 mybmc useradd[1816]: add 'TestUser' to shadow
group 'priv-admin'<br>
</div>
<div>Sep 25 09:17:52 mybmc useradd[1816]: add 'TestUser' to shadow
group 'ipmi'<br>
</div>
<div>Sep 25 09:17:52 mybmc nscd[1092]: 1092 monitored file
`/etc/passwd` was written to<br>
</div>
<div>Sep 25 09:17:52 mybmc nscd[1092]: 1092 monitored file
`/etc/passwd` was moved into place, adding watch<br>
</div>
<div>Sep 25 09:17:52 mybmc nscd[1092]: 1092 monitored file
`/etc/group` was written to<br>
</div>
<div>Sep 25 09:17:52 mybmc nscd[1092]: 1092 monitored file
`/etc/group` was moved into place, adding watch<br>
</div>
<div>Sep 25 09:17:52 mybmc nscd[1092]: 1092 monitoring file
`/etc/passwd` (27)<br>
</div>
<div>Sep 25 09:17:52 mybmc nscd[1092]: 1092 monitoring directory
`/etc` (2)<br>
</div>
<div>Sep 25 09:17:52 mybmc nscd[1092]: 1092 monitoring file
`/etc/group` (28)<br>
</div>
<div>Sep 25 09:17:52 mybmc nscd[1092]: 1092 monitoring directory
`/etc` (2)<br>
</div>
<div>Sep 25 09:17:52 mybmc nscd[1092]: 1092 monitoring file
`/etc/passwd` (27)<br>
</div>
<div>Sep 25 09:17:52 mybmc nscd[1092]: 1092 monitoring directory
`/etc` (2)<br>
</div>
<div>Sep 25 09:17:52 mybmc nscd[1092]: 1092 monitoring file
`/etc/group` (28)<br>
</div>
<div>Sep 25 09:17:52 mybmc nscd[1092]: 1092 monitoring directory
`/etc` (2)<br>
</div>
<div>Sep 25 09:17:52 mybmc phosphor-user-manager[1119]: User
created successfully<br>
</div>
<div>Sep 25 09:17:53 mybmc userdel[1822]: delete user 'TestUser'<br>
</div>
<div>Sep 25 09:17:53 mybmc userdel[1822]: delete 'TestUser' from
group 'web'<br>
</div>
<div>Sep 25 09:17:53 mybmc userdel[1822]: delete 'TestUser' from
group 'redfish'<br>
</div>
<div>Sep 25 09:17:53 mybmc userdel[1822]: delete 'TestUser' from
group 'priv-admin'<br>
</div>
<div>Sep 25 09:17:53 mybmc userdel[1822]: delete 'TestUser' from
group 'ipmi'<br>
</div>
<div>Sep 25 09:17:53 mybmc userdel[1822]: delete 'TestUser' from
shadow group 'web'<br>
</div>
<div>Sep 25 09:17:53 mybmc userdel[1822]: delete 'TestUser' from
shadow group 'redfish'<br>
</div>
<div>Sep 25 09:17:53 mybmc userdel[1822]: delete 'TestUser' from
shadow group 'priv-admin'<br>
</div>
<div>Sep 25 09:17:53 mybmc userdel[1822]: delete 'TestUser' from
shadow group 'ipmi'<br>
</div>
<div>Sep 25 09:17:53 mybmc nscd[1092]: 1092 monitored file
`/etc/passwd` was written to<br>
</div>
<div>Sep 25 09:17:53 mybmc nscd[1092]: 1092 monitored file
`/etc/passwd` was moved into place, adding watch<br>
</div>
<div>Sep 25 09:17:53 mybmc nscd[1092]: 1092 monitored file
`/etc/group` was written to<br>
</div>
<div>Sep 25 09:17:53 mybmc nscd[1092]: 1092 monitored file
`/etc/group` was moved into place, adding watch<br>
</div>
<div>Sep 25 09:17:53 mybmc nscd[1092]: 1092 monitoring file
`/etc/passwd` (29)<br>
</div>
<div>Sep 25 09:17:53 mybmc nscd[1092]: 1092 monitoring directory
`/etc` (2)<br>
</div>
<div>Sep 25 09:17:53 mybmc nscd[1092]: 1092 monitoring file
`/etc/group` (30)<br>
</div>
<div>Sep 25 09:17:53 mybmc nscd[1092]: 1092 monitoring directory
`/etc` (2)<br>
</div>
<div>Sep 25 09:17:53 mybmc nscd[1092]: 1092 monitoring file
`/etc/passwd` (29)<br>
</div>
<div>Sep 25 09:17:53 mybmc nscd[1092]: 1092 monitoring directory
`/etc` (2)<br>
</div>
<div>Sep 25 09:17:53 mybmc nscd[1092]: 1092 monitoring file
`/etc/group` (30)<br>
</div>
<div>Sep 25 09:17:53 mybmc nscd[1092]: 1092 monitoring directory
`/etc` (2)<br>
</div>
<div>Sep 25 09:17:53 mybmc phosphor-user-manager[1119]: User
deleted successfully<br>
</div>
<div><br>
</div>
</blockquote>
</body>
</html>