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