diff --git a/README.md b/README.md index cbe61eb..a5593c4 100644 --- a/README.md +++ b/README.md @@ -214,14 +214,23 @@ curl -V ``` Your should see 'SPNEGO' in the 'Features' section. -Here's an example of making a request (to add a user) to an endpoint which writes to LDAP: +Here's an example of making a request to add a user (in the Docker container): ```sh -# Get a Kerberos TGT first +# If you're root, switch to the ctdalek user first +su ctdalek +# Get a Kerberos TGT (password is krb5) kinit # Make the request curl --negotiate -u : --service-name ceod --delegation always \ -d '{"uid":"test_1","cn":"Test One","given_name":"Test","sn":"One","program":"Math","terms":["s2021"]}' \ - -X POST https://phosphoric-acid.csclub.uwaterloo.ca:9987/api/members + -X POST http://phosphoric-acid:9987/api/members + +# To delete the user: +curl --negotiate -u : --service-name ceod --delegation always \ + -X DELETE http://phosphoric-acid:9987/api/members/test_1 + +# In prod, use the following base URL instead: +# https://phosphoric-acid.csclub.uwaterloo.ca:9987 ``` ## Packaging