| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As local and remote users are managed by separate daemon,it is difficult
for application to query and get the user authorization.
In order to simplify it in application level, a one stop D-Bus API
method was proposed which will be used by all applications
(irrespective of local / remote user) except IPMI.
This simplifies the application side. Same is documented in
https://github.com/openbmc/docs/blob/master/user_management.md#authorization-flow-except-ipmi
this method returns a dictionary of user properties.
UserPrivilege -> privilege of the user
UserGroups -> list of groups this user belongs to
UserEnabled -> user enabled state
UserLockedForFailedAttempt -> user locked state
RemoteUser -> remote or local user
this commit has GetUserInfo dbus api implementation
https://gerrit.openbmc-project.xyz/#/c/openbmc/phosphor-user-manager/+/18132/
Change-Id: Idbf933447dcf98623cf1f29606d24ea69ec44971
Signed-off-by: raviteja-b <raviteja28031990@gmail.com>
|
|
|
|
|
|
|
|
| |
This reverts commit e5c0eef46a4fc09256332bf3afe699d60aaebbb3.
The backend is not ready for this.
Change-Id: I1ed768f904e9297407996a8e92d8105b636dd172
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
User can provide these properties to configure the LDAP.
UsernameAttribute:
In certain ldap server userid is "cn" and in other ldap
server it becomes "uid"
GroupNameAttribute:
In certain ldap server groupid is gid and in other ldap
server is PrimaryGroupID etc.
Both properties exist in the LDAP server and admin of LDAP
server can opt for any property to specify the userID
and same is true for other properties(GroupName).
It is aligned with redfish also.
https://redfish.dmtf.org/schemas/AccountService.v1_3_1.json
Change-Id: I3689d03bd80f62cc26fe840a9176875499c87554
Signed-off-by: Ratan Gupta <ratagupt@linux.vnet.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
xyz.openbmc_project.Certs.Certificate provides the properties
for the specific certificates.
Currently KeyUsage property limited to support
ClientAuthentication, KeyCertSign, ServerAuthentication purpose.
Properties are based on the Redfish (DSP2046: 2018.3)
certificate schema.
Change-Id: I2bf74cb43ebb27d1aa6cf570c7f06b148b86ea49
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
|
|
|
|
|
|
|
|
| |
Right now we can only set an IPv4 gateway. To support dual stack systems
we need a way to have an IPv6 gateway.
Change-Id: Id27f29093a1f605fd460ac22f73abdaeb1f85ff6
Signed-off-by: William A. Kennington III <wak@google.com>
|
|
|
|
|
|
|
|
| |
Use the defaults in the pkg check where the default error message is
sufficient to identify which package is missing.
Change-Id: I833dbe87b8ac85c6ab295ba1148184544eca0999
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
With the addition of the Control.ThermalMode interface, a supported list
of thermal modes and the current mode being used by the thermal control
application is available. A current mode of "Default" is always provided
by the chosen thermal control application. Then the thermal control
application is configured to populate the list of supported modes for
the given platform. This allows flexibility in the thermal control
application to provide only the modes that it supports for any given
platform and the names chosen for those modes.
Requires commits:
openbmc/sdbusplus f0dd3b5a3c6c54b4f38844b573e3f157f8064088
(https://gerrit.openbmc-project.xyz/18073)
Change-Id: Ieff3ff6e328bfa2e850f52abaad6409b362ae7e7
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
|
|
|
|
|
|
|
|
| |
To enable support for managing static neighbor entries in the BMC
neighbor table.
Change-Id: I2f3b6abe973753434433efb849d38d8d5315ed76
Signed-off-by: William A. Kennington III <wak@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
methods:
forcePowerOff
properties:
PGood
State
Note:
All the interfaces are the low level interfaces to handle hardware.
And provides supporting the high level interfaces like state-manager.
They are the common interfaces and all the platforms implement them all.
Change-Id: I6d90439879f5a4940cad03fd588dd233f81f2802
Signed-off-by: Kuiying Wang <kuiying.wang@intel.com>
|
|
|
|
|
|
|
|
| |
It is used to disable/enable reset/power button.
Set front panel button enables command depends on this.
Change-Id: I4cb3dabce889376d87dde570c56a456835a9a66e
Signed-off-by: Kuiying Wang <kuiying.wang@intel.com>
|
|
|
|
|
|
|
|
|
| |
The use case is for the ipmi-fru-parser to store the chassis type
from IPMI FRU data in the inventory. The phosphor-host-ipmid can use
the field when generating IPMI FRU data for the host.
Change-Id: Ic9d636ae8f3a87ee3448345b8260ad32f10d381e
Signed-off-by: Oskar Senft <osk@google.com>
|
|
|
|
|
|
|
|
|
|
|
| |
The name of the num should not contain the word Field as the type is not
a field, just the use case for the timer.
The properties on the watchdog object should be clear as to being the
current or last expired timer use.
Change-Id: Iee21fbfa97e5ef0634b3f806a43d7d3e66288661
Signed-off-by: William A. Kennington III <wak@google.com>
|
|
|
|
|
|
|
|
|
| |
Tpm interface with no attributes is used to determine
the Trusted Platform Module(TPM) FRU type during discovery
of inventory objects and during property updates.
Change-Id: I766dea125ee3d9c5638fdce9f69351505a334f4b
Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
The IPMI watchdog timer use field is used to indicate
the current timer use assigned to the watchdog timer,
timer expiration flags is used to indicate the current
timer expiration flags used by the timer.
Add them as a dbus property, IPMI set/get watchdog commands will use it.
Change-Id: I549a97a13a398fd0815a3865004c6880010aa08e
Signed-off-by: Yong Li <yong.b.li@linux.intel.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The interfaces sets the default value for a enum property to 0, which
causes the generated server.hpp file contains code like:
SearchScope _lDAPSearchScope = SearchScope::0;
Fix it by specify the enum value instead of 0.
Tested: Verify the generated code becomes below and pass the build.
SearchScope _lDAPSearchScope = SearchScope::sub;
Change-Id: I509b6968d32dec38d1592103df9821b2fc99b5d6
Signed-off-by: Lei YU <mine260309@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
D-Bus interface exposing properties for service (RMCP+, web, SSH) like
state, port to configure the same. Common interface
to support both systemctl or iptables implementation.
Service manager daemon (new daemon) will expose objects with these
interfaces.
Change-Id: I96941cf3c762fe069f13c1895fd840d7ab87e95c
Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>
Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
|
|
|
|
|
|
|
|
|
|
|
| |
This interface is used for get/set chassis capabilities IPMI commands.
The current implementation for the commands uses hard-coded values,
add this interface to store the capabilities,
and save them into settings-manager.
Change-Id: I74ba96f4152623781d891efce27fa3594ace7be3
Signed-off-by: Yong Li <yong.b.li@linux.intel.com>
|
|
|
|
|
|
|
|
| |
Setting properties in this interface could fail to due to internal
failures.
Change-Id: I8bc84dcf105ece0f5322315d02dea7fa919444fc
Signed-off-by: Ratan Gupta <ratagupt@linux.vnet.ibm.com>
|
|
|
|
|
|
|
|
| |
Setting properties in this interface could fail to due to internal
failures.
Change-Id: Ibec355b3d6adf5d46651e9d90aa542b9cde47a88
Signed-off-by: Ratan Gupta <ratagupt@linux.vnet.ibm.com>
|
|
|
|
|
|
|
|
|
|
| |
Secure property is not required as URI itself tells that whether the
configured LDAP is secure or not.
For secure server, URI would be ldaps://<hostname/ip> and for nonsecure
ldap server URI would be ldap://<hostname/ip>
Change-Id: Ieb1b1466f0da8f6bb5695595fab8ec1e5b0e9075
Signed-off-by: Ratan Gupta <ratagupt@linux.vnet.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove LDAP Bind password from the Ldap.Config interface. It is
unnecessary and undesirable to store this password in a D-Bus object.
The Ldap.Create interface still accepts the Bind password, as before. If
an admin has to change the Ldap bind password, they'd need to recreate
the LDAP config.
Change-Id: Ie5a8002bed3fd8c57500af588d9b010190f5ff9b
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
The Config interface and Create interface can throw a
"NoCACertificate" error.
For example: If LDAP server's CA certificate not provided and
someone tries to enable secure LDAP, this error should be thrown.
Change-Id: Ie773245fb7c6b36f25cd1acca2bfc3b0391dfeac
Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add object to describe whether a group of fans is
in a redundant state. BMCs typically monitor fan
states and allow a certain number of fans to be
in an error condition before taking action. This
object can be monitored to determine when to take
actions such as boosting fans.
Tested-by: Ran CI
Change-Id: Id91bfdfcb7e49b933a0d6f16c63fd806e009d62f
Signed-off-by: James Feist <james.feist@linux.intel.com>
|
|
|
|
|
|
|
|
|
|
| |
Added Custom Field from Fru spec in inventory for Vendor information.
Tested: Build Facebook TiogaPass board and load on the
target hardware. Ensure that Fru information are updated in inventory.
Change-Id: I88ce315579a7e2c5c83c991b0d3e22193335dd24
Signed-off-by: Vijay Khemka <vijaykhemka@fb.com>
|
|
|
|
|
|
|
|
| |
Added example commands including VLAN and config properties.
Change-Id: I7055b7bf0dc68fe880e1a27599ce192e7a7b64b8
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adding an interface for the IPMI SEL Logger which provides methods
for IPMI Sensor D-Bus objects to add System and OEM SEL events
to the journal.
Related discussion at
https://lists.ozlabs.org/pipermail/openbmc/2018-September/013129.html
Change-Id: Idd15d92b95fcd4350d4d8ca15b34d864b0c2c507
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a new error for when a system component does not meet the
version requirements as determined by the implementation.
Collect the following metadata:
- MIN_VERSION: The minimum version level as defined by the implementation.
- ACTUAL_VERSION: The version running on the system component.
- VERSION_PURPOSE: The Version Purpose as described in
https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/xyz/openbmc_project/Software/Version.interface.yaml
or some other descriptive text.
Change-Id: I3e39bfa0735173aee7f3c2177ae24afa619efd69
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
|
|
|
|
|
|
|
|
| |
The config interface can throw an InternalFailure or
InvalidArgument errors.
Change-Id: Ida1a690e3b3137e621b27b788cfde28b7f31da5f
Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
| |
Added new interface(ChannelAccess) for holding channel
access information(privilege). This is used to set & get
channel level authorization.
Change-Id: Ib927d5658c0601df0da0969572fa28733a825b93
Signed-off-by: AppaRao Puli <apparao.puli@intel.com>
Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add ACPI system/device power states interface to support
IPMI get/set ACPI state commands.
It is different from existed dbus interface 'PowerState'.
Based on the IPMI spec, this is an independent setting that may not
necessarily match the actual power state of the system.
system power state enumeration:
S0/G0 0x00
S1 0x01
S2 0x02
S3 0x03
S4 0x04
S5/G2 0x05
S4/S5 0x06
G3 0x07
Sleeping 0x08
G1 sleeping 0x09
Override 0x0A
Legacy on 0x20
Unknown 0x2A
Device power state enumeration:
D0 0x00
D1 0x01
D2 0x02
D3 0x03
Unknown 0x2A
Change-Id: I39b393b67dc79ebb90054fcbe408e61e6b76fe36
Signed-off-by: Yong Li <yong.b.li@linux.intel.com>
|
|
|
|
|
|
|
| |
Update configure.ac to choose the c++17 standard
Change-Id: I519d938138c35fe53354b1505c12b02aee1e3f75
Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
|
|
|
|
|
|
|
| |
The Delete interface can throw an InternalFailure error.
Change-Id: I36c42b97d862cf534d34c6f24a14388f7304940f
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
The object path for the privilege mapper cannot have LDAP group name
in the path name. The D-Bus object path should only contain the ASCII
characters [A-Z][a-z][0-9]_. According to RFC 2253, the LDAP group name
can have additional special characters. A unique identifier is added to
the D-Bus object path and the group name is a property of the privilege
mapper.
Change-Id: If1c511bee7a492887eb45e7ce00fdfc55e98c073
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
| |
This interface will be implemented to assign privilege roles to
groups. The privilege roles will be assigned to groups
and the user accounts which are part of the group will inherit
the privilege role.
Change-Id: I2326de5f7f3e6e92c2a0d7648a5677b33a0b1db0
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
| |
An Interface to install the certificate provided by the user
and activate the services associated to the certificate.
README file provides the design details of uploading signed
certificate and private key and activating the new certificate.
Change-Id: Ib4e1ae2f957cce71698c2265bb733a04478b0abf
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
| |
It defines interfaces to create and to update LDAP config file.
It defines two interfaces - one is to create a config file and
the another one is to allow updates to happen to individual
properties.
Change-Id: I2f8182ad6d6d6945650d6ff0865c40106973fdec
Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Create a PowerSupply interface to host characteristics for an
individual power supply and add the Derating Factor as a property.
The derating factor is intended as a read-only value.
Tested: Compiled the changes and verified the generated code.
Change-Id: I5f8cdc19239a9a17b0a4ad8383c679b530f1a6b5
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Depends on the time config setting, setting property of EpochTime
interface may fail, e.g. not allowed, or systemd prevents the time
setting.
It was using InsufficientPermission to indicate not allowed error, but
it is not ideal.
Use proper errors, e.g. NotAllowed for this interface, so it reports
error correctly.
Note that phosphor-logging now supports inherits of errors without meta.
So NotAllowed is defined in Common without meta, and inherited in
Time with extra meta.
Change-Id: I3e660905d6bcb94680303a030eb7b1402e2f0075
Signed-off-by: Lei YU <mine260309@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
This property is a policy that dictates how the system would behave
if a power supply goes missing, and it's not intended to be modified
by the user. Set it to read-only.
Tested: Attempting to change the value via REST fails with
"org.freedesktop.DBus.Error.PropertyReadOnly".
Change-Id: I423a49bbf30eb150e38c8da52b913c3097384897
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
|
|
|
|
|
|
|
|
| |
Setting properties in this interface could fail to due to invalid
arguments, or internal errors.
Change-Id: Id734f47e68495b42440dfdb0246b83e95045a037
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
| |
Per openbmc/openbmc#3364, adding -flto to CXX flags
in order to reduce overall library and binary sizes.
Ref: https://gcc.gnu.org/wiki/LinkTimeOptimization
Change-Id: I2e1ba4b77af1c8419f7f586993957f9346d7a24a
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
“/xyz/openbmc_project”
According to the DEPRECATED API doc, the “/org/openbmc” API is
deprecated in the future.
Please refer:
https://github.com/openbmc/docs/blob/master/deprecated/dbus-interfaces.md
xyz.openbmc_project.Chassis.Buttons exposes the operation methods of the
buttons on the front panal like Power/Reset/ID, and the signals like
pressed/released to dbus, so that other modules could monitor/control
these buttons remotely like WebUI.
Change-Id: Iaf8990d19633d2df2beeb4b2c22f30f1abad6a45
Signed-off-by: Kuiying Wang <kuiying.wang@intel.com>
|
|
|
|
|
|
|
|
|
|
| |
Configuration support for password and security
enforcement for user account under AccountPolicy
interface (which will manage global policies
related to accounts).
Change-Id: Icdea6d83654f9449088a6319f453788cb25ecfc2
Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
|
|
|
|
|
|
|
| |
That error will never be returned.
Change-Id: I7cebfbb3c703216592f16dbdfeba0a982c9f8a6a
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Provide an interface for configuring the network client/endpoint.
D-Bus object which wants to keep the network endpoint info
can extend this interface.
e.g: Network endpoint could be SNMP mangers or LDAP servers etc.
Resolves openbmc/openbmc#3004
Change-Id: Ieedfc6e1d02fc7321b050cc3f27e206d60ac6fb9
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
| |
This holds the timestamp of when the chassis power
state last changed.
This will be used by the web UI to show the user when
their system was last powered on or off.
Change-Id: I801cd40e2e7d8ee18ede132be59f0776f5fc9d1f
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
|
|
|
|
|
|
|
|
| |
It contains the epoch time of the last BMC reboot
as determined by its uptime.
Change-Id: I2e80734db8443c9e3d49b3cf6dd336ee5d9937be
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
|
|
|
|
|
|
|
| |
sdbusplus now supports errors on properties.
Change-Id: Ida480c5b161dcf2ab399c04904f34bee9f303a6c
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
|
|
|
|
|
|
|
|
|
|
| |
Using the InternalFailure error here:
https://github.com/openbmc/phosphor-networkd/blob/057ff0daf0fd4d2617c5e50e2f9a095e06e3c24b/ethernet_interface.cpp#L710
sdbusplus now supports errors on properties.
Change-Id: I8dc9d8df5203ceca1ef33edf9a9a96eb1fa0691e
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
|
|
|
|
|
|
|
| |
sdbusplus now supports errors on properties.
Change-Id: Ia70bb6b9c52dc60ecf549e5b5209848a3cb0bfda
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
|