User management via WebUI vs ipmitool

Gunnar Mills gmills at linux.vnet.ibm.com
Thu Sep 26 07:42:11 AEST 2019


On 9/25/2019 5:20 AM, rgrs wrote:
>
> Is there any difference in user management from WebUI and ipmitool?
> When I add user via WebUI, a user is created and deleted immediately. 
> Not sure why.

The WebUI uses the Redfish API to create/update/delete users.
https://github.com/openbmc/phosphor-webui/blob/418db63c77aad03fe3401c7acd9f9792fab96a68/app/common/services/api-utils.js#L616

  Ratan or Richard do you know what is going on here?

> When I add user via IPMItool, users are getting added but WebUI user 
> configuration page is blank.

I thought IPMI and Redfish users were treated the same in 
phosphor-user-manager.

What version of OpenBMC?

>
> *_Logs:_*
> *journalctl (User creation with WebUI):*
> Sep 25 09:17:52 mybmc nslcd[1127]: [200854] <passwd="TestUser"> no 
> available LDAP server found: Server is unavailable: Transport endpoint 
> is not connected
> Sep 25 09:17:52 mybmc nslcd[1127]: [b127f8] <passwd=1000> no available 
> LDAP server found: Server is unavailable: Transport endpoint is not 
> connected
> Sep 25 09:17:52 mybmc useradd[1816]: new user: name=TestUser, 
> UID=1000, GID=100, home=/home/TestUser, shell=/bin/sh
> Sep 25 09:17:52 mybmc useradd[1816]: add 'TestUser' to group 'web'
> Sep 25 09:17:52 mybmc useradd[1816]: add 'TestUser' to group 'redfish'
> Sep 25 09:17:52 mybmc useradd[1816]: add 'TestUser' to group 'priv-admin'
> Sep 25 09:17:52 mybmc useradd[1816]: add 'TestUser' to group 'ipmi'
> Sep 25 09:17:52 mybmc useradd[1816]: add 'TestUser' to shadow group 'web'
> Sep 25 09:17:52 mybmc useradd[1816]: add 'TestUser' to shadow group 
> 'redfish'
> Sep 25 09:17:52 mybmc useradd[1816]: add 'TestUser' to shadow group 
> 'priv-admin'
> Sep 25 09:17:52 mybmc useradd[1816]: add 'TestUser' to shadow group 'ipmi'
> Sep 25 09:17:52 mybmc nscd[1092]: 1092 monitored file `/etc/passwd` 
> was written to
> Sep 25 09:17:52 mybmc nscd[1092]: 1092 monitored file `/etc/passwd` 
> was moved into place, adding watch
> Sep 25 09:17:52 mybmc nscd[1092]: 1092 monitored file `/etc/group` was 
> written to
> Sep 25 09:17:52 mybmc nscd[1092]: 1092 monitored file `/etc/group` was 
> moved into place, adding watch
> Sep 25 09:17:52 mybmc nscd[1092]: 1092 monitoring file `/etc/passwd` (27)
> Sep 25 09:17:52 mybmc nscd[1092]: 1092 monitoring directory `/etc` (2)
> Sep 25 09:17:52 mybmc nscd[1092]: 1092 monitoring file `/etc/group` (28)
> Sep 25 09:17:52 mybmc nscd[1092]: 1092 monitoring directory `/etc` (2)
> Sep 25 09:17:52 mybmc nscd[1092]: 1092 monitoring file `/etc/passwd` (27)
> Sep 25 09:17:52 mybmc nscd[1092]: 1092 monitoring directory `/etc` (2)
> Sep 25 09:17:52 mybmc nscd[1092]: 1092 monitoring file `/etc/group` (28)
> Sep 25 09:17:52 mybmc nscd[1092]: 1092 monitoring directory `/etc` (2)
> Sep 25 09:17:52 mybmc phosphor-user-manager[1119]: User created 
> successfully
> Sep 25 09:17:53 mybmc userdel[1822]: delete user 'TestUser'
> Sep 25 09:17:53 mybmc userdel[1822]: delete 'TestUser' from group 'web'
> Sep 25 09:17:53 mybmc userdel[1822]: delete 'TestUser' from group 
> 'redfish'
> Sep 25 09:17:53 mybmc userdel[1822]: delete 'TestUser' from group 
> 'priv-admin'
> Sep 25 09:17:53 mybmc userdel[1822]: delete 'TestUser' from group 'ipmi'
> Sep 25 09:17:53 mybmc userdel[1822]: delete 'TestUser' from shadow 
> group 'web'
> Sep 25 09:17:53 mybmc userdel[1822]: delete 'TestUser' from shadow 
> group 'redfish'
> Sep 25 09:17:53 mybmc userdel[1822]: delete 'TestUser' from shadow 
> group 'priv-admin'
> Sep 25 09:17:53 mybmc userdel[1822]: delete 'TestUser' from shadow 
> group 'ipmi'
> Sep 25 09:17:53 mybmc nscd[1092]: 1092 monitored file `/etc/passwd` 
> was written to
> Sep 25 09:17:53 mybmc nscd[1092]: 1092 monitored file `/etc/passwd` 
> was moved into place, adding watch
> Sep 25 09:17:53 mybmc nscd[1092]: 1092 monitored file `/etc/group` was 
> written to
> Sep 25 09:17:53 mybmc nscd[1092]: 1092 monitored file `/etc/group` was 
> moved into place, adding watch
> Sep 25 09:17:53 mybmc nscd[1092]: 1092 monitoring file `/etc/passwd` (29)
> Sep 25 09:17:53 mybmc nscd[1092]: 1092 monitoring directory `/etc` (2)
> Sep 25 09:17:53 mybmc nscd[1092]: 1092 monitoring file `/etc/group` (30)
> Sep 25 09:17:53 mybmc nscd[1092]: 1092 monitoring directory `/etc` (2)
> Sep 25 09:17:53 mybmc nscd[1092]: 1092 monitoring file `/etc/passwd` (29)
> Sep 25 09:17:53 mybmc nscd[1092]: 1092 monitoring directory `/etc` (2)
> Sep 25 09:17:53 mybmc nscd[1092]: 1092 monitoring file `/etc/group` (30)
> Sep 25 09:17:53 mybmc nscd[1092]: 1092 monitoring directory `/etc` (2)
> Sep 25 09:17:53 mybmc phosphor-user-manager[1119]: User deleted 
> successfully
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20190925/98da7979/attachment-0001.htm>


More information about the openbmc mailing list