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