16c2b681 | 16-Aug-2024 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda forma
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda formatting also changed, so we have made changes to the organization default style format to better handle lambda formatting.
See I5e08687e696dd240402a2780158664b7113def0e for updated style. See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.
Change-Id: I75bbf0de40859a5e507455a52ceaef9be5b686c7 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
46e773a9 | 17-Jun-2024 |
Manojkiran Eda <manojkiran.eda@gmail.com> |
Fix spelling mistakes using codespell
This commit corrects various spelling mistakes throughout the repository. The corrections were made automatically using `codespell`[1] tool.
[1]: https://githu
Fix spelling mistakes using codespell
This commit corrects various spelling mistakes throughout the repository. The corrections were made automatically using `codespell`[1] tool.
[1]: https://github.com/codespell-project/codespell
Change-Id: I6959d908cd7b216568963488ead0f3d6ed4a6611 Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
show more ...
|
af1594c9 | 27-Apr-2024 |
Ravi Teja <raviteja28031990@gmail.com> |
Remove systemd meson configuration variables
This commit removes meson configuration variables which are not actually configurable and can be hardcoded.
Change-Id: Id9d198bf6562e108b8a7472e770e6d8b
Remove systemd meson configuration variables
This commit removes meson configuration variables which are not actually configurable and can be hardcoded.
Change-Id: Id9d198bf6562e108b8a7472e770e6d8bb84e2684 Signed-off-by: Ravi Teja <raviteja28031990@gmail.com>
show more ...
|
c992c26e | 02-Apr-2024 |
Konstantin Aladyshev <aladyshev22@gmail.com> |
meson: Add boost to the dependencies
Since the project uses boost library add it to meson dependencies.
Tested: Local build no longer fails with a missing boost headers message on the system withou
meson: Add boost to the dependencies
Since the project uses boost library add it to meson dependencies.
Tested: Local build no longer fails with a missing boost headers message on the system without boost, but fails at the "meson setup build" stage with an appropriate message.
Change-Id: I872159dcec923d289626b532146c9eb8d5461e1c Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
show more ...
|
23f82c1e | 27-Jul-2023 |
Michal Orzel <michalx.orzel@intel.com> |
Change authority D-Bus names
Changing authority service references in code from 'ldap' to more generic name, to comply with change in phosphor-certificate-manager.
Related change: https://gerrit.op
Change authority D-Bus names
Changing authority service references in code from 'ldap' to more generic name, to comply with change in phosphor-certificate-manager.
Related change: https://gerrit.openbmc.org/c/openbmc/phosphor-certificate-manager/+/65458
Tested: Adding, reading and removal of CA Certificate via Redfish works without any noticeable regression.
Change-Id: Ia0517844c5f1d8eb55c4dec156f409fd6875a502 Signed-off-by: Michal Orzel <michalx.orzel@intel.com>
show more ...
|
b7043047 | 10-May-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: I913685cddaf9a2256b3edcd3ced8e89a32386394 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
e8d664d1 | 05-Jul-2022 |
Jiaqing Zhao <jiaqing.zhao@intel.com> |
ldap-config: Include phosphor-logging in source files
It is recommendded to include the phosphor-logging and related headers in source files instead of header files.
Tested: Build and unit test pas
ldap-config: Include phosphor-logging in source files
It is recommendded to include the phosphor-logging and related headers in source files instead of header files.
Tested: Build and unit test pass.
Change-Id: I880d8a3bf8dd850af300806da0d17357407632fd Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
show more ...
|
11ec666b | 05-Jul-2022 |
Jiaqing Zhao <jiaqing.zhao@intel.com> |
Switch to lg2 for logging
After enabling C++20, lg2 is preferred for logging. This patch replaces all phosphor::logging::log calls to lg2 calls.
Tested: Build pass.
Change-Id: Ic37bc36f43c2b3a1c61
Switch to lg2 for logging
After enabling C++20, lg2 is preferred for logging. This patch replaces all phosphor::logging::log calls to lg2 calls.
Tested: Build pass.
Change-Id: Ic37bc36f43c2b3a1c61b1328af95e3a41c8d6d40 Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
show more ...
|
5c892d18 | 25-Mar-2022 |
Asmitha Karunanithi <asmitk01@in.ibm.com> |
Remove support for priv-noaccess role
This change is made w.r.t the discussions in: https://gerrit.openbmc-project.xyz/c/openbmc/bmcweb/+/49295
An authenticated user with the NoAccess role can logi
Remove support for priv-noaccess role
This change is made w.r.t the discussions in: https://gerrit.openbmc-project.xyz/c/openbmc/bmcweb/+/49295
An authenticated user with the NoAccess role can login but they cannot logout.
This commit is to block the login for a user with priv-noaccess Details are at https://github.com/openbmc/bmcweb/issues/227
Tested By: 1. Create an LDAP user with priv-noaccess. Verify the login attempt fails with accessDenied error 2. Verified the other role users can login
Signed-off-by: Asmitha Karunanithi <asmitk01@in.ibm.com> Change-Id: I86f554460e224d6d6e70652c08b32f994194494d
show more ...
|
0b6b8013 | 24-Oct-2022 |
Nan Zhou <nanzhoumails@gmail.com> |
build tool: remove autotools
Meson is fully working now, remove autotools completely. See [1] https://gerrit.openbmc.org/c/openbmc/openbmc/+/56842
Tested: see testing performed in the recipe change
build tool: remove autotools
Meson is fully working now, remove autotools completely. See [1] https://gerrit.openbmc.org/c/openbmc/openbmc/+/56842
Tested: see testing performed in the recipe change.
Signed-off-by: Nan Zhou <nanzhoumails@gmail.com> Change-Id: I679e085cbc1bc59421781fe54e33b1813ef166a1
show more ...
|
78d85042 | 29-Aug-2022 |
Nan Zhou <nanzhoumails@gmail.com> |
clang-tidy: enable clang-tidy
Enable the first check: readability-identifier-naming
Also fixed all check failures.
Tested: 1. compiles, no clang-tidy failures 2. the two daemons work correctly on
clang-tidy: enable clang-tidy
Enable the first check: readability-identifier-naming
Also fixed all check failures.
Tested: 1. compiles, no clang-tidy failures 2. the two daemons work correctly on hardware regarding DBus APIs
Signed-off-by: Nan Zhou <nanzhoumails@gmail.com> Change-Id: Ic415e857726e8f521c1d61a3e7f0c85121c0d284
show more ...
|
f3fb77c0 | 29-Aug-2022 |
Nan Zhou <nanzhoumails@gmail.com> |
treewide: make code compie on clang
This patch fixed several minor issues that clang14 complains about.
1. clang-diagnostic-inconsistent-missing-override 2. clang-diagnostic-defaulted-function-dele
treewide: make code compie on clang
This patch fixed several minor issues that clang14 complains about.
1. clang-diagnostic-inconsistent-missing-override 2. clang-diagnostic-defaulted-function-deleted 3. clang-diagnostic-unused-const-variable
Tested: 1. it builds with clang14 2. tested on hardware, ldap config daemon and user manager daemon are both good. Tested DBus APIs (e.g., create config) as well.
Signed-off-by: Nan Zhou <nanzhoumails@gmail.com> Change-Id: Idf8d0481fc05735b4b3d021f30aa44272f2369bf
show more ...
|
69570e5e | 07-Jun-2022 |
Jiaqing Zhao <jiaqing.zhao@intel.com> |
Set default shell to /bin/sh for ldap users
Change the default shell of ldap users to /bin/sh to make it consistent with local users.
Tested: * `getent.ldap passwd` shows the default shell is /bin/
Set default shell to /bin/sh for ldap users
Change the default shell of ldap users to /bin/sh to make it consistent with local users.
Tested: * `getent.ldap passwd` shows the default shell is /bin/sh
Change-Id: I3f8071172e20be54c46df2717e005c25f9da19a1 Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
show more ...
|
3b80d01d | 15-Aug-2022 |
Nan Zhou <nanzhoumails@gmail.com> |
meson: find ldap instead of link flags
The current meson adds link flags for libldap directly. This makes that meson doesn't error out until compilation (e.g., report missing ldap.h).
This commit a
meson: find ldap instead of link flags
The current meson adds link flags for libldap directly. This makes that meson doesn't error out until compilation (e.g., report missing ldap.h).
This commit adds the ldap dependency explicitly and makes it required.
Tested: 1. CI works 2. bitbake works
Signed-off-by: Nan Zhou <nanzhoumails@gmail.com> Change-Id: I7513a1a825b28c85afc51248e5b93d69a34e82f4
show more ...
|
b3ef4e1a | 22-Jul-2022 |
Patrick Williams <patrick@stwcx.xyz> |
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are for: * bus_t * exception_t * manager_t * match_t * message_t * object_t * slot_t
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I19e094a2a99893627dbb82b615f630b87ad90fdd
show more ...
|
2f64e420 | 10-Mar-2022 |
Asmitha Karunanithi <asmitk01@in.ibm.com> |
Add port validation for ldap server uri
When a user sets the LDAP server URI with invalid port - value either less than 0 or greater than 65536, the service should return error instead of accepting
Add port validation for ldap server uri
When a user sets the LDAP server URI with invalid port - value either less than 0 or greater than 65536, the service should return error instead of accepting invalid values.
The error that will be returned in this scenario: Failed to set property LDAPServerURI on interface \ xyz.openbmc_project.User.Ldap.Config: Invalid argument was given.
Signed-off-by: Asmitha Karunanithi <asmitk01@in.ibm.com> Change-Id: Ie9ff263310fbe97298fd6f18b871d82e300189a2
show more ...
|
e92f4ac7 | 05-Apr-2022 |
Patrick Williams <patrick@stwcx.xyz> |
meson: ldap-config: add missing cereal dep
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Iff963fc90cc480761da44a2da6a6f6702b450d0a |
224559b4 | 05-Apr-2022 |
Patrick Williams <patrick@stwcx.xyz> |
sdbusplus: object: don't use 'bool' argument constructor
`sdbusplus::server::object_t` has long had an enum-based parameter for signal action, but maintained a backwards compatible boolean mapping.
sdbusplus: object: don't use 'bool' argument constructor
`sdbusplus::server::object_t` has long had an enum-based parameter for signal action, but maintained a backwards compatible boolean mapping. It is time to remove this boolean to make it more observable which actions are being used in applications. Map all `true` occurrences to `action::defer_emit`.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I6de31883b9f6a9a3115ae232575dffbdf652e0bd
show more ...
|
ca039ca3 | 09-Jan-2022 |
Ratan Gupta <ratankgupta31@gmail.com> |
Migrate to Meson build
This commit focuses in enabling the meson build for the phosphor-snmp repo.
To build and install using meson: meson build ninja -C build ninja -C build install
Tested
Migrate to Meson build
This commit focuses in enabling the meson build for the phosphor-snmp repo.
To build and install using meson: meson build ninja -C build ninja -C build install
Tested By: meson -Dtests=enabled build ninja -C build test
Signed-off-by: Ratan Gupta <ratankgupta31@gmail.com> Change-Id: I3a79a42d2fed3f39ae218f3e3f81fb165a12ea17
show more ...
|
0b1ad3d8 | 09-Jan-2022 |
Ratan Gupta <ratankgupta31@gmail.com> |
Resolve Meson issues
This commit includes fixes in the repo:
1. Errors that meson identified 2. Formatting changes
Signed-off-by: Ratan Gupta <ratankgupta31@gmail.com> Change-Id: I4f57abb2236205fe
Resolve Meson issues
This commit includes fixes in the repo:
1. Errors that meson identified 2. Formatting changes
Signed-off-by: Ratan Gupta <ratankgupta31@gmail.com> Change-Id: I4f57abb2236205fe6fc04292a00a270c816ba965
show more ...
|
d019e3d2 | 06-Oct-2021 |
Patrick Williams <patrick@stwcx.xyz> |
catch exceptions as const
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ia6e52141afe659db8a7eaaf77fe5198028f4d173 |
372c5668 | 30-Jun-2021 |
Alexander Filippov <a.filippov@yadro.com> |
LDAP: start or stop nslcd on service starting
`nslcd` service should be started only if there is a valid endpoint. This commit adds a call that starts or stops `nslcd.service` after the Dbus objects
LDAP: start or stop nslcd on service starting
`nslcd` service should be started only if there is a valid endpoint. This commit adds a call that starts or stops `nslcd.service` after the Dbus objects has been deserialized, depending by the presence of enabled endpoint.
Tested: 1. Made sure `nslcd` is stopped by default. 2. Added a configuration for AD/LDAP endpoint and made sure `nslcd` is started. 3. Rebooted BMC and made sure `nslcd` is started.
Change-Id: I06d91cb450e92bdfb12c4f65dce4e250113ab461 Signed-off-by: Alexander Filippov <a.filippov@yadro.com>
show more ...
|
178c3f6d | 02-Sep-2021 |
Patrick Williams <patrick@stwcx.xyz> |
exception: switch to public sdbus exception
SdBusError was intended to be a private error type inside sdbusplus. Switch all catch locations to use the general sdbusplus::exception type.
Signed-off-
exception: switch to public sdbus exception
SdBusError was intended to be a private error type inside sdbusplus. Switch all catch locations to use the general sdbusplus::exception type.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I8af15372ca11b8400044fc24d4880ea9fd00f3da
show more ...
|
cda9bc62 | 02-Sep-2021 |
Patrick Williams <patrick@stwcx.xyz> |
cleanup sdbus CAMELCASE define
The transition from e6500a493a156dd58a92b384c77aef2cbd3addac is complete, so clean up the old defines.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id:
cleanup sdbus CAMELCASE define
The transition from e6500a493a156dd58a92b384c77aef2cbd3addac is complete, so clean up the old defines.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I016e6044eb3821c22cd568c75098b804cd2e02e9
show more ...
|
e6500a49 | 01-May-2021 |
Patrick Williams <patrick@stwcx.xyz> |
use new sdbus++ camelcase
Change I17a8d7479556596a3cf252b3f4eae9c8df547189 will change how sdbus++ generates names which start with an acronym. Prepare for this by keying off the SDBUSPP_NEW_CAMELCA
use new sdbus++ camelcase
Change I17a8d7479556596a3cf252b3f4eae9c8df547189 will change how sdbus++ generates names which start with an acronym. Prepare for this by keying off the SDBUSPP_NEW_CAMELCASE define to use the new format.
Changes: lDAP* -> ldap*
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Idc0c2f33974d684d311b329806cac1a6235edc02
show more ...
|