diff --git a/.dockerignore b/.dockerignore
index a7a514da5..a2350ff47 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -2,4 +2,5 @@ target
.git
.gitignore
test.db
+vendor
diff --git a/.gitignore b/.gitignore
index 61c358abc..060c0a3fa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@
**/*.rs.bk
test.db
/vendor
+kanidm_rlm_python/test_data/certs/
diff --git a/README.md b/README.md
index 8d8e7db39..8c98f337e 100644
--- a/README.md
+++ b/README.md
@@ -62,12 +62,12 @@ In a new terminal, you can now build and run the client tools with:
cd kanidm_tools
cargo run -- --help
- cargo run -- whoami -H https://localhost:8080 -D anonymous -C ../insecure/ca.pem
- cargo run -- whoami -H https://localhost:8080 -D admin -C ../insecure/ca.pem
+ cargo run -- self whoami -H https://localhost:8080 -D anonymous -C ../insecure/ca.pem
+ cargo run -- self whoami -H https://localhost:8080 -D admin -C ../insecure/ca.pem
For more see [getting started]
-[getting started]: https://github.com/Firstyear/kanidm/blob/master/GETTING_STARTED.html
+[getting started]: https://github.com/Firstyear/kanidm/blob/master/GETTING_STARTED.md
## Development and Testing
diff --git a/kanidm_client/src/lib.rs b/kanidm_client/src/lib.rs
index d7df97559..8057d1e73 100644
--- a/kanidm_client/src/lib.rs
+++ b/kanidm_client/src/lib.rs
@@ -12,8 +12,9 @@ use std::io::Read;
use kanidm_proto::v1::{
AuthCredential, AuthRequest, AuthResponse, AuthState, AuthStep, CreateRequest, DeleteRequest,
- Entry, Filter, ModifyList, ModifyRequest, OperationError, OperationResponse, SearchRequest,
- SearchResponse, SetAuthCredential, SingleStringRequest, UserAuthToken, WhoamiResponse,
+ Entry, Filter, ModifyList, ModifyRequest, OperationError, OperationResponse, RadiusAuthToken,
+ SearchRequest, SearchResponse, SetAuthCredential, SingleStringRequest, UserAuthToken,
+ WhoamiResponse,
};
use serde_json;
@@ -155,6 +156,22 @@ impl KanidmClient {
Ok(r)
}
+ fn perform_delete_request(&self, dest: &str) -> Result<(), ClientError> {
+ let dest = format!("{}{}", self.addr, dest);
+ let mut response = self
+ .client
+ .delete(dest.as_str())
+ .send()
+ .map_err(|e| ClientError::Transport(e))?;
+
+ match response.status() {
+ reqwest::StatusCode::OK => {}
+ unexpect => return Err(ClientError::Http(unexpect, response.json().ok())),
+ }
+
+ Ok(())
+ }
+
// whoami
// Can't use generic get due to possible un-auth case.
pub fn whoami(&self) -> Result