1234567891011121314151617181920 |
- #!/bin/bash
- cargo build
- UIDC=./target/debug/uidc
- $UIDC init
- $UIDC config load /dev/stdin <<EOF
- base_url = "http://localhost:2114/"
- EOF
- $UIDC cert generate
- $UIDC client create testclient
- $UIDC user create kestrel
- echo "please enter password for user 'kestrel'"
- $UIDC user auth -p kestrel
- $UIDC group create testgroup
- $UIDC role create testrole
- $UIDC group attach-role testgroup testrole
- $UIDC group attach-user testgroup kestrel
|