User management via WebUI vs ipmitool

rgrs rgrs at protonmail.com
Wed Sep 25 20:20:16 AEST 2019


Hi All,

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.
When I add user via IPMItool, users are getting added but WebUI user configuration page is blank.

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

User creation with IPMItool:
➜  build git:(dev/0.7) ✗ ipmitool -H 10.110.142.107 -U root -P 0penBmc -I lanplus user set name 3 admin
➜  build git:(dev/0.7) ✗ ipmitool -H 10.110.142.107 -U root -P 0penBmc -I lanplus user enable 3
➜  build git:(dev/0.7) ✗ ipmitool -H 10.110.142.107 -U root -P 0penBmc -I lanplus user set password 3 password
IPMI command failed: Unspecified error
Set User Password command failed (user 3)
➜  build git:(dev/0.7) ✗ ipmitool -H 10.110.142.107 -U root -P 0penBmc -I lanplus user priv 3 4
Set Privilege Level command successful (user 3)
➜  build git:(dev/0.7) ✗ ipmitool -H 10.110.142.107 -U root -P 0penBmc -I lanplus user set password 3 password
IPMI command failed: Unspecified error
Set User Password command failed (user 3)
➜  build git:(dev/0.7) ✗ ipmitool -H 10.110.142.107 -U root -P 0penBmc -I lanplus user list
ID  Name      Callin  Link Auth IPMI Msg   Channel Priv Limit
1   root             false   true       true       ADMINISTRATOR
2   testuser         true    false      false      NO ACCESS
3   admin            true    false      false      ADMINISTRATOR
[...]
➜  build git:(dev/0.7) ✗ ~/mybin/openbmctool.py  -H 10.110.142.107 -U root -P 0penBmc local_users enableall
Attempting login...
Enabling admin
Enabling root
Enabling testuser

Web UI after user addition from ipmitool:
User account information
   No users exist in system

Thanks,
~raj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20190925/62dac43b/attachment.htm>


More information about the openbmc mailing list