Name Date Size #Lines LOC

..22-Aug-2024-

README.mdH A D09-Sep-20241.3 KiB5435

README.md

1# phosphor-user-manager
2
3## To Build
4
5To build this package, do the following steps:
6
7```sh
8    1. meson build
9    2. ninja -C build
10```
11
12### LDAP Configuration
13
14#### Configure LDAP
15
16```sh
17curl -c cjar -b cjar -k -H "Content-Type: application/json" -X POST -d '{"data":[false,"ldap://<ldap://<LDAP server ip/hostname>/", "<bindDN>", "<baseDN>","<bindDNPassword>","<searchScope>","<serverType>"]}''  https://$BMC_IP/xyz/openbmc_project/user/ldap/action/CreateConfig
18
19```
20
21#### NOTE
22
23If the configured ldap server is secure then we need to upload the client
24certificate and the CA certificate in following cases.
25
26- First time LDAP configuration.
27- Change the already configured Client/CA certificate
28
29#### Upload LDAP Client Certificate
30
31```sh
32curl -c cjar -b cjar -k -H "Content-Type: application/octet-stream"
33     -X PUT -T <FILE> https://<BMC_IP>/xyz/openbmc_project/certs/client/ldap
34```
35
36#### Upload CA Certificate
37
38```sh
39curl -c cjar -b cjar -k -H "Content-Type: application/octet-stream"
40     -X PUT -T <FILE> https://<BMC_IP>/xyz/openbmc_project/certs/authority/truststore
41```
42
43#### Clear LDAP Config
44
45```sh
46curl -b cjar -k -H "Content-Type: application/json" -X POST -d '{"data":[]}' https://$BMC_IP/xyz/openbmc_project/user/ldap/config/action/delete
47```
48
49#### Get LDAP Config
50
51```sh
52curl -b cjar -k https://$BMC_IP/xyz/openbmc_project/user/ldap/enumerate
53```
54