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