Expand description
server
contains the query server, which is the main high level construction
+
Module kanidm::server
source · [−]Expand description
server
contains the query server, which is the main high level construction
to coordinate queries and operations in the server.
Structs
Traits
diff --git a/docs/master/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html b/docs/master/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html index 25cce7db0..0d59764c1 100644 --- a/docs/master/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html +++ b/docs/master/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html @@ -4,19 +4,19 @@Struct kanidm::server::QueryServerWriteTransaction
source · [−]pub struct QueryServerWriteTransaction<'a> { /* private fields */ }
Implementations
sourceimpl<'a> QueryServerWriteTransaction<'a>
impl<'a> QueryServerWriteTransaction<'a>
pub fn create(&self, ce: &CreateEvent) -> Result<(), OperationError>
pub fn delete(&self, de: &DeleteEvent) -> Result<(), OperationError>
pub fn purge_tombstones(&self) -> Result<(), OperationError>
pub fn purge_recycled(&self) -> Result<(), OperationError>
pub fn revive_recycled(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
pub fn revive_recycled_legacy(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
pub fn modify(&self, me: &ModifyEvent) -> Result<(), OperationError>
sourcepub fn migrate_2_to_3(&self) -> Result<(), OperationError>
pub fn migrate_2_to_3(&self) -> Result<(), OperationError>
Migrate 2 to 3 changes the name, domain_name types from iutf8 to iname.
+Struct kanidm::server::QueryServerWriteTransaction
source · [−]pub struct QueryServerWriteTransaction<'a> { /* private fields */ }
Implementations
sourceimpl<'a> QueryServerWriteTransaction<'a>
impl<'a> QueryServerWriteTransaction<'a>
pub fn create(&self, ce: &CreateEvent) -> Result<(), OperationError>
pub fn delete(&self, de: &DeleteEvent) -> Result<(), OperationError>
pub fn purge_tombstones(&self) -> Result<(), OperationError>
pub fn purge_recycled(&self) -> Result<(), OperationError>
pub fn revive_recycled(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
pub fn revive_recycled_legacy(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
pub fn modify(&self, me: &ModifyEvent) -> Result<(), OperationError>
sourcepub fn migrate_2_to_3(&self) -> Result<(), OperationError>
pub fn migrate_2_to_3(&self) -> Result<(), OperationError>
Migrate 2 to 3 changes the name, domain_name types from iutf8 to iname.
sourcepub fn migrate_3_to_4(&self) -> Result<(), OperationError>
pub fn migrate_3_to_4(&self) -> Result<(), OperationError>
Migrate 3 to 4 - this triggers a regen of the domains security token as we previously did not have it in the entry.
sourcepub fn migrate_4_to_5(&self) -> Result<(), OperationError>
pub fn migrate_4_to_5(&self) -> Result<(), OperationError>
Migrate 4 to 5 - this triggers a regen of all oauth2 RS es256 der keys as we previously did not generate them on entry creation.
-sourcepub fn migrate_5_to_6(&self) -> Result<(), OperationError>
pub fn migrate_5_to_6(&self) -> Result<(), OperationError>
Migrate 5 to 6 - This updates the domain info item to reset the token +
sourcepub fn migrate_5_to_6(&self) -> Result<(), OperationError>
pub fn migrate_5_to_6(&self) -> Result<(), OperationError>
Migrate 5 to 6 - This updates the domain info item to reset the token keys based on the new encryption types.
-pub fn internal_create(
&self,
entries: Vec<Entry<EntryInit, EntryNew>>
) -> Result<(), OperationError>
pub fn internal_delete(
&self,
filter: &Filter<FilterInvalid>
) -> Result<(), OperationError>
pub fn internal_modify(
&self,
filter: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>
) -> Result<(), OperationError>
pub fn impersonate_modify_valid(
&self,
f_valid: Filter<FilterValid>,
f_intent_valid: Filter<FilterValid>,
m_valid: ModifyList<ModifyValid>,
event: &Identity
) -> Result<(), OperationError>
pub fn impersonate_modify(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<(), OperationError>
pub fn impersonate_modify_gen_event(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<ModifyEvent, OperationError>
pub fn internal_migrate_or_create_str(
&self,
e_str: &str
) -> Result<(), OperationError>
pub fn internal_migrate_or_create(
&self,
e: Entry<EntryInit, EntryNew>
) -> Result<(), OperationError>
pub fn initialise_schema_core(&self) -> Result<(), OperationError>
pub fn initialise_schema_idm(&self) -> Result<(), OperationError>
pub fn initialise_idm(&self) -> Result<(), OperationError>
sourcepub fn set_domain_display_name(
&self,
new_domain_name: &str
) -> Result<(), OperationError>
pub fn set_domain_display_name(
&self,
new_domain_name: &str
) -> Result<(), OperationError>
Initiate a domain display name change process. This isn’t particularly scary +
pub fn internal_create(
&self,
entries: Vec<Entry<EntryInit, EntryNew>>
) -> Result<(), OperationError>
pub fn internal_delete(
&self,
filter: &Filter<FilterInvalid>
) -> Result<(), OperationError>
pub fn internal_modify(
&self,
filter: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>
) -> Result<(), OperationError>
pub fn impersonate_modify_valid(
&self,
f_valid: Filter<FilterValid>,
f_intent_valid: Filter<FilterValid>,
m_valid: ModifyList<ModifyValid>,
event: &Identity
) -> Result<(), OperationError>
pub fn impersonate_modify(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<(), OperationError>
pub fn impersonate_modify_gen_event(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<ModifyEvent, OperationError>
pub fn internal_migrate_or_create_str(
&self,
e_str: &str
) -> Result<(), OperationError>
pub fn internal_migrate_or_create(
&self,
e: Entry<EntryInit, EntryNew>
) -> Result<(), OperationError>
pub fn initialise_schema_core(&self) -> Result<(), OperationError>
pub fn initialise_schema_idm(&self) -> Result<(), OperationError>
pub fn initialise_idm(&self) -> Result<(), OperationError>
sourcepub fn set_domain_display_name(
&self,
new_domain_name: &str
) -> Result<(), OperationError>
pub fn set_domain_display_name(
&self,
new_domain_name: &str
) -> Result<(), OperationError>
Initiate a domain display name change process. This isn’t particularly scary because it’s just a wibbly human-facing thing, not used for secure activities (yet)
-sourcepub fn domain_rename(&self, new_domain_name: &str) -> Result<(), OperationError>
pub fn domain_rename(&self, new_domain_name: &str) -> Result<(), OperationError>
Initiate a domain rename process. This is generally an internal function but it’s +
sourcepub fn domain_rename(&self, new_domain_name: &str) -> Result<(), OperationError>
pub fn domain_rename(&self, new_domain_name: &str) -> Result<(), OperationError>
Initiate a domain rename process. This is generally an internal function but it’s exposed to the cli for admins to be able to initiate the process.
-pub fn reindex(&self) -> Result<(), OperationError>
pub fn get_changed_uuids(&self) -> &HashSet<Uuid>
pub fn get_changed_ouath2(&self) -> bool
pub fn get_changed_domain(&self) -> bool
pub fn commit(self) -> Result<(), OperationError>
Trait Implementations
sourceimpl<'a> QueryServerTransaction<'a> for QueryServerWriteTransaction<'a>
impl<'a> QueryServerTransaction<'a> for QueryServerWriteTransaction<'a>
sourcefn get_domain_name(&self) -> &str
fn get_domain_name(&self) -> &str
Gets the in-memory domain_name element
+pub fn reindex(&self) -> Result<(), OperationError>
pub fn get_changed_uuids(&self) -> &HashSet<Uuid>
pub fn get_changed_ouath2(&self) -> bool
pub fn get_changed_domain(&self) -> bool
pub fn commit(self) -> Result<(), OperationError>
Trait Implementations
sourceimpl<'a> QueryServerTransaction<'a> for QueryServerWriteTransaction<'a>
impl<'a> QueryServerTransaction<'a> for QueryServerWriteTransaction<'a>
sourcefn get_domain_name(&self) -> &str
fn get_domain_name(&self) -> &str
Gets the in-memory domain_name element
type BackendTransactionType = BackendWriteTransaction<'a>
fn get_be_txn(&self) -> &BackendWriteTransaction<'a>
type SchemaTransactionType = SchemaWriteTransaction<'a>
fn get_schema(&self) -> &SchemaWriteTransaction<'a>
type AccessControlsTransactionType = AccessControlsWriteTransaction<'a>
fn get_accesscontrols(&self) -> &AccessControlsWriteTransaction<'a>
fn get_resolve_filter_cache(
&self
) -> &mut ARCacheReadTxn<'a, (IdentityId, Filter<FilterValid>), Filter<FilterValidResolved>>
fn get_domain_uuid(&self) -> Uuid
fn get_domain_display_name(&self) -> &str
sourcefn search_ext(
&self,
se: &SearchEvent
) -> Result<Vec<Entry<EntryReduced, EntryCommitted>>, OperationError>
fn search_ext(
&self,
se: &SearchEvent
) -> Result<Vec<Entry<EntryReduced, EntryCommitted>>, OperationError>
Conduct a search and apply access controls to yield a set of entries that
have been reduced to the set of user visible avas. Note that if you provide
a SearchEvent
for the internal user, this query will fail. It is invalid for
diff --git a/docs/master/rustdoc/src/kanidm/server.rs.html b/docs/master/rustdoc/src/kanidm/server.rs.html
index 42a553eea..edf5b53a0 100644
--- a/docs/master/rustdoc/src/kanidm/server.rs.html
+++ b/docs/master/rustdoc/src/kanidm/server.rs.html
@@ -4528,6 +4528,11 @@
4523
4524
4525
+4526
+4527
+4528
+4529
+4530
//! `server` contains the query server, which is the main high level construction
//! to coordinate queries and operations in the server.
@@ -6791,7 +6796,12 @@
spanned!("server::migrate_5_to_6", {
admin_warn!("starting 5 to 6 migration.");
let filter = filter!(f_eq("uuid", (*PVUUID_DOMAIN_INFO).clone()));
- let modlist = ModifyList::new_purge("domain_token_key");
+ let mut modlist = ModifyList::new_purge("domain_token_key");
+ // We need to also push the version here so that we pass schema.
+ modlist.push_mod(Modify::Present(
+ AttrString::from("version"),
+ Value::Uint32(0),
+ ));
self.internal_modify(&filter, &modlist)
// Complete
})
diff --git a/docs/stable/rustdoc/kanidm/server/index.html b/docs/stable/rustdoc/kanidm/server/index.html
index a27d82dd4..cc14d3c63 100644
--- a/docs/stable/rustdoc/kanidm/server/index.html
+++ b/docs/stable/rustdoc/kanidm/server/index.html
@@ -4,7 +4,7 @@
Expand description
server
contains the query server, which is the main high level construction
+
Module kanidm::server
source · [−]Expand description
server
contains the query server, which is the main high level construction
to coordinate queries and operations in the server.
Structs
Traits
diff --git a/docs/stable/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html b/docs/stable/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
index 25cce7db0..0d59764c1 100644
--- a/docs/stable/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
+++ b/docs/stable/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
@@ -4,19 +4,19 @@
- Struct kanidm::server::QueryServerWriteTransaction
source · [−]pub struct QueryServerWriteTransaction<'a> { /* private fields */ }
Implementations
sourceimpl<'a> QueryServerWriteTransaction<'a>
sourcepub fn create(&self, ce: &CreateEvent) -> Result<(), OperationError>
sourcepub fn delete(&self, de: &DeleteEvent) -> Result<(), OperationError>
sourcepub fn purge_tombstones(&self) -> Result<(), OperationError>
sourcepub fn purge_recycled(&self) -> Result<(), OperationError>
sourcepub fn revive_recycled(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn revive_recycled_legacy(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn modify(&self, me: &ModifyEvent) -> Result<(), OperationError>
sourcepub fn migrate_2_to_3(&self) -> Result<(), OperationError>
Migrate 2 to 3 changes the name, domain_name types from iutf8 to iname.
+ Struct kanidm::server::QueryServerWriteTransaction
source · [−]pub struct QueryServerWriteTransaction<'a> { /* private fields */ }
Implementations
sourceimpl<'a> QueryServerWriteTransaction<'a>
sourcepub fn create(&self, ce: &CreateEvent) -> Result<(), OperationError>
sourcepub fn delete(&self, de: &DeleteEvent) -> Result<(), OperationError>
sourcepub fn purge_tombstones(&self) -> Result<(), OperationError>
sourcepub fn purge_recycled(&self) -> Result<(), OperationError>
sourcepub fn revive_recycled(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn revive_recycled_legacy(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn modify(&self, me: &ModifyEvent) -> Result<(), OperationError>
sourcepub fn migrate_2_to_3(&self) -> Result<(), OperationError>
Migrate 2 to 3 changes the name, domain_name types from iutf8 to iname.
sourcepub fn migrate_3_to_4(&self) -> Result<(), OperationError>
Migrate 3 to 4 - this triggers a regen of the domains security token
as we previously did not have it in the entry.
sourcepub fn migrate_4_to_5(&self) -> Result<(), OperationError>
Migrate 4 to 5 - this triggers a regen of all oauth2 RS es256 der keys
as we previously did not generate them on entry creation.
-sourcepub fn migrate_5_to_6(&self) -> Result<(), OperationError>
Migrate 5 to 6 - This updates the domain info item to reset the token
+
sourcepub fn migrate_5_to_6(&self) -> Result<(), OperationError>
Migrate 5 to 6 - This updates the domain info item to reset the token
keys based on the new encryption types.
-sourcepub fn internal_create(
&self,
entries: Vec<Entry<EntryInit, EntryNew>>
) -> Result<(), OperationError>
sourcepub fn internal_delete(
&self,
filter: &Filter<FilterInvalid>
) -> Result<(), OperationError>
sourcepub fn internal_modify(
&self,
filter: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_valid(
&self,
f_valid: Filter<FilterValid>,
f_intent_valid: Filter<FilterValid>,
m_valid: ModifyList<ModifyValid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_gen_event(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<ModifyEvent, OperationError>
sourcepub fn internal_migrate_or_create_str(
&self,
e_str: &str
) -> Result<(), OperationError>
sourcepub fn internal_migrate_or_create(
&self,
e: Entry<EntryInit, EntryNew>
) -> Result<(), OperationError>
sourcepub fn initialise_schema_core(&self) -> Result<(), OperationError>
sourcepub fn initialise_schema_idm(&self) -> Result<(), OperationError>
sourcepub fn initialise_idm(&self) -> Result<(), OperationError>
sourcepub fn set_domain_display_name(
&self,
new_domain_name: &str
) -> Result<(), OperationError>
Initiate a domain display name change process. This isn’t particularly scary
+
sourcepub fn internal_create(
&self,
entries: Vec<Entry<EntryInit, EntryNew>>
) -> Result<(), OperationError>
sourcepub fn internal_delete(
&self,
filter: &Filter<FilterInvalid>
) -> Result<(), OperationError>
sourcepub fn internal_modify(
&self,
filter: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_valid(
&self,
f_valid: Filter<FilterValid>,
f_intent_valid: Filter<FilterValid>,
m_valid: ModifyList<ModifyValid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_gen_event(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<ModifyEvent, OperationError>
sourcepub fn internal_migrate_or_create_str(
&self,
e_str: &str
) -> Result<(), OperationError>
sourcepub fn internal_migrate_or_create(
&self,
e: Entry<EntryInit, EntryNew>
) -> Result<(), OperationError>
sourcepub fn initialise_schema_core(&self) -> Result<(), OperationError>
sourcepub fn initialise_schema_idm(&self) -> Result<(), OperationError>
sourcepub fn initialise_idm(&self) -> Result<(), OperationError>
sourcepub fn set_domain_display_name(
&self,
new_domain_name: &str
) -> Result<(), OperationError>
Initiate a domain display name change process. This isn’t particularly scary
because it’s just a wibbly human-facing thing, not used for secure
activities (yet)
-sourcepub fn domain_rename(&self, new_domain_name: &str) -> Result<(), OperationError>
Initiate a domain rename process. This is generally an internal function but it’s
+
sourcepub fn domain_rename(&self, new_domain_name: &str) -> Result<(), OperationError>
Initiate a domain rename process. This is generally an internal function but it’s
exposed to the cli for admins to be able to initiate the process.
-sourcepub fn reindex(&self) -> Result<(), OperationError>
sourcepub fn get_changed_uuids(&self) -> &HashSet<Uuid>
sourcepub fn get_changed_ouath2(&self) -> bool
sourcepub fn get_changed_domain(&self) -> bool
sourcepub fn commit(self) -> Result<(), OperationError>
Trait Implementations
sourceimpl<'a> QueryServerTransaction<'a> for QueryServerWriteTransaction<'a>
sourcefn get_domain_name(&self) -> &str
Gets the in-memory domain_name element
+sourcepub fn reindex(&self) -> Result<(), OperationError>
sourcepub fn get_changed_uuids(&self) -> &HashSet<Uuid>
sourcepub fn get_changed_ouath2(&self) -> bool
sourcepub fn get_changed_domain(&self) -> bool
sourcepub fn commit(self) -> Result<(), OperationError>
Trait Implementations
sourceimpl<'a> QueryServerTransaction<'a> for QueryServerWriteTransaction<'a>
sourcefn get_domain_name(&self) -> &str
Gets the in-memory domain_name element
type BackendTransactionType = BackendWriteTransaction<'a>
sourcefn get_be_txn(&self) -> &BackendWriteTransaction<'a>
type SchemaTransactionType = SchemaWriteTransaction<'a>
sourcefn get_schema(&self) -> &SchemaWriteTransaction<'a>
type AccessControlsTransactionType = AccessControlsWriteTransaction<'a>
sourcefn get_accesscontrols(&self) -> &AccessControlsWriteTransaction<'a>
sourcefn get_resolve_filter_cache(
&self
) -> &mut ARCacheReadTxn<'a, (IdentityId, Filter<FilterValid>), Filter<FilterValidResolved>>
sourcefn get_domain_uuid(&self) -> Uuid
sourcefn get_domain_display_name(&self) -> &str
sourcefn search_ext(
&self,
se: &SearchEvent
) -> Result<Vec<Entry<EntryReduced, EntryCommitted>>, OperationError>
Conduct a search and apply access controls to yield a set of entries that
have been reduced to the set of user visible avas. Note that if you provide
a SearchEvent
for the internal user, this query will fail. It is invalid for
diff --git a/docs/stable/rustdoc/src/kanidm/server.rs.html b/docs/stable/rustdoc/src/kanidm/server.rs.html
index 42a553eea..edf5b53a0 100644
--- a/docs/stable/rustdoc/src/kanidm/server.rs.html
+++ b/docs/stable/rustdoc/src/kanidm/server.rs.html
@@ -4528,6 +4528,11 @@
4523
4524
4525
+4526
+4527
+4528
+4529
+4530
//! `server` contains the query server, which is the main high level construction
//! to coordinate queries and operations in the server.
@@ -6791,7 +6796,12 @@
spanned!("server::migrate_5_to_6", {
admin_warn!("starting 5 to 6 migration.");
let filter = filter!(f_eq("uuid", (*PVUUID_DOMAIN_INFO).clone()));
- let modlist = ModifyList::new_purge("domain_token_key");
+ let mut modlist = ModifyList::new_purge("domain_token_key");
+ // We need to also push the version here so that we pass schema.
+ modlist.push_mod(Modify::Present(
+ AttrString::from("version"),
+ Value::Uint32(0),
+ ));
self.internal_modify(&filter, &modlist)
// Complete
})
diff --git a/docs/v1.0.0-rc10/rustdoc/kanidm/server/index.html b/docs/v1.0.0-rc10/rustdoc/kanidm/server/index.html
index a27d82dd4..cc14d3c63 100644
--- a/docs/v1.0.0-rc10/rustdoc/kanidm/server/index.html
+++ b/docs/v1.0.0-rc10/rustdoc/kanidm/server/index.html
@@ -4,7 +4,7 @@
Expand description
server
contains the query server, which is the main high level construction
+
Module kanidm::server
source · [−]Expand description
server
contains the query server, which is the main high level construction
to coordinate queries and operations in the server.
Structs
Traits
diff --git a/docs/v1.0.0-rc10/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html b/docs/v1.0.0-rc10/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
index 25cce7db0..0d59764c1 100644
--- a/docs/v1.0.0-rc10/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
+++ b/docs/v1.0.0-rc10/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
@@ -4,19 +4,19 @@
- Struct kanidm::server::QueryServerWriteTransaction
source · [−]pub struct QueryServerWriteTransaction<'a> { /* private fields */ }
Implementations
sourceimpl<'a> QueryServerWriteTransaction<'a>
sourcepub fn create(&self, ce: &CreateEvent) -> Result<(), OperationError>
sourcepub fn delete(&self, de: &DeleteEvent) -> Result<(), OperationError>
sourcepub fn purge_tombstones(&self) -> Result<(), OperationError>
sourcepub fn purge_recycled(&self) -> Result<(), OperationError>
sourcepub fn revive_recycled(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn revive_recycled_legacy(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn modify(&self, me: &ModifyEvent) -> Result<(), OperationError>
sourcepub fn migrate_2_to_3(&self) -> Result<(), OperationError>
Migrate 2 to 3 changes the name, domain_name types from iutf8 to iname.
+ Struct kanidm::server::QueryServerWriteTransaction
source · [−]pub struct QueryServerWriteTransaction<'a> { /* private fields */ }
Implementations
sourceimpl<'a> QueryServerWriteTransaction<'a>
sourcepub fn create(&self, ce: &CreateEvent) -> Result<(), OperationError>
sourcepub fn delete(&self, de: &DeleteEvent) -> Result<(), OperationError>
sourcepub fn purge_tombstones(&self) -> Result<(), OperationError>
sourcepub fn purge_recycled(&self) -> Result<(), OperationError>
sourcepub fn revive_recycled(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn revive_recycled_legacy(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn modify(&self, me: &ModifyEvent) -> Result<(), OperationError>
sourcepub fn migrate_2_to_3(&self) -> Result<(), OperationError>
Migrate 2 to 3 changes the name, domain_name types from iutf8 to iname.
sourcepub fn migrate_3_to_4(&self) -> Result<(), OperationError>
Migrate 3 to 4 - this triggers a regen of the domains security token
as we previously did not have it in the entry.
sourcepub fn migrate_4_to_5(&self) -> Result<(), OperationError>
Migrate 4 to 5 - this triggers a regen of all oauth2 RS es256 der keys
as we previously did not generate them on entry creation.
-sourcepub fn migrate_5_to_6(&self) -> Result<(), OperationError>
Migrate 5 to 6 - This updates the domain info item to reset the token
+
sourcepub fn migrate_5_to_6(&self) -> Result<(), OperationError>
Migrate 5 to 6 - This updates the domain info item to reset the token
keys based on the new encryption types.
-sourcepub fn internal_create(
&self,
entries: Vec<Entry<EntryInit, EntryNew>>
) -> Result<(), OperationError>
sourcepub fn internal_delete(
&self,
filter: &Filter<FilterInvalid>
) -> Result<(), OperationError>
sourcepub fn internal_modify(
&self,
filter: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_valid(
&self,
f_valid: Filter<FilterValid>,
f_intent_valid: Filter<FilterValid>,
m_valid: ModifyList<ModifyValid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_gen_event(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<ModifyEvent, OperationError>
sourcepub fn internal_migrate_or_create_str(
&self,
e_str: &str
) -> Result<(), OperationError>
sourcepub fn internal_migrate_or_create(
&self,
e: Entry<EntryInit, EntryNew>
) -> Result<(), OperationError>
sourcepub fn initialise_schema_core(&self) -> Result<(), OperationError>
sourcepub fn initialise_schema_idm(&self) -> Result<(), OperationError>
sourcepub fn initialise_idm(&self) -> Result<(), OperationError>
sourcepub fn set_domain_display_name(
&self,
new_domain_name: &str
) -> Result<(), OperationError>
Initiate a domain display name change process. This isn’t particularly scary
+
sourcepub fn internal_create(
&self,
entries: Vec<Entry<EntryInit, EntryNew>>
) -> Result<(), OperationError>
sourcepub fn internal_delete(
&self,
filter: &Filter<FilterInvalid>
) -> Result<(), OperationError>
sourcepub fn internal_modify(
&self,
filter: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_valid(
&self,
f_valid: Filter<FilterValid>,
f_intent_valid: Filter<FilterValid>,
m_valid: ModifyList<ModifyValid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_gen_event(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<ModifyEvent, OperationError>
sourcepub fn internal_migrate_or_create_str(
&self,
e_str: &str
) -> Result<(), OperationError>
sourcepub fn internal_migrate_or_create(
&self,
e: Entry<EntryInit, EntryNew>
) -> Result<(), OperationError>
sourcepub fn initialise_schema_core(&self) -> Result<(), OperationError>
sourcepub fn initialise_schema_idm(&self) -> Result<(), OperationError>
sourcepub fn initialise_idm(&self) -> Result<(), OperationError>
sourcepub fn set_domain_display_name(
&self,
new_domain_name: &str
) -> Result<(), OperationError>
Initiate a domain display name change process. This isn’t particularly scary
because it’s just a wibbly human-facing thing, not used for secure
activities (yet)
-sourcepub fn domain_rename(&self, new_domain_name: &str) -> Result<(), OperationError>
Initiate a domain rename process. This is generally an internal function but it’s
+
sourcepub fn domain_rename(&self, new_domain_name: &str) -> Result<(), OperationError>
Initiate a domain rename process. This is generally an internal function but it’s
exposed to the cli for admins to be able to initiate the process.
-sourcepub fn reindex(&self) -> Result<(), OperationError>
sourcepub fn get_changed_uuids(&self) -> &HashSet<Uuid>
sourcepub fn get_changed_ouath2(&self) -> bool
sourcepub fn get_changed_domain(&self) -> bool
sourcepub fn commit(self) -> Result<(), OperationError>
Trait Implementations
sourceimpl<'a> QueryServerTransaction<'a> for QueryServerWriteTransaction<'a>
sourcefn get_domain_name(&self) -> &str
Gets the in-memory domain_name element
+sourcepub fn reindex(&self) -> Result<(), OperationError>
sourcepub fn get_changed_uuids(&self) -> &HashSet<Uuid>
sourcepub fn get_changed_ouath2(&self) -> bool
sourcepub fn get_changed_domain(&self) -> bool
sourcepub fn commit(self) -> Result<(), OperationError>
Trait Implementations
sourceimpl<'a> QueryServerTransaction<'a> for QueryServerWriteTransaction<'a>
sourcefn get_domain_name(&self) -> &str
Gets the in-memory domain_name element
type BackendTransactionType = BackendWriteTransaction<'a>
sourcefn get_be_txn(&self) -> &BackendWriteTransaction<'a>
type SchemaTransactionType = SchemaWriteTransaction<'a>
sourcefn get_schema(&self) -> &SchemaWriteTransaction<'a>
type AccessControlsTransactionType = AccessControlsWriteTransaction<'a>
sourcefn get_accesscontrols(&self) -> &AccessControlsWriteTransaction<'a>
sourcefn get_resolve_filter_cache(
&self
) -> &mut ARCacheReadTxn<'a, (IdentityId, Filter<FilterValid>), Filter<FilterValidResolved>>
sourcefn get_domain_uuid(&self) -> Uuid
sourcefn get_domain_display_name(&self) -> &str
sourcefn search_ext(
&self,
se: &SearchEvent
) -> Result<Vec<Entry<EntryReduced, EntryCommitted>>, OperationError>
Conduct a search and apply access controls to yield a set of entries that
have been reduced to the set of user visible avas. Note that if you provide
a SearchEvent
for the internal user, this query will fail. It is invalid for
diff --git a/docs/v1.0.0-rc10/rustdoc/src/kanidm/server.rs.html b/docs/v1.0.0-rc10/rustdoc/src/kanidm/server.rs.html
index 42a553eea..edf5b53a0 100644
--- a/docs/v1.0.0-rc10/rustdoc/src/kanidm/server.rs.html
+++ b/docs/v1.0.0-rc10/rustdoc/src/kanidm/server.rs.html
@@ -4528,6 +4528,11 @@
4523
4524
4525
+4526
+4527
+4528
+4529
+4530
//! `server` contains the query server, which is the main high level construction
//! to coordinate queries and operations in the server.
@@ -6791,7 +6796,12 @@
spanned!("server::migrate_5_to_6", {
admin_warn!("starting 5 to 6 migration.");
let filter = filter!(f_eq("uuid", (*PVUUID_DOMAIN_INFO).clone()));
- let modlist = ModifyList::new_purge("domain_token_key");
+ let mut modlist = ModifyList::new_purge("domain_token_key");
+ // We need to also push the version here so that we pass schema.
+ modlist.push_mod(Modify::Present(
+ AttrString::from("version"),
+ Value::Uint32(0),
+ ));
self.internal_modify(&filter, &modlist)
// Complete
})
diff --git a/docs/v1.0.0rc1/rustdoc/kanidm/server/index.html b/docs/v1.0.0rc1/rustdoc/kanidm/server/index.html
index a27d82dd4..cc14d3c63 100644
--- a/docs/v1.0.0rc1/rustdoc/kanidm/server/index.html
+++ b/docs/v1.0.0rc1/rustdoc/kanidm/server/index.html
@@ -4,7 +4,7 @@
Expand description
server
contains the query server, which is the main high level construction
+
Module kanidm::server
source · [−]Expand description
server
contains the query server, which is the main high level construction
to coordinate queries and operations in the server.
Structs
Traits
diff --git a/docs/v1.0.0rc1/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html b/docs/v1.0.0rc1/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
index 25cce7db0..0d59764c1 100644
--- a/docs/v1.0.0rc1/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
+++ b/docs/v1.0.0rc1/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
@@ -4,19 +4,19 @@
- Struct kanidm::server::QueryServerWriteTransaction
source · [−]pub struct QueryServerWriteTransaction<'a> { /* private fields */ }
Implementations
sourceimpl<'a> QueryServerWriteTransaction<'a>
sourcepub fn create(&self, ce: &CreateEvent) -> Result<(), OperationError>
sourcepub fn delete(&self, de: &DeleteEvent) -> Result<(), OperationError>
sourcepub fn purge_tombstones(&self) -> Result<(), OperationError>
sourcepub fn purge_recycled(&self) -> Result<(), OperationError>
sourcepub fn revive_recycled(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn revive_recycled_legacy(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn modify(&self, me: &ModifyEvent) -> Result<(), OperationError>
sourcepub fn migrate_2_to_3(&self) -> Result<(), OperationError>
Migrate 2 to 3 changes the name, domain_name types from iutf8 to iname.
+ Struct kanidm::server::QueryServerWriteTransaction
source · [−]pub struct QueryServerWriteTransaction<'a> { /* private fields */ }
Implementations
sourceimpl<'a> QueryServerWriteTransaction<'a>
sourcepub fn create(&self, ce: &CreateEvent) -> Result<(), OperationError>
sourcepub fn delete(&self, de: &DeleteEvent) -> Result<(), OperationError>
sourcepub fn purge_tombstones(&self) -> Result<(), OperationError>
sourcepub fn purge_recycled(&self) -> Result<(), OperationError>
sourcepub fn revive_recycled(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn revive_recycled_legacy(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn modify(&self, me: &ModifyEvent) -> Result<(), OperationError>
sourcepub fn migrate_2_to_3(&self) -> Result<(), OperationError>
Migrate 2 to 3 changes the name, domain_name types from iutf8 to iname.
sourcepub fn migrate_3_to_4(&self) -> Result<(), OperationError>
Migrate 3 to 4 - this triggers a regen of the domains security token
as we previously did not have it in the entry.
sourcepub fn migrate_4_to_5(&self) -> Result<(), OperationError>
Migrate 4 to 5 - this triggers a regen of all oauth2 RS es256 der keys
as we previously did not generate them on entry creation.
-sourcepub fn migrate_5_to_6(&self) -> Result<(), OperationError>
Migrate 5 to 6 - This updates the domain info item to reset the token
+
sourcepub fn migrate_5_to_6(&self) -> Result<(), OperationError>
Migrate 5 to 6 - This updates the domain info item to reset the token
keys based on the new encryption types.
-sourcepub fn internal_create(
&self,
entries: Vec<Entry<EntryInit, EntryNew>>
) -> Result<(), OperationError>
sourcepub fn internal_delete(
&self,
filter: &Filter<FilterInvalid>
) -> Result<(), OperationError>
sourcepub fn internal_modify(
&self,
filter: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_valid(
&self,
f_valid: Filter<FilterValid>,
f_intent_valid: Filter<FilterValid>,
m_valid: ModifyList<ModifyValid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_gen_event(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<ModifyEvent, OperationError>
sourcepub fn internal_migrate_or_create_str(
&self,
e_str: &str
) -> Result<(), OperationError>
sourcepub fn internal_migrate_or_create(
&self,
e: Entry<EntryInit, EntryNew>
) -> Result<(), OperationError>
sourcepub fn initialise_schema_core(&self) -> Result<(), OperationError>
sourcepub fn initialise_schema_idm(&self) -> Result<(), OperationError>
sourcepub fn initialise_idm(&self) -> Result<(), OperationError>
sourcepub fn set_domain_display_name(
&self,
new_domain_name: &str
) -> Result<(), OperationError>
Initiate a domain display name change process. This isn’t particularly scary
+
sourcepub fn internal_create(
&self,
entries: Vec<Entry<EntryInit, EntryNew>>
) -> Result<(), OperationError>
sourcepub fn internal_delete(
&self,
filter: &Filter<FilterInvalid>
) -> Result<(), OperationError>
sourcepub fn internal_modify(
&self,
filter: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_valid(
&self,
f_valid: Filter<FilterValid>,
f_intent_valid: Filter<FilterValid>,
m_valid: ModifyList<ModifyValid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_gen_event(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<ModifyEvent, OperationError>
sourcepub fn internal_migrate_or_create_str(
&self,
e_str: &str
) -> Result<(), OperationError>
sourcepub fn internal_migrate_or_create(
&self,
e: Entry<EntryInit, EntryNew>
) -> Result<(), OperationError>
sourcepub fn initialise_schema_core(&self) -> Result<(), OperationError>
sourcepub fn initialise_schema_idm(&self) -> Result<(), OperationError>
sourcepub fn initialise_idm(&self) -> Result<(), OperationError>
sourcepub fn set_domain_display_name(
&self,
new_domain_name: &str
) -> Result<(), OperationError>
Initiate a domain display name change process. This isn’t particularly scary
because it’s just a wibbly human-facing thing, not used for secure
activities (yet)
-sourcepub fn domain_rename(&self, new_domain_name: &str) -> Result<(), OperationError>
Initiate a domain rename process. This is generally an internal function but it’s
+
sourcepub fn domain_rename(&self, new_domain_name: &str) -> Result<(), OperationError>
Initiate a domain rename process. This is generally an internal function but it’s
exposed to the cli for admins to be able to initiate the process.
-sourcepub fn reindex(&self) -> Result<(), OperationError>
sourcepub fn get_changed_uuids(&self) -> &HashSet<Uuid>
sourcepub fn get_changed_ouath2(&self) -> bool
sourcepub fn get_changed_domain(&self) -> bool
sourcepub fn commit(self) -> Result<(), OperationError>
Trait Implementations
sourceimpl<'a> QueryServerTransaction<'a> for QueryServerWriteTransaction<'a>
sourcefn get_domain_name(&self) -> &str
Gets the in-memory domain_name element
+sourcepub fn reindex(&self) -> Result<(), OperationError>
sourcepub fn get_changed_uuids(&self) -> &HashSet<Uuid>
sourcepub fn get_changed_ouath2(&self) -> bool
sourcepub fn get_changed_domain(&self) -> bool
sourcepub fn commit(self) -> Result<(), OperationError>
Trait Implementations
sourceimpl<'a> QueryServerTransaction<'a> for QueryServerWriteTransaction<'a>
sourcefn get_domain_name(&self) -> &str
Gets the in-memory domain_name element
type BackendTransactionType = BackendWriteTransaction<'a>
sourcefn get_be_txn(&self) -> &BackendWriteTransaction<'a>
type SchemaTransactionType = SchemaWriteTransaction<'a>
sourcefn get_schema(&self) -> &SchemaWriteTransaction<'a>
type AccessControlsTransactionType = AccessControlsWriteTransaction<'a>
sourcefn get_accesscontrols(&self) -> &AccessControlsWriteTransaction<'a>
sourcefn get_resolve_filter_cache(
&self
) -> &mut ARCacheReadTxn<'a, (IdentityId, Filter<FilterValid>), Filter<FilterValidResolved>>
sourcefn get_domain_uuid(&self) -> Uuid
sourcefn get_domain_display_name(&self) -> &str
sourcefn search_ext(
&self,
se: &SearchEvent
) -> Result<Vec<Entry<EntryReduced, EntryCommitted>>, OperationError>
Conduct a search and apply access controls to yield a set of entries that
have been reduced to the set of user visible avas. Note that if you provide
a SearchEvent
for the internal user, this query will fail. It is invalid for
diff --git a/docs/v1.0.0rc1/rustdoc/src/kanidm/server.rs.html b/docs/v1.0.0rc1/rustdoc/src/kanidm/server.rs.html
index 42a553eea..edf5b53a0 100644
--- a/docs/v1.0.0rc1/rustdoc/src/kanidm/server.rs.html
+++ b/docs/v1.0.0rc1/rustdoc/src/kanidm/server.rs.html
@@ -4528,6 +4528,11 @@
4523
4524
4525
+4526
+4527
+4528
+4529
+4530
//! `server` contains the query server, which is the main high level construction
//! to coordinate queries and operations in the server.
@@ -6791,7 +6796,12 @@
spanned!("server::migrate_5_to_6", {
admin_warn!("starting 5 to 6 migration.");
let filter = filter!(f_eq("uuid", (*PVUUID_DOMAIN_INFO).clone()));
- let modlist = ModifyList::new_purge("domain_token_key");
+ let mut modlist = ModifyList::new_purge("domain_token_key");
+ // We need to also push the version here so that we pass schema.
+ modlist.push_mod(Modify::Present(
+ AttrString::from("version"),
+ Value::Uint32(0),
+ ));
self.internal_modify(&filter, &modlist)
// Complete
})
diff --git a/docs/v1.0.0rc10/rustdoc/kanidm/server/index.html b/docs/v1.0.0rc10/rustdoc/kanidm/server/index.html
index a27d82dd4..cc14d3c63 100644
--- a/docs/v1.0.0rc10/rustdoc/kanidm/server/index.html
+++ b/docs/v1.0.0rc10/rustdoc/kanidm/server/index.html
@@ -4,7 +4,7 @@
Expand description
server
contains the query server, which is the main high level construction
+
Module kanidm::server
source · [−]Expand description
server
contains the query server, which is the main high level construction
to coordinate queries and operations in the server.
Structs
Traits
diff --git a/docs/v1.0.0rc10/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html b/docs/v1.0.0rc10/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
index 25cce7db0..0d59764c1 100644
--- a/docs/v1.0.0rc10/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
+++ b/docs/v1.0.0rc10/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
@@ -4,19 +4,19 @@
- Struct kanidm::server::QueryServerWriteTransaction
source · [−]pub struct QueryServerWriteTransaction<'a> { /* private fields */ }
Implementations
sourceimpl<'a> QueryServerWriteTransaction<'a>
sourcepub fn create(&self, ce: &CreateEvent) -> Result<(), OperationError>
sourcepub fn delete(&self, de: &DeleteEvent) -> Result<(), OperationError>
sourcepub fn purge_tombstones(&self) -> Result<(), OperationError>
sourcepub fn purge_recycled(&self) -> Result<(), OperationError>
sourcepub fn revive_recycled(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn revive_recycled_legacy(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn modify(&self, me: &ModifyEvent) -> Result<(), OperationError>
sourcepub fn migrate_2_to_3(&self) -> Result<(), OperationError>
Migrate 2 to 3 changes the name, domain_name types from iutf8 to iname.
+ Struct kanidm::server::QueryServerWriteTransaction
source · [−]pub struct QueryServerWriteTransaction<'a> { /* private fields */ }
Implementations
sourceimpl<'a> QueryServerWriteTransaction<'a>
sourcepub fn create(&self, ce: &CreateEvent) -> Result<(), OperationError>
sourcepub fn delete(&self, de: &DeleteEvent) -> Result<(), OperationError>
sourcepub fn purge_tombstones(&self) -> Result<(), OperationError>
sourcepub fn purge_recycled(&self) -> Result<(), OperationError>
sourcepub fn revive_recycled(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn revive_recycled_legacy(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn modify(&self, me: &ModifyEvent) -> Result<(), OperationError>
sourcepub fn migrate_2_to_3(&self) -> Result<(), OperationError>
Migrate 2 to 3 changes the name, domain_name types from iutf8 to iname.
sourcepub fn migrate_3_to_4(&self) -> Result<(), OperationError>
Migrate 3 to 4 - this triggers a regen of the domains security token
as we previously did not have it in the entry.
sourcepub fn migrate_4_to_5(&self) -> Result<(), OperationError>
Migrate 4 to 5 - this triggers a regen of all oauth2 RS es256 der keys
as we previously did not generate them on entry creation.
-sourcepub fn migrate_5_to_6(&self) -> Result<(), OperationError>
Migrate 5 to 6 - This updates the domain info item to reset the token
+
sourcepub fn migrate_5_to_6(&self) -> Result<(), OperationError>
Migrate 5 to 6 - This updates the domain info item to reset the token
keys based on the new encryption types.
-sourcepub fn internal_create(
&self,
entries: Vec<Entry<EntryInit, EntryNew>>
) -> Result<(), OperationError>
sourcepub fn internal_delete(
&self,
filter: &Filter<FilterInvalid>
) -> Result<(), OperationError>
sourcepub fn internal_modify(
&self,
filter: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_valid(
&self,
f_valid: Filter<FilterValid>,
f_intent_valid: Filter<FilterValid>,
m_valid: ModifyList<ModifyValid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_gen_event(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<ModifyEvent, OperationError>
sourcepub fn internal_migrate_or_create_str(
&self,
e_str: &str
) -> Result<(), OperationError>
sourcepub fn internal_migrate_or_create(
&self,
e: Entry<EntryInit, EntryNew>
) -> Result<(), OperationError>
sourcepub fn initialise_schema_core(&self) -> Result<(), OperationError>
sourcepub fn initialise_schema_idm(&self) -> Result<(), OperationError>
sourcepub fn initialise_idm(&self) -> Result<(), OperationError>
sourcepub fn set_domain_display_name(
&self,
new_domain_name: &str
) -> Result<(), OperationError>
Initiate a domain display name change process. This isn’t particularly scary
+
sourcepub fn internal_create(
&self,
entries: Vec<Entry<EntryInit, EntryNew>>
) -> Result<(), OperationError>
sourcepub fn internal_delete(
&self,
filter: &Filter<FilterInvalid>
) -> Result<(), OperationError>
sourcepub fn internal_modify(
&self,
filter: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_valid(
&self,
f_valid: Filter<FilterValid>,
f_intent_valid: Filter<FilterValid>,
m_valid: ModifyList<ModifyValid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_gen_event(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<ModifyEvent, OperationError>
sourcepub fn internal_migrate_or_create_str(
&self,
e_str: &str
) -> Result<(), OperationError>
sourcepub fn internal_migrate_or_create(
&self,
e: Entry<EntryInit, EntryNew>
) -> Result<(), OperationError>
sourcepub fn initialise_schema_core(&self) -> Result<(), OperationError>
sourcepub fn initialise_schema_idm(&self) -> Result<(), OperationError>
sourcepub fn initialise_idm(&self) -> Result<(), OperationError>
sourcepub fn set_domain_display_name(
&self,
new_domain_name: &str
) -> Result<(), OperationError>
Initiate a domain display name change process. This isn’t particularly scary
because it’s just a wibbly human-facing thing, not used for secure
activities (yet)
-sourcepub fn domain_rename(&self, new_domain_name: &str) -> Result<(), OperationError>
Initiate a domain rename process. This is generally an internal function but it’s
+
sourcepub fn domain_rename(&self, new_domain_name: &str) -> Result<(), OperationError>
Initiate a domain rename process. This is generally an internal function but it’s
exposed to the cli for admins to be able to initiate the process.
-sourcepub fn reindex(&self) -> Result<(), OperationError>
sourcepub fn get_changed_uuids(&self) -> &HashSet<Uuid>
sourcepub fn get_changed_ouath2(&self) -> bool
sourcepub fn get_changed_domain(&self) -> bool
sourcepub fn commit(self) -> Result<(), OperationError>
Trait Implementations
sourceimpl<'a> QueryServerTransaction<'a> for QueryServerWriteTransaction<'a>
sourcefn get_domain_name(&self) -> &str
Gets the in-memory domain_name element
+sourcepub fn reindex(&self) -> Result<(), OperationError>
sourcepub fn get_changed_uuids(&self) -> &HashSet<Uuid>
sourcepub fn get_changed_ouath2(&self) -> bool
sourcepub fn get_changed_domain(&self) -> bool
sourcepub fn commit(self) -> Result<(), OperationError>
Trait Implementations
sourceimpl<'a> QueryServerTransaction<'a> for QueryServerWriteTransaction<'a>
sourcefn get_domain_name(&self) -> &str
Gets the in-memory domain_name element
type BackendTransactionType = BackendWriteTransaction<'a>
sourcefn get_be_txn(&self) -> &BackendWriteTransaction<'a>
type SchemaTransactionType = SchemaWriteTransaction<'a>
sourcefn get_schema(&self) -> &SchemaWriteTransaction<'a>
type AccessControlsTransactionType = AccessControlsWriteTransaction<'a>
sourcefn get_accesscontrols(&self) -> &AccessControlsWriteTransaction<'a>
sourcefn get_resolve_filter_cache(
&self
) -> &mut ARCacheReadTxn<'a, (IdentityId, Filter<FilterValid>), Filter<FilterValidResolved>>
sourcefn get_domain_uuid(&self) -> Uuid
sourcefn get_domain_display_name(&self) -> &str
sourcefn search_ext(
&self,
se: &SearchEvent
) -> Result<Vec<Entry<EntryReduced, EntryCommitted>>, OperationError>
Conduct a search and apply access controls to yield a set of entries that
have been reduced to the set of user visible avas. Note that if you provide
a SearchEvent
for the internal user, this query will fail. It is invalid for
diff --git a/docs/v1.0.0rc10/rustdoc/src/kanidm/server.rs.html b/docs/v1.0.0rc10/rustdoc/src/kanidm/server.rs.html
index 42a553eea..edf5b53a0 100644
--- a/docs/v1.0.0rc10/rustdoc/src/kanidm/server.rs.html
+++ b/docs/v1.0.0rc10/rustdoc/src/kanidm/server.rs.html
@@ -4528,6 +4528,11 @@
4523
4524
4525
+4526
+4527
+4528
+4529
+4530
//! `server` contains the query server, which is the main high level construction
//! to coordinate queries and operations in the server.
@@ -6791,7 +6796,12 @@
spanned!("server::migrate_5_to_6", {
admin_warn!("starting 5 to 6 migration.");
let filter = filter!(f_eq("uuid", (*PVUUID_DOMAIN_INFO).clone()));
- let modlist = ModifyList::new_purge("domain_token_key");
+ let mut modlist = ModifyList::new_purge("domain_token_key");
+ // We need to also push the version here so that we pass schema.
+ modlist.push_mod(Modify::Present(
+ AttrString::from("version"),
+ Value::Uint32(0),
+ ));
self.internal_modify(&filter, &modlist)
// Complete
})
diff --git a/docs/v1.0.0rc11/rustdoc/kanidm/server/index.html b/docs/v1.0.0rc11/rustdoc/kanidm/server/index.html
index a27d82dd4..cc14d3c63 100644
--- a/docs/v1.0.0rc11/rustdoc/kanidm/server/index.html
+++ b/docs/v1.0.0rc11/rustdoc/kanidm/server/index.html
@@ -4,7 +4,7 @@
Expand description
server
contains the query server, which is the main high level construction
+
Module kanidm::server
source · [−]Expand description
server
contains the query server, which is the main high level construction
to coordinate queries and operations in the server.
Structs
Traits
diff --git a/docs/v1.0.0rc11/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html b/docs/v1.0.0rc11/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
index 25cce7db0..0d59764c1 100644
--- a/docs/v1.0.0rc11/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
+++ b/docs/v1.0.0rc11/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
@@ -4,19 +4,19 @@
- Struct kanidm::server::QueryServerWriteTransaction
source · [−]pub struct QueryServerWriteTransaction<'a> { /* private fields */ }
Implementations
sourceimpl<'a> QueryServerWriteTransaction<'a>
sourcepub fn create(&self, ce: &CreateEvent) -> Result<(), OperationError>
sourcepub fn delete(&self, de: &DeleteEvent) -> Result<(), OperationError>
sourcepub fn purge_tombstones(&self) -> Result<(), OperationError>
sourcepub fn purge_recycled(&self) -> Result<(), OperationError>
sourcepub fn revive_recycled(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn revive_recycled_legacy(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn modify(&self, me: &ModifyEvent) -> Result<(), OperationError>
sourcepub fn migrate_2_to_3(&self) -> Result<(), OperationError>
Migrate 2 to 3 changes the name, domain_name types from iutf8 to iname.
+ Struct kanidm::server::QueryServerWriteTransaction
source · [−]pub struct QueryServerWriteTransaction<'a> { /* private fields */ }
Implementations
sourceimpl<'a> QueryServerWriteTransaction<'a>
sourcepub fn create(&self, ce: &CreateEvent) -> Result<(), OperationError>
sourcepub fn delete(&self, de: &DeleteEvent) -> Result<(), OperationError>
sourcepub fn purge_tombstones(&self) -> Result<(), OperationError>
sourcepub fn purge_recycled(&self) -> Result<(), OperationError>
sourcepub fn revive_recycled(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn revive_recycled_legacy(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn modify(&self, me: &ModifyEvent) -> Result<(), OperationError>
sourcepub fn migrate_2_to_3(&self) -> Result<(), OperationError>
Migrate 2 to 3 changes the name, domain_name types from iutf8 to iname.
sourcepub fn migrate_3_to_4(&self) -> Result<(), OperationError>
Migrate 3 to 4 - this triggers a regen of the domains security token
as we previously did not have it in the entry.
sourcepub fn migrate_4_to_5(&self) -> Result<(), OperationError>
Migrate 4 to 5 - this triggers a regen of all oauth2 RS es256 der keys
as we previously did not generate them on entry creation.
-sourcepub fn migrate_5_to_6(&self) -> Result<(), OperationError>
Migrate 5 to 6 - This updates the domain info item to reset the token
+
sourcepub fn migrate_5_to_6(&self) -> Result<(), OperationError>
Migrate 5 to 6 - This updates the domain info item to reset the token
keys based on the new encryption types.
-sourcepub fn internal_create(
&self,
entries: Vec<Entry<EntryInit, EntryNew>>
) -> Result<(), OperationError>
sourcepub fn internal_delete(
&self,
filter: &Filter<FilterInvalid>
) -> Result<(), OperationError>
sourcepub fn internal_modify(
&self,
filter: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_valid(
&self,
f_valid: Filter<FilterValid>,
f_intent_valid: Filter<FilterValid>,
m_valid: ModifyList<ModifyValid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_gen_event(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<ModifyEvent, OperationError>
sourcepub fn internal_migrate_or_create_str(
&self,
e_str: &str
) -> Result<(), OperationError>
sourcepub fn internal_migrate_or_create(
&self,
e: Entry<EntryInit, EntryNew>
) -> Result<(), OperationError>
sourcepub fn initialise_schema_core(&self) -> Result<(), OperationError>
sourcepub fn initialise_schema_idm(&self) -> Result<(), OperationError>
sourcepub fn initialise_idm(&self) -> Result<(), OperationError>
sourcepub fn set_domain_display_name(
&self,
new_domain_name: &str
) -> Result<(), OperationError>
Initiate a domain display name change process. This isn’t particularly scary
+
sourcepub fn internal_create(
&self,
entries: Vec<Entry<EntryInit, EntryNew>>
) -> Result<(), OperationError>
sourcepub fn internal_delete(
&self,
filter: &Filter<FilterInvalid>
) -> Result<(), OperationError>
sourcepub fn internal_modify(
&self,
filter: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_valid(
&self,
f_valid: Filter<FilterValid>,
f_intent_valid: Filter<FilterValid>,
m_valid: ModifyList<ModifyValid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_gen_event(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<ModifyEvent, OperationError>
sourcepub fn internal_migrate_or_create_str(
&self,
e_str: &str
) -> Result<(), OperationError>
sourcepub fn internal_migrate_or_create(
&self,
e: Entry<EntryInit, EntryNew>
) -> Result<(), OperationError>
sourcepub fn initialise_schema_core(&self) -> Result<(), OperationError>
sourcepub fn initialise_schema_idm(&self) -> Result<(), OperationError>
sourcepub fn initialise_idm(&self) -> Result<(), OperationError>
sourcepub fn set_domain_display_name(
&self,
new_domain_name: &str
) -> Result<(), OperationError>
Initiate a domain display name change process. This isn’t particularly scary
because it’s just a wibbly human-facing thing, not used for secure
activities (yet)
-sourcepub fn domain_rename(&self, new_domain_name: &str) -> Result<(), OperationError>
Initiate a domain rename process. This is generally an internal function but it’s
+
sourcepub fn domain_rename(&self, new_domain_name: &str) -> Result<(), OperationError>
Initiate a domain rename process. This is generally an internal function but it’s
exposed to the cli for admins to be able to initiate the process.
-sourcepub fn reindex(&self) -> Result<(), OperationError>
sourcepub fn get_changed_uuids(&self) -> &HashSet<Uuid>
sourcepub fn get_changed_ouath2(&self) -> bool
sourcepub fn get_changed_domain(&self) -> bool
sourcepub fn commit(self) -> Result<(), OperationError>
Trait Implementations
sourceimpl<'a> QueryServerTransaction<'a> for QueryServerWriteTransaction<'a>
sourcefn get_domain_name(&self) -> &str
Gets the in-memory domain_name element
+sourcepub fn reindex(&self) -> Result<(), OperationError>
sourcepub fn get_changed_uuids(&self) -> &HashSet<Uuid>
sourcepub fn get_changed_ouath2(&self) -> bool
sourcepub fn get_changed_domain(&self) -> bool
sourcepub fn commit(self) -> Result<(), OperationError>
Trait Implementations
sourceimpl<'a> QueryServerTransaction<'a> for QueryServerWriteTransaction<'a>
sourcefn get_domain_name(&self) -> &str
Gets the in-memory domain_name element
type BackendTransactionType = BackendWriteTransaction<'a>
sourcefn get_be_txn(&self) -> &BackendWriteTransaction<'a>
type SchemaTransactionType = SchemaWriteTransaction<'a>
sourcefn get_schema(&self) -> &SchemaWriteTransaction<'a>
type AccessControlsTransactionType = AccessControlsWriteTransaction<'a>
sourcefn get_accesscontrols(&self) -> &AccessControlsWriteTransaction<'a>
sourcefn get_resolve_filter_cache(
&self
) -> &mut ARCacheReadTxn<'a, (IdentityId, Filter<FilterValid>), Filter<FilterValidResolved>>
sourcefn get_domain_uuid(&self) -> Uuid
sourcefn get_domain_display_name(&self) -> &str
sourcefn search_ext(
&self,
se: &SearchEvent
) -> Result<Vec<Entry<EntryReduced, EntryCommitted>>, OperationError>
Conduct a search and apply access controls to yield a set of entries that
have been reduced to the set of user visible avas. Note that if you provide
a SearchEvent
for the internal user, this query will fail. It is invalid for
diff --git a/docs/v1.0.0rc11/rustdoc/src/kanidm/server.rs.html b/docs/v1.0.0rc11/rustdoc/src/kanidm/server.rs.html
index 42a553eea..edf5b53a0 100644
--- a/docs/v1.0.0rc11/rustdoc/src/kanidm/server.rs.html
+++ b/docs/v1.0.0rc11/rustdoc/src/kanidm/server.rs.html
@@ -4528,6 +4528,11 @@
4523
4524
4525
+4526
+4527
+4528
+4529
+4530
//! `server` contains the query server, which is the main high level construction
//! to coordinate queries and operations in the server.
@@ -6791,7 +6796,12 @@
spanned!("server::migrate_5_to_6", {
admin_warn!("starting 5 to 6 migration.");
let filter = filter!(f_eq("uuid", (*PVUUID_DOMAIN_INFO).clone()));
- let modlist = ModifyList::new_purge("domain_token_key");
+ let mut modlist = ModifyList::new_purge("domain_token_key");
+ // We need to also push the version here so that we pass schema.
+ modlist.push_mod(Modify::Present(
+ AttrString::from("version"),
+ Value::Uint32(0),
+ ));
self.internal_modify(&filter, &modlist)
// Complete
})
diff --git a/docs/v1.0.0rc2/rustdoc/kanidm/server/index.html b/docs/v1.0.0rc2/rustdoc/kanidm/server/index.html
index a27d82dd4..cc14d3c63 100644
--- a/docs/v1.0.0rc2/rustdoc/kanidm/server/index.html
+++ b/docs/v1.0.0rc2/rustdoc/kanidm/server/index.html
@@ -4,7 +4,7 @@
Expand description
server
contains the query server, which is the main high level construction
+
Module kanidm::server
source · [−]Expand description
server
contains the query server, which is the main high level construction
to coordinate queries and operations in the server.
Structs
Traits
diff --git a/docs/v1.0.0rc2/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html b/docs/v1.0.0rc2/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
index 25cce7db0..0d59764c1 100644
--- a/docs/v1.0.0rc2/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
+++ b/docs/v1.0.0rc2/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
@@ -4,19 +4,19 @@
- Struct kanidm::server::QueryServerWriteTransaction
source · [−]pub struct QueryServerWriteTransaction<'a> { /* private fields */ }
Implementations
sourceimpl<'a> QueryServerWriteTransaction<'a>
sourcepub fn create(&self, ce: &CreateEvent) -> Result<(), OperationError>
sourcepub fn delete(&self, de: &DeleteEvent) -> Result<(), OperationError>
sourcepub fn purge_tombstones(&self) -> Result<(), OperationError>
sourcepub fn purge_recycled(&self) -> Result<(), OperationError>
sourcepub fn revive_recycled(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn revive_recycled_legacy(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn modify(&self, me: &ModifyEvent) -> Result<(), OperationError>
sourcepub fn migrate_2_to_3(&self) -> Result<(), OperationError>
Migrate 2 to 3 changes the name, domain_name types from iutf8 to iname.
+ Struct kanidm::server::QueryServerWriteTransaction
source · [−]pub struct QueryServerWriteTransaction<'a> { /* private fields */ }
Implementations
sourceimpl<'a> QueryServerWriteTransaction<'a>
sourcepub fn create(&self, ce: &CreateEvent) -> Result<(), OperationError>
sourcepub fn delete(&self, de: &DeleteEvent) -> Result<(), OperationError>
sourcepub fn purge_tombstones(&self) -> Result<(), OperationError>
sourcepub fn purge_recycled(&self) -> Result<(), OperationError>
sourcepub fn revive_recycled(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn revive_recycled_legacy(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn modify(&self, me: &ModifyEvent) -> Result<(), OperationError>
sourcepub fn migrate_2_to_3(&self) -> Result<(), OperationError>
Migrate 2 to 3 changes the name, domain_name types from iutf8 to iname.
sourcepub fn migrate_3_to_4(&self) -> Result<(), OperationError>
Migrate 3 to 4 - this triggers a regen of the domains security token
as we previously did not have it in the entry.
sourcepub fn migrate_4_to_5(&self) -> Result<(), OperationError>
Migrate 4 to 5 - this triggers a regen of all oauth2 RS es256 der keys
as we previously did not generate them on entry creation.
-sourcepub fn migrate_5_to_6(&self) -> Result<(), OperationError>
Migrate 5 to 6 - This updates the domain info item to reset the token
+
sourcepub fn migrate_5_to_6(&self) -> Result<(), OperationError>
Migrate 5 to 6 - This updates the domain info item to reset the token
keys based on the new encryption types.
-sourcepub fn internal_create(
&self,
entries: Vec<Entry<EntryInit, EntryNew>>
) -> Result<(), OperationError>
sourcepub fn internal_delete(
&self,
filter: &Filter<FilterInvalid>
) -> Result<(), OperationError>
sourcepub fn internal_modify(
&self,
filter: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_valid(
&self,
f_valid: Filter<FilterValid>,
f_intent_valid: Filter<FilterValid>,
m_valid: ModifyList<ModifyValid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_gen_event(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<ModifyEvent, OperationError>
sourcepub fn internal_migrate_or_create_str(
&self,
e_str: &str
) -> Result<(), OperationError>
sourcepub fn internal_migrate_or_create(
&self,
e: Entry<EntryInit, EntryNew>
) -> Result<(), OperationError>
sourcepub fn initialise_schema_core(&self) -> Result<(), OperationError>
sourcepub fn initialise_schema_idm(&self) -> Result<(), OperationError>
sourcepub fn initialise_idm(&self) -> Result<(), OperationError>
sourcepub fn set_domain_display_name(
&self,
new_domain_name: &str
) -> Result<(), OperationError>
Initiate a domain display name change process. This isn’t particularly scary
+
sourcepub fn internal_create(
&self,
entries: Vec<Entry<EntryInit, EntryNew>>
) -> Result<(), OperationError>
sourcepub fn internal_delete(
&self,
filter: &Filter<FilterInvalid>
) -> Result<(), OperationError>
sourcepub fn internal_modify(
&self,
filter: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_valid(
&self,
f_valid: Filter<FilterValid>,
f_intent_valid: Filter<FilterValid>,
m_valid: ModifyList<ModifyValid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_gen_event(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<ModifyEvent, OperationError>
sourcepub fn internal_migrate_or_create_str(
&self,
e_str: &str
) -> Result<(), OperationError>
sourcepub fn internal_migrate_or_create(
&self,
e: Entry<EntryInit, EntryNew>
) -> Result<(), OperationError>
sourcepub fn initialise_schema_core(&self) -> Result<(), OperationError>
sourcepub fn initialise_schema_idm(&self) -> Result<(), OperationError>
sourcepub fn initialise_idm(&self) -> Result<(), OperationError>
sourcepub fn set_domain_display_name(
&self,
new_domain_name: &str
) -> Result<(), OperationError>
Initiate a domain display name change process. This isn’t particularly scary
because it’s just a wibbly human-facing thing, not used for secure
activities (yet)
-sourcepub fn domain_rename(&self, new_domain_name: &str) -> Result<(), OperationError>
Initiate a domain rename process. This is generally an internal function but it’s
+
sourcepub fn domain_rename(&self, new_domain_name: &str) -> Result<(), OperationError>
Initiate a domain rename process. This is generally an internal function but it’s
exposed to the cli for admins to be able to initiate the process.
-sourcepub fn reindex(&self) -> Result<(), OperationError>
sourcepub fn get_changed_uuids(&self) -> &HashSet<Uuid>
sourcepub fn get_changed_ouath2(&self) -> bool
sourcepub fn get_changed_domain(&self) -> bool
sourcepub fn commit(self) -> Result<(), OperationError>
Trait Implementations
sourceimpl<'a> QueryServerTransaction<'a> for QueryServerWriteTransaction<'a>
sourcefn get_domain_name(&self) -> &str
Gets the in-memory domain_name element
+sourcepub fn reindex(&self) -> Result<(), OperationError>
sourcepub fn get_changed_uuids(&self) -> &HashSet<Uuid>
sourcepub fn get_changed_ouath2(&self) -> bool
sourcepub fn get_changed_domain(&self) -> bool
sourcepub fn commit(self) -> Result<(), OperationError>
Trait Implementations
sourceimpl<'a> QueryServerTransaction<'a> for QueryServerWriteTransaction<'a>
sourcefn get_domain_name(&self) -> &str
Gets the in-memory domain_name element
type BackendTransactionType = BackendWriteTransaction<'a>
sourcefn get_be_txn(&self) -> &BackendWriteTransaction<'a>
type SchemaTransactionType = SchemaWriteTransaction<'a>
sourcefn get_schema(&self) -> &SchemaWriteTransaction<'a>
type AccessControlsTransactionType = AccessControlsWriteTransaction<'a>
sourcefn get_accesscontrols(&self) -> &AccessControlsWriteTransaction<'a>
sourcefn get_resolve_filter_cache(
&self
) -> &mut ARCacheReadTxn<'a, (IdentityId, Filter<FilterValid>), Filter<FilterValidResolved>>
sourcefn get_domain_uuid(&self) -> Uuid
sourcefn get_domain_display_name(&self) -> &str
sourcefn search_ext(
&self,
se: &SearchEvent
) -> Result<Vec<Entry<EntryReduced, EntryCommitted>>, OperationError>
Conduct a search and apply access controls to yield a set of entries that
have been reduced to the set of user visible avas. Note that if you provide
a SearchEvent
for the internal user, this query will fail. It is invalid for
diff --git a/docs/v1.0.0rc2/rustdoc/src/kanidm/server.rs.html b/docs/v1.0.0rc2/rustdoc/src/kanidm/server.rs.html
index 42a553eea..edf5b53a0 100644
--- a/docs/v1.0.0rc2/rustdoc/src/kanidm/server.rs.html
+++ b/docs/v1.0.0rc2/rustdoc/src/kanidm/server.rs.html
@@ -4528,6 +4528,11 @@
4523
4524
4525
+4526
+4527
+4528
+4529
+4530
//! `server` contains the query server, which is the main high level construction
//! to coordinate queries and operations in the server.
@@ -6791,7 +6796,12 @@
spanned!("server::migrate_5_to_6", {
admin_warn!("starting 5 to 6 migration.");
let filter = filter!(f_eq("uuid", (*PVUUID_DOMAIN_INFO).clone()));
- let modlist = ModifyList::new_purge("domain_token_key");
+ let mut modlist = ModifyList::new_purge("domain_token_key");
+ // We need to also push the version here so that we pass schema.
+ modlist.push_mod(Modify::Present(
+ AttrString::from("version"),
+ Value::Uint32(0),
+ ));
self.internal_modify(&filter, &modlist)
// Complete
})
diff --git a/docs/v1.0.0rc3/rustdoc/kanidm/server/index.html b/docs/v1.0.0rc3/rustdoc/kanidm/server/index.html
index a27d82dd4..cc14d3c63 100644
--- a/docs/v1.0.0rc3/rustdoc/kanidm/server/index.html
+++ b/docs/v1.0.0rc3/rustdoc/kanidm/server/index.html
@@ -4,7 +4,7 @@
Expand description
server
contains the query server, which is the main high level construction
+
Module kanidm::server
source · [−]Expand description
server
contains the query server, which is the main high level construction
to coordinate queries and operations in the server.
Structs
Traits
diff --git a/docs/v1.0.0rc3/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html b/docs/v1.0.0rc3/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
index 25cce7db0..0d59764c1 100644
--- a/docs/v1.0.0rc3/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
+++ b/docs/v1.0.0rc3/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
@@ -4,19 +4,19 @@
- Struct kanidm::server::QueryServerWriteTransaction
source · [−]pub struct QueryServerWriteTransaction<'a> { /* private fields */ }
Implementations
sourceimpl<'a> QueryServerWriteTransaction<'a>
sourcepub fn create(&self, ce: &CreateEvent) -> Result<(), OperationError>
sourcepub fn delete(&self, de: &DeleteEvent) -> Result<(), OperationError>
sourcepub fn purge_tombstones(&self) -> Result<(), OperationError>
sourcepub fn purge_recycled(&self) -> Result<(), OperationError>
sourcepub fn revive_recycled(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn revive_recycled_legacy(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn modify(&self, me: &ModifyEvent) -> Result<(), OperationError>
sourcepub fn migrate_2_to_3(&self) -> Result<(), OperationError>
Migrate 2 to 3 changes the name, domain_name types from iutf8 to iname.
+ Struct kanidm::server::QueryServerWriteTransaction
source · [−]pub struct QueryServerWriteTransaction<'a> { /* private fields */ }
Implementations
sourceimpl<'a> QueryServerWriteTransaction<'a>
sourcepub fn create(&self, ce: &CreateEvent) -> Result<(), OperationError>
sourcepub fn delete(&self, de: &DeleteEvent) -> Result<(), OperationError>
sourcepub fn purge_tombstones(&self) -> Result<(), OperationError>
sourcepub fn purge_recycled(&self) -> Result<(), OperationError>
sourcepub fn revive_recycled(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn revive_recycled_legacy(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn modify(&self, me: &ModifyEvent) -> Result<(), OperationError>
sourcepub fn migrate_2_to_3(&self) -> Result<(), OperationError>
Migrate 2 to 3 changes the name, domain_name types from iutf8 to iname.
sourcepub fn migrate_3_to_4(&self) -> Result<(), OperationError>
Migrate 3 to 4 - this triggers a regen of the domains security token
as we previously did not have it in the entry.
sourcepub fn migrate_4_to_5(&self) -> Result<(), OperationError>
Migrate 4 to 5 - this triggers a regen of all oauth2 RS es256 der keys
as we previously did not generate them on entry creation.
-sourcepub fn migrate_5_to_6(&self) -> Result<(), OperationError>
Migrate 5 to 6 - This updates the domain info item to reset the token
+
sourcepub fn migrate_5_to_6(&self) -> Result<(), OperationError>
Migrate 5 to 6 - This updates the domain info item to reset the token
keys based on the new encryption types.
-sourcepub fn internal_create(
&self,
entries: Vec<Entry<EntryInit, EntryNew>>
) -> Result<(), OperationError>
sourcepub fn internal_delete(
&self,
filter: &Filter<FilterInvalid>
) -> Result<(), OperationError>
sourcepub fn internal_modify(
&self,
filter: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_valid(
&self,
f_valid: Filter<FilterValid>,
f_intent_valid: Filter<FilterValid>,
m_valid: ModifyList<ModifyValid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_gen_event(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<ModifyEvent, OperationError>
sourcepub fn internal_migrate_or_create_str(
&self,
e_str: &str
) -> Result<(), OperationError>
sourcepub fn internal_migrate_or_create(
&self,
e: Entry<EntryInit, EntryNew>
) -> Result<(), OperationError>
sourcepub fn initialise_schema_core(&self) -> Result<(), OperationError>
sourcepub fn initialise_schema_idm(&self) -> Result<(), OperationError>
sourcepub fn initialise_idm(&self) -> Result<(), OperationError>
sourcepub fn set_domain_display_name(
&self,
new_domain_name: &str
) -> Result<(), OperationError>
Initiate a domain display name change process. This isn’t particularly scary
+
sourcepub fn internal_create(
&self,
entries: Vec<Entry<EntryInit, EntryNew>>
) -> Result<(), OperationError>
sourcepub fn internal_delete(
&self,
filter: &Filter<FilterInvalid>
) -> Result<(), OperationError>
sourcepub fn internal_modify(
&self,
filter: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_valid(
&self,
f_valid: Filter<FilterValid>,
f_intent_valid: Filter<FilterValid>,
m_valid: ModifyList<ModifyValid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_gen_event(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<ModifyEvent, OperationError>
sourcepub fn internal_migrate_or_create_str(
&self,
e_str: &str
) -> Result<(), OperationError>
sourcepub fn internal_migrate_or_create(
&self,
e: Entry<EntryInit, EntryNew>
) -> Result<(), OperationError>
sourcepub fn initialise_schema_core(&self) -> Result<(), OperationError>
sourcepub fn initialise_schema_idm(&self) -> Result<(), OperationError>
sourcepub fn initialise_idm(&self) -> Result<(), OperationError>
sourcepub fn set_domain_display_name(
&self,
new_domain_name: &str
) -> Result<(), OperationError>
Initiate a domain display name change process. This isn’t particularly scary
because it’s just a wibbly human-facing thing, not used for secure
activities (yet)
-sourcepub fn domain_rename(&self, new_domain_name: &str) -> Result<(), OperationError>
Initiate a domain rename process. This is generally an internal function but it’s
+
sourcepub fn domain_rename(&self, new_domain_name: &str) -> Result<(), OperationError>
Initiate a domain rename process. This is generally an internal function but it’s
exposed to the cli for admins to be able to initiate the process.
-sourcepub fn reindex(&self) -> Result<(), OperationError>
sourcepub fn get_changed_uuids(&self) -> &HashSet<Uuid>
sourcepub fn get_changed_ouath2(&self) -> bool
sourcepub fn get_changed_domain(&self) -> bool
sourcepub fn commit(self) -> Result<(), OperationError>
Trait Implementations
sourceimpl<'a> QueryServerTransaction<'a> for QueryServerWriteTransaction<'a>
sourcefn get_domain_name(&self) -> &str
Gets the in-memory domain_name element
+sourcepub fn reindex(&self) -> Result<(), OperationError>
sourcepub fn get_changed_uuids(&self) -> &HashSet<Uuid>
sourcepub fn get_changed_ouath2(&self) -> bool
sourcepub fn get_changed_domain(&self) -> bool
sourcepub fn commit(self) -> Result<(), OperationError>
Trait Implementations
sourceimpl<'a> QueryServerTransaction<'a> for QueryServerWriteTransaction<'a>
sourcefn get_domain_name(&self) -> &str
Gets the in-memory domain_name element
type BackendTransactionType = BackendWriteTransaction<'a>
sourcefn get_be_txn(&self) -> &BackendWriteTransaction<'a>
type SchemaTransactionType = SchemaWriteTransaction<'a>
sourcefn get_schema(&self) -> &SchemaWriteTransaction<'a>
type AccessControlsTransactionType = AccessControlsWriteTransaction<'a>
sourcefn get_accesscontrols(&self) -> &AccessControlsWriteTransaction<'a>
sourcefn get_resolve_filter_cache(
&self
) -> &mut ARCacheReadTxn<'a, (IdentityId, Filter<FilterValid>), Filter<FilterValidResolved>>
sourcefn get_domain_uuid(&self) -> Uuid
sourcefn get_domain_display_name(&self) -> &str
sourcefn search_ext(
&self,
se: &SearchEvent
) -> Result<Vec<Entry<EntryReduced, EntryCommitted>>, OperationError>
Conduct a search and apply access controls to yield a set of entries that
have been reduced to the set of user visible avas. Note that if you provide
a SearchEvent
for the internal user, this query will fail. It is invalid for
diff --git a/docs/v1.0.0rc3/rustdoc/src/kanidm/server.rs.html b/docs/v1.0.0rc3/rustdoc/src/kanidm/server.rs.html
index 42a553eea..edf5b53a0 100644
--- a/docs/v1.0.0rc3/rustdoc/src/kanidm/server.rs.html
+++ b/docs/v1.0.0rc3/rustdoc/src/kanidm/server.rs.html
@@ -4528,6 +4528,11 @@
4523
4524
4525
+4526
+4527
+4528
+4529
+4530
//! `server` contains the query server, which is the main high level construction
//! to coordinate queries and operations in the server.
@@ -6791,7 +6796,12 @@
spanned!("server::migrate_5_to_6", {
admin_warn!("starting 5 to 6 migration.");
let filter = filter!(f_eq("uuid", (*PVUUID_DOMAIN_INFO).clone()));
- let modlist = ModifyList::new_purge("domain_token_key");
+ let mut modlist = ModifyList::new_purge("domain_token_key");
+ // We need to also push the version here so that we pass schema.
+ modlist.push_mod(Modify::Present(
+ AttrString::from("version"),
+ Value::Uint32(0),
+ ));
self.internal_modify(&filter, &modlist)
// Complete
})
diff --git a/docs/v1.0.0rc7/rustdoc/kanidm/server/index.html b/docs/v1.0.0rc7/rustdoc/kanidm/server/index.html
index a27d82dd4..cc14d3c63 100644
--- a/docs/v1.0.0rc7/rustdoc/kanidm/server/index.html
+++ b/docs/v1.0.0rc7/rustdoc/kanidm/server/index.html
@@ -4,7 +4,7 @@
Expand description
server
contains the query server, which is the main high level construction
+
Module kanidm::server
source · [−]Expand description
server
contains the query server, which is the main high level construction
to coordinate queries and operations in the server.
Structs
Traits
diff --git a/docs/v1.0.0rc7/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html b/docs/v1.0.0rc7/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
index 25cce7db0..0d59764c1 100644
--- a/docs/v1.0.0rc7/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
+++ b/docs/v1.0.0rc7/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
@@ -4,19 +4,19 @@
- Struct kanidm::server::QueryServerWriteTransaction
source · [−]pub struct QueryServerWriteTransaction<'a> { /* private fields */ }
Implementations
sourceimpl<'a> QueryServerWriteTransaction<'a>
sourcepub fn create(&self, ce: &CreateEvent) -> Result<(), OperationError>
sourcepub fn delete(&self, de: &DeleteEvent) -> Result<(), OperationError>
sourcepub fn purge_tombstones(&self) -> Result<(), OperationError>
sourcepub fn purge_recycled(&self) -> Result<(), OperationError>
sourcepub fn revive_recycled(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn revive_recycled_legacy(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn modify(&self, me: &ModifyEvent) -> Result<(), OperationError>
sourcepub fn migrate_2_to_3(&self) -> Result<(), OperationError>
Migrate 2 to 3 changes the name, domain_name types from iutf8 to iname.
+ Struct kanidm::server::QueryServerWriteTransaction
source · [−]pub struct QueryServerWriteTransaction<'a> { /* private fields */ }
Implementations
sourceimpl<'a> QueryServerWriteTransaction<'a>
sourcepub fn create(&self, ce: &CreateEvent) -> Result<(), OperationError>
sourcepub fn delete(&self, de: &DeleteEvent) -> Result<(), OperationError>
sourcepub fn purge_tombstones(&self) -> Result<(), OperationError>
sourcepub fn purge_recycled(&self) -> Result<(), OperationError>
sourcepub fn revive_recycled(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn revive_recycled_legacy(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn modify(&self, me: &ModifyEvent) -> Result<(), OperationError>
sourcepub fn migrate_2_to_3(&self) -> Result<(), OperationError>
Migrate 2 to 3 changes the name, domain_name types from iutf8 to iname.
sourcepub fn migrate_3_to_4(&self) -> Result<(), OperationError>
Migrate 3 to 4 - this triggers a regen of the domains security token
as we previously did not have it in the entry.
sourcepub fn migrate_4_to_5(&self) -> Result<(), OperationError>
Migrate 4 to 5 - this triggers a regen of all oauth2 RS es256 der keys
as we previously did not generate them on entry creation.
-sourcepub fn migrate_5_to_6(&self) -> Result<(), OperationError>
Migrate 5 to 6 - This updates the domain info item to reset the token
+
sourcepub fn migrate_5_to_6(&self) -> Result<(), OperationError>
Migrate 5 to 6 - This updates the domain info item to reset the token
keys based on the new encryption types.
-sourcepub fn internal_create(
&self,
entries: Vec<Entry<EntryInit, EntryNew>>
) -> Result<(), OperationError>
sourcepub fn internal_delete(
&self,
filter: &Filter<FilterInvalid>
) -> Result<(), OperationError>
sourcepub fn internal_modify(
&self,
filter: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_valid(
&self,
f_valid: Filter<FilterValid>,
f_intent_valid: Filter<FilterValid>,
m_valid: ModifyList<ModifyValid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_gen_event(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<ModifyEvent, OperationError>
sourcepub fn internal_migrate_or_create_str(
&self,
e_str: &str
) -> Result<(), OperationError>
sourcepub fn internal_migrate_or_create(
&self,
e: Entry<EntryInit, EntryNew>
) -> Result<(), OperationError>
sourcepub fn initialise_schema_core(&self) -> Result<(), OperationError>
sourcepub fn initialise_schema_idm(&self) -> Result<(), OperationError>
sourcepub fn initialise_idm(&self) -> Result<(), OperationError>
sourcepub fn set_domain_display_name(
&self,
new_domain_name: &str
) -> Result<(), OperationError>
Initiate a domain display name change process. This isn’t particularly scary
+
sourcepub fn internal_create(
&self,
entries: Vec<Entry<EntryInit, EntryNew>>
) -> Result<(), OperationError>
sourcepub fn internal_delete(
&self,
filter: &Filter<FilterInvalid>
) -> Result<(), OperationError>
sourcepub fn internal_modify(
&self,
filter: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_valid(
&self,
f_valid: Filter<FilterValid>,
f_intent_valid: Filter<FilterValid>,
m_valid: ModifyList<ModifyValid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_gen_event(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<ModifyEvent, OperationError>
sourcepub fn internal_migrate_or_create_str(
&self,
e_str: &str
) -> Result<(), OperationError>
sourcepub fn internal_migrate_or_create(
&self,
e: Entry<EntryInit, EntryNew>
) -> Result<(), OperationError>
sourcepub fn initialise_schema_core(&self) -> Result<(), OperationError>
sourcepub fn initialise_schema_idm(&self) -> Result<(), OperationError>
sourcepub fn initialise_idm(&self) -> Result<(), OperationError>
sourcepub fn set_domain_display_name(
&self,
new_domain_name: &str
) -> Result<(), OperationError>
Initiate a domain display name change process. This isn’t particularly scary
because it’s just a wibbly human-facing thing, not used for secure
activities (yet)
-sourcepub fn domain_rename(&self, new_domain_name: &str) -> Result<(), OperationError>
Initiate a domain rename process. This is generally an internal function but it’s
+
sourcepub fn domain_rename(&self, new_domain_name: &str) -> Result<(), OperationError>
Initiate a domain rename process. This is generally an internal function but it’s
exposed to the cli for admins to be able to initiate the process.
-sourcepub fn reindex(&self) -> Result<(), OperationError>
sourcepub fn get_changed_uuids(&self) -> &HashSet<Uuid>
sourcepub fn get_changed_ouath2(&self) -> bool
sourcepub fn get_changed_domain(&self) -> bool
sourcepub fn commit(self) -> Result<(), OperationError>
Trait Implementations
sourceimpl<'a> QueryServerTransaction<'a> for QueryServerWriteTransaction<'a>
sourcefn get_domain_name(&self) -> &str
Gets the in-memory domain_name element
+sourcepub fn reindex(&self) -> Result<(), OperationError>
sourcepub fn get_changed_uuids(&self) -> &HashSet<Uuid>
sourcepub fn get_changed_ouath2(&self) -> bool
sourcepub fn get_changed_domain(&self) -> bool
sourcepub fn commit(self) -> Result<(), OperationError>
Trait Implementations
sourceimpl<'a> QueryServerTransaction<'a> for QueryServerWriteTransaction<'a>
sourcefn get_domain_name(&self) -> &str
Gets the in-memory domain_name element
type BackendTransactionType = BackendWriteTransaction<'a>
sourcefn get_be_txn(&self) -> &BackendWriteTransaction<'a>
type SchemaTransactionType = SchemaWriteTransaction<'a>
sourcefn get_schema(&self) -> &SchemaWriteTransaction<'a>
type AccessControlsTransactionType = AccessControlsWriteTransaction<'a>
sourcefn get_accesscontrols(&self) -> &AccessControlsWriteTransaction<'a>
sourcefn get_resolve_filter_cache(
&self
) -> &mut ARCacheReadTxn<'a, (IdentityId, Filter<FilterValid>), Filter<FilterValidResolved>>
sourcefn get_domain_uuid(&self) -> Uuid
sourcefn get_domain_display_name(&self) -> &str
sourcefn search_ext(
&self,
se: &SearchEvent
) -> Result<Vec<Entry<EntryReduced, EntryCommitted>>, OperationError>
Conduct a search and apply access controls to yield a set of entries that
have been reduced to the set of user visible avas. Note that if you provide
a SearchEvent
for the internal user, this query will fail. It is invalid for
diff --git a/docs/v1.0.0rc7/rustdoc/src/kanidm/server.rs.html b/docs/v1.0.0rc7/rustdoc/src/kanidm/server.rs.html
index 42a553eea..edf5b53a0 100644
--- a/docs/v1.0.0rc7/rustdoc/src/kanidm/server.rs.html
+++ b/docs/v1.0.0rc7/rustdoc/src/kanidm/server.rs.html
@@ -4528,6 +4528,11 @@
4523
4524
4525
+4526
+4527
+4528
+4529
+4530
//! `server` contains the query server, which is the main high level construction
//! to coordinate queries and operations in the server.
@@ -6791,7 +6796,12 @@
spanned!("server::migrate_5_to_6", {
admin_warn!("starting 5 to 6 migration.");
let filter = filter!(f_eq("uuid", (*PVUUID_DOMAIN_INFO).clone()));
- let modlist = ModifyList::new_purge("domain_token_key");
+ let mut modlist = ModifyList::new_purge("domain_token_key");
+ // We need to also push the version here so that we pass schema.
+ modlist.push_mod(Modify::Present(
+ AttrString::from("version"),
+ Value::Uint32(0),
+ ));
self.internal_modify(&filter, &modlist)
// Complete
})
diff --git a/docs/v1.0.0rc8/rustdoc/kanidm/server/index.html b/docs/v1.0.0rc8/rustdoc/kanidm/server/index.html
index a27d82dd4..cc14d3c63 100644
--- a/docs/v1.0.0rc8/rustdoc/kanidm/server/index.html
+++ b/docs/v1.0.0rc8/rustdoc/kanidm/server/index.html
@@ -4,7 +4,7 @@
Expand description
server
contains the query server, which is the main high level construction
+
Module kanidm::server
source · [−]Expand description
server
contains the query server, which is the main high level construction
to coordinate queries and operations in the server.
Structs
Traits
diff --git a/docs/v1.0.0rc8/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html b/docs/v1.0.0rc8/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
index 25cce7db0..0d59764c1 100644
--- a/docs/v1.0.0rc8/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
+++ b/docs/v1.0.0rc8/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
@@ -4,19 +4,19 @@
- Struct kanidm::server::QueryServerWriteTransaction
source · [−]pub struct QueryServerWriteTransaction<'a> { /* private fields */ }
Implementations
sourceimpl<'a> QueryServerWriteTransaction<'a>
sourcepub fn create(&self, ce: &CreateEvent) -> Result<(), OperationError>
sourcepub fn delete(&self, de: &DeleteEvent) -> Result<(), OperationError>
sourcepub fn purge_tombstones(&self) -> Result<(), OperationError>
sourcepub fn purge_recycled(&self) -> Result<(), OperationError>
sourcepub fn revive_recycled(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn revive_recycled_legacy(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn modify(&self, me: &ModifyEvent) -> Result<(), OperationError>
sourcepub fn migrate_2_to_3(&self) -> Result<(), OperationError>
Migrate 2 to 3 changes the name, domain_name types from iutf8 to iname.
+ Struct kanidm::server::QueryServerWriteTransaction
source · [−]pub struct QueryServerWriteTransaction<'a> { /* private fields */ }
Implementations
sourceimpl<'a> QueryServerWriteTransaction<'a>
sourcepub fn create(&self, ce: &CreateEvent) -> Result<(), OperationError>
sourcepub fn delete(&self, de: &DeleteEvent) -> Result<(), OperationError>
sourcepub fn purge_tombstones(&self) -> Result<(), OperationError>
sourcepub fn purge_recycled(&self) -> Result<(), OperationError>
sourcepub fn revive_recycled(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn revive_recycled_legacy(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn modify(&self, me: &ModifyEvent) -> Result<(), OperationError>
sourcepub fn migrate_2_to_3(&self) -> Result<(), OperationError>
Migrate 2 to 3 changes the name, domain_name types from iutf8 to iname.
sourcepub fn migrate_3_to_4(&self) -> Result<(), OperationError>
Migrate 3 to 4 - this triggers a regen of the domains security token
as we previously did not have it in the entry.
sourcepub fn migrate_4_to_5(&self) -> Result<(), OperationError>
Migrate 4 to 5 - this triggers a regen of all oauth2 RS es256 der keys
as we previously did not generate them on entry creation.
-sourcepub fn migrate_5_to_6(&self) -> Result<(), OperationError>
Migrate 5 to 6 - This updates the domain info item to reset the token
+
sourcepub fn migrate_5_to_6(&self) -> Result<(), OperationError>
Migrate 5 to 6 - This updates the domain info item to reset the token
keys based on the new encryption types.
-sourcepub fn internal_create(
&self,
entries: Vec<Entry<EntryInit, EntryNew>>
) -> Result<(), OperationError>
sourcepub fn internal_delete(
&self,
filter: &Filter<FilterInvalid>
) -> Result<(), OperationError>
sourcepub fn internal_modify(
&self,
filter: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_valid(
&self,
f_valid: Filter<FilterValid>,
f_intent_valid: Filter<FilterValid>,
m_valid: ModifyList<ModifyValid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_gen_event(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<ModifyEvent, OperationError>
sourcepub fn internal_migrate_or_create_str(
&self,
e_str: &str
) -> Result<(), OperationError>
sourcepub fn internal_migrate_or_create(
&self,
e: Entry<EntryInit, EntryNew>
) -> Result<(), OperationError>
sourcepub fn initialise_schema_core(&self) -> Result<(), OperationError>
sourcepub fn initialise_schema_idm(&self) -> Result<(), OperationError>
sourcepub fn initialise_idm(&self) -> Result<(), OperationError>
sourcepub fn set_domain_display_name(
&self,
new_domain_name: &str
) -> Result<(), OperationError>
Initiate a domain display name change process. This isn’t particularly scary
+
sourcepub fn internal_create(
&self,
entries: Vec<Entry<EntryInit, EntryNew>>
) -> Result<(), OperationError>
sourcepub fn internal_delete(
&self,
filter: &Filter<FilterInvalid>
) -> Result<(), OperationError>
sourcepub fn internal_modify(
&self,
filter: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_valid(
&self,
f_valid: Filter<FilterValid>,
f_intent_valid: Filter<FilterValid>,
m_valid: ModifyList<ModifyValid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_gen_event(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<ModifyEvent, OperationError>
sourcepub fn internal_migrate_or_create_str(
&self,
e_str: &str
) -> Result<(), OperationError>
sourcepub fn internal_migrate_or_create(
&self,
e: Entry<EntryInit, EntryNew>
) -> Result<(), OperationError>
sourcepub fn initialise_schema_core(&self) -> Result<(), OperationError>
sourcepub fn initialise_schema_idm(&self) -> Result<(), OperationError>
sourcepub fn initialise_idm(&self) -> Result<(), OperationError>
sourcepub fn set_domain_display_name(
&self,
new_domain_name: &str
) -> Result<(), OperationError>
Initiate a domain display name change process. This isn’t particularly scary
because it’s just a wibbly human-facing thing, not used for secure
activities (yet)
-sourcepub fn domain_rename(&self, new_domain_name: &str) -> Result<(), OperationError>
Initiate a domain rename process. This is generally an internal function but it’s
+
sourcepub fn domain_rename(&self, new_domain_name: &str) -> Result<(), OperationError>
Initiate a domain rename process. This is generally an internal function but it’s
exposed to the cli for admins to be able to initiate the process.
-sourcepub fn reindex(&self) -> Result<(), OperationError>
sourcepub fn get_changed_uuids(&self) -> &HashSet<Uuid>
sourcepub fn get_changed_ouath2(&self) -> bool
sourcepub fn get_changed_domain(&self) -> bool
sourcepub fn commit(self) -> Result<(), OperationError>
Trait Implementations
sourceimpl<'a> QueryServerTransaction<'a> for QueryServerWriteTransaction<'a>
sourcefn get_domain_name(&self) -> &str
Gets the in-memory domain_name element
+sourcepub fn reindex(&self) -> Result<(), OperationError>
sourcepub fn get_changed_uuids(&self) -> &HashSet<Uuid>
sourcepub fn get_changed_ouath2(&self) -> bool
sourcepub fn get_changed_domain(&self) -> bool
sourcepub fn commit(self) -> Result<(), OperationError>
Trait Implementations
sourceimpl<'a> QueryServerTransaction<'a> for QueryServerWriteTransaction<'a>
sourcefn get_domain_name(&self) -> &str
Gets the in-memory domain_name element
type BackendTransactionType = BackendWriteTransaction<'a>
sourcefn get_be_txn(&self) -> &BackendWriteTransaction<'a>
type SchemaTransactionType = SchemaWriteTransaction<'a>
sourcefn get_schema(&self) -> &SchemaWriteTransaction<'a>
type AccessControlsTransactionType = AccessControlsWriteTransaction<'a>
sourcefn get_accesscontrols(&self) -> &AccessControlsWriteTransaction<'a>
sourcefn get_resolve_filter_cache(
&self
) -> &mut ARCacheReadTxn<'a, (IdentityId, Filter<FilterValid>), Filter<FilterValidResolved>>
sourcefn get_domain_uuid(&self) -> Uuid
sourcefn get_domain_display_name(&self) -> &str
sourcefn search_ext(
&self,
se: &SearchEvent
) -> Result<Vec<Entry<EntryReduced, EntryCommitted>>, OperationError>
Conduct a search and apply access controls to yield a set of entries that
have been reduced to the set of user visible avas. Note that if you provide
a SearchEvent
for the internal user, this query will fail. It is invalid for
diff --git a/docs/v1.0.0rc8/rustdoc/src/kanidm/server.rs.html b/docs/v1.0.0rc8/rustdoc/src/kanidm/server.rs.html
index 42a553eea..edf5b53a0 100644
--- a/docs/v1.0.0rc8/rustdoc/src/kanidm/server.rs.html
+++ b/docs/v1.0.0rc8/rustdoc/src/kanidm/server.rs.html
@@ -4528,6 +4528,11 @@
4523
4524
4525
+4526
+4527
+4528
+4529
+4530
//! `server` contains the query server, which is the main high level construction
//! to coordinate queries and operations in the server.
@@ -6791,7 +6796,12 @@
spanned!("server::migrate_5_to_6", {
admin_warn!("starting 5 to 6 migration.");
let filter = filter!(f_eq("uuid", (*PVUUID_DOMAIN_INFO).clone()));
- let modlist = ModifyList::new_purge("domain_token_key");
+ let mut modlist = ModifyList::new_purge("domain_token_key");
+ // We need to also push the version here so that we pass schema.
+ modlist.push_mod(Modify::Present(
+ AttrString::from("version"),
+ Value::Uint32(0),
+ ));
self.internal_modify(&filter, &modlist)
// Complete
})
diff --git a/docs/v1.0.0rc9/rustdoc/kanidm/server/index.html b/docs/v1.0.0rc9/rustdoc/kanidm/server/index.html
index a27d82dd4..cc14d3c63 100644
--- a/docs/v1.0.0rc9/rustdoc/kanidm/server/index.html
+++ b/docs/v1.0.0rc9/rustdoc/kanidm/server/index.html
@@ -4,7 +4,7 @@
Expand description
server
contains the query server, which is the main high level construction
+
Module kanidm::server
source · [−]Expand description
server
contains the query server, which is the main high level construction
to coordinate queries and operations in the server.
Structs
Traits
diff --git a/docs/v1.0.0rc9/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html b/docs/v1.0.0rc9/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
index 25cce7db0..0d59764c1 100644
--- a/docs/v1.0.0rc9/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
+++ b/docs/v1.0.0rc9/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
@@ -4,19 +4,19 @@
- Struct kanidm::server::QueryServerWriteTransaction
source · [−]pub struct QueryServerWriteTransaction<'a> { /* private fields */ }
Implementations
sourceimpl<'a> QueryServerWriteTransaction<'a>
sourcepub fn create(&self, ce: &CreateEvent) -> Result<(), OperationError>
sourcepub fn delete(&self, de: &DeleteEvent) -> Result<(), OperationError>
sourcepub fn purge_tombstones(&self) -> Result<(), OperationError>
sourcepub fn purge_recycled(&self) -> Result<(), OperationError>
sourcepub fn revive_recycled(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn revive_recycled_legacy(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn modify(&self, me: &ModifyEvent) -> Result<(), OperationError>
sourcepub fn migrate_2_to_3(&self) -> Result<(), OperationError>
Migrate 2 to 3 changes the name, domain_name types from iutf8 to iname.
+ Struct kanidm::server::QueryServerWriteTransaction
source · [−]pub struct QueryServerWriteTransaction<'a> { /* private fields */ }
Implementations
sourceimpl<'a> QueryServerWriteTransaction<'a>
sourcepub fn create(&self, ce: &CreateEvent) -> Result<(), OperationError>
sourcepub fn delete(&self, de: &DeleteEvent) -> Result<(), OperationError>
sourcepub fn purge_tombstones(&self) -> Result<(), OperationError>
sourcepub fn purge_recycled(&self) -> Result<(), OperationError>
sourcepub fn revive_recycled(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn revive_recycled_legacy(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn modify(&self, me: &ModifyEvent) -> Result<(), OperationError>
sourcepub fn migrate_2_to_3(&self) -> Result<(), OperationError>
Migrate 2 to 3 changes the name, domain_name types from iutf8 to iname.
sourcepub fn migrate_3_to_4(&self) -> Result<(), OperationError>
Migrate 3 to 4 - this triggers a regen of the domains security token
as we previously did not have it in the entry.
sourcepub fn migrate_4_to_5(&self) -> Result<(), OperationError>
Migrate 4 to 5 - this triggers a regen of all oauth2 RS es256 der keys
as we previously did not generate them on entry creation.
-sourcepub fn migrate_5_to_6(&self) -> Result<(), OperationError>
Migrate 5 to 6 - This updates the domain info item to reset the token
+
sourcepub fn migrate_5_to_6(&self) -> Result<(), OperationError>
Migrate 5 to 6 - This updates the domain info item to reset the token
keys based on the new encryption types.
-sourcepub fn internal_create(
&self,
entries: Vec<Entry<EntryInit, EntryNew>>
) -> Result<(), OperationError>
sourcepub fn internal_delete(
&self,
filter: &Filter<FilterInvalid>
) -> Result<(), OperationError>
sourcepub fn internal_modify(
&self,
filter: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_valid(
&self,
f_valid: Filter<FilterValid>,
f_intent_valid: Filter<FilterValid>,
m_valid: ModifyList<ModifyValid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_gen_event(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<ModifyEvent, OperationError>
sourcepub fn internal_migrate_or_create_str(
&self,
e_str: &str
) -> Result<(), OperationError>
sourcepub fn internal_migrate_or_create(
&self,
e: Entry<EntryInit, EntryNew>
) -> Result<(), OperationError>
sourcepub fn initialise_schema_core(&self) -> Result<(), OperationError>
sourcepub fn initialise_schema_idm(&self) -> Result<(), OperationError>
sourcepub fn initialise_idm(&self) -> Result<(), OperationError>
sourcepub fn set_domain_display_name(
&self,
new_domain_name: &str
) -> Result<(), OperationError>
Initiate a domain display name change process. This isn’t particularly scary
+
sourcepub fn internal_create(
&self,
entries: Vec<Entry<EntryInit, EntryNew>>
) -> Result<(), OperationError>
sourcepub fn internal_delete(
&self,
filter: &Filter<FilterInvalid>
) -> Result<(), OperationError>
sourcepub fn internal_modify(
&self,
filter: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_valid(
&self,
f_valid: Filter<FilterValid>,
f_intent_valid: Filter<FilterValid>,
m_valid: ModifyList<ModifyValid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_gen_event(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<ModifyEvent, OperationError>
sourcepub fn internal_migrate_or_create_str(
&self,
e_str: &str
) -> Result<(), OperationError>
sourcepub fn internal_migrate_or_create(
&self,
e: Entry<EntryInit, EntryNew>
) -> Result<(), OperationError>
sourcepub fn initialise_schema_core(&self) -> Result<(), OperationError>
sourcepub fn initialise_schema_idm(&self) -> Result<(), OperationError>
sourcepub fn initialise_idm(&self) -> Result<(), OperationError>
sourcepub fn set_domain_display_name(
&self,
new_domain_name: &str
) -> Result<(), OperationError>
Initiate a domain display name change process. This isn’t particularly scary
because it’s just a wibbly human-facing thing, not used for secure
activities (yet)
-sourcepub fn domain_rename(&self, new_domain_name: &str) -> Result<(), OperationError>
Initiate a domain rename process. This is generally an internal function but it’s
+
sourcepub fn domain_rename(&self, new_domain_name: &str) -> Result<(), OperationError>
Initiate a domain rename process. This is generally an internal function but it’s
exposed to the cli for admins to be able to initiate the process.
-sourcepub fn reindex(&self) -> Result<(), OperationError>
sourcepub fn get_changed_uuids(&self) -> &HashSet<Uuid>
sourcepub fn get_changed_ouath2(&self) -> bool
sourcepub fn get_changed_domain(&self) -> bool
sourcepub fn commit(self) -> Result<(), OperationError>
Trait Implementations
sourceimpl<'a> QueryServerTransaction<'a> for QueryServerWriteTransaction<'a>
sourcefn get_domain_name(&self) -> &str
Gets the in-memory domain_name element
+sourcepub fn reindex(&self) -> Result<(), OperationError>
sourcepub fn get_changed_uuids(&self) -> &HashSet<Uuid>
sourcepub fn get_changed_ouath2(&self) -> bool
sourcepub fn get_changed_domain(&self) -> bool
sourcepub fn commit(self) -> Result<(), OperationError>
Trait Implementations
sourceimpl<'a> QueryServerTransaction<'a> for QueryServerWriteTransaction<'a>
sourcefn get_domain_name(&self) -> &str
Gets the in-memory domain_name element
type BackendTransactionType = BackendWriteTransaction<'a>
sourcefn get_be_txn(&self) -> &BackendWriteTransaction<'a>
type SchemaTransactionType = SchemaWriteTransaction<'a>
sourcefn get_schema(&self) -> &SchemaWriteTransaction<'a>
type AccessControlsTransactionType = AccessControlsWriteTransaction<'a>
sourcefn get_accesscontrols(&self) -> &AccessControlsWriteTransaction<'a>
sourcefn get_resolve_filter_cache(
&self
) -> &mut ARCacheReadTxn<'a, (IdentityId, Filter<FilterValid>), Filter<FilterValidResolved>>
sourcefn get_domain_uuid(&self) -> Uuid
sourcefn get_domain_display_name(&self) -> &str
sourcefn search_ext(
&self,
se: &SearchEvent
) -> Result<Vec<Entry<EntryReduced, EntryCommitted>>, OperationError>
Conduct a search and apply access controls to yield a set of entries that
have been reduced to the set of user visible avas. Note that if you provide
a SearchEvent
for the internal user, this query will fail. It is invalid for
diff --git a/docs/v1.0.0rc9/rustdoc/src/kanidm/server.rs.html b/docs/v1.0.0rc9/rustdoc/src/kanidm/server.rs.html
index 42a553eea..edf5b53a0 100644
--- a/docs/v1.0.0rc9/rustdoc/src/kanidm/server.rs.html
+++ b/docs/v1.0.0rc9/rustdoc/src/kanidm/server.rs.html
@@ -4528,6 +4528,11 @@
4523
4524
4525
+4526
+4527
+4528
+4529
+4530
//! `server` contains the query server, which is the main high level construction
//! to coordinate queries and operations in the server.
@@ -6791,7 +6796,12 @@
spanned!("server::migrate_5_to_6", {
admin_warn!("starting 5 to 6 migration.");
let filter = filter!(f_eq("uuid", (*PVUUID_DOMAIN_INFO).clone()));
- let modlist = ModifyList::new_purge("domain_token_key");
+ let mut modlist = ModifyList::new_purge("domain_token_key");
+ // We need to also push the version here so that we pass schema.
+ modlist.push_mod(Modify::Present(
+ AttrString::from("version"),
+ Value::Uint32(0),
+ ));
self.internal_modify(&filter, &modlist)
// Complete
})
diff --git a/docs/v1.1.0-alpha.2/rustdoc/kanidm/server/index.html b/docs/v1.1.0-alpha.2/rustdoc/kanidm/server/index.html
index a27d82dd4..cc14d3c63 100644
--- a/docs/v1.1.0-alpha.2/rustdoc/kanidm/server/index.html
+++ b/docs/v1.1.0-alpha.2/rustdoc/kanidm/server/index.html
@@ -4,7 +4,7 @@
Expand description
server
contains the query server, which is the main high level construction
+
Module kanidm::server
source · [−]Expand description
server
contains the query server, which is the main high level construction
to coordinate queries and operations in the server.
Structs
Traits
diff --git a/docs/v1.1.0-alpha.2/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html b/docs/v1.1.0-alpha.2/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
index 25cce7db0..0d59764c1 100644
--- a/docs/v1.1.0-alpha.2/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
+++ b/docs/v1.1.0-alpha.2/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
@@ -4,19 +4,19 @@
- Struct kanidm::server::QueryServerWriteTransaction
source · [−]pub struct QueryServerWriteTransaction<'a> { /* private fields */ }
Implementations
sourceimpl<'a> QueryServerWriteTransaction<'a>
sourcepub fn create(&self, ce: &CreateEvent) -> Result<(), OperationError>
sourcepub fn delete(&self, de: &DeleteEvent) -> Result<(), OperationError>
sourcepub fn purge_tombstones(&self) -> Result<(), OperationError>
sourcepub fn purge_recycled(&self) -> Result<(), OperationError>
sourcepub fn revive_recycled(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn revive_recycled_legacy(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn modify(&self, me: &ModifyEvent) -> Result<(), OperationError>
sourcepub fn migrate_2_to_3(&self) -> Result<(), OperationError>
Migrate 2 to 3 changes the name, domain_name types from iutf8 to iname.
+ Struct kanidm::server::QueryServerWriteTransaction
source · [−]pub struct QueryServerWriteTransaction<'a> { /* private fields */ }
Implementations
sourceimpl<'a> QueryServerWriteTransaction<'a>
sourcepub fn create(&self, ce: &CreateEvent) -> Result<(), OperationError>
sourcepub fn delete(&self, de: &DeleteEvent) -> Result<(), OperationError>
sourcepub fn purge_tombstones(&self) -> Result<(), OperationError>
sourcepub fn purge_recycled(&self) -> Result<(), OperationError>
sourcepub fn revive_recycled(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn revive_recycled_legacy(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn modify(&self, me: &ModifyEvent) -> Result<(), OperationError>
sourcepub fn migrate_2_to_3(&self) -> Result<(), OperationError>
Migrate 2 to 3 changes the name, domain_name types from iutf8 to iname.
sourcepub fn migrate_3_to_4(&self) -> Result<(), OperationError>
Migrate 3 to 4 - this triggers a regen of the domains security token
as we previously did not have it in the entry.
sourcepub fn migrate_4_to_5(&self) -> Result<(), OperationError>
Migrate 4 to 5 - this triggers a regen of all oauth2 RS es256 der keys
as we previously did not generate them on entry creation.
-sourcepub fn migrate_5_to_6(&self) -> Result<(), OperationError>
Migrate 5 to 6 - This updates the domain info item to reset the token
+
sourcepub fn migrate_5_to_6(&self) -> Result<(), OperationError>
Migrate 5 to 6 - This updates the domain info item to reset the token
keys based on the new encryption types.
-sourcepub fn internal_create(
&self,
entries: Vec<Entry<EntryInit, EntryNew>>
) -> Result<(), OperationError>
sourcepub fn internal_delete(
&self,
filter: &Filter<FilterInvalid>
) -> Result<(), OperationError>
sourcepub fn internal_modify(
&self,
filter: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_valid(
&self,
f_valid: Filter<FilterValid>,
f_intent_valid: Filter<FilterValid>,
m_valid: ModifyList<ModifyValid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_gen_event(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<ModifyEvent, OperationError>
sourcepub fn internal_migrate_or_create_str(
&self,
e_str: &str
) -> Result<(), OperationError>
sourcepub fn internal_migrate_or_create(
&self,
e: Entry<EntryInit, EntryNew>
) -> Result<(), OperationError>
sourcepub fn initialise_schema_core(&self) -> Result<(), OperationError>
sourcepub fn initialise_schema_idm(&self) -> Result<(), OperationError>
sourcepub fn initialise_idm(&self) -> Result<(), OperationError>
sourcepub fn set_domain_display_name(
&self,
new_domain_name: &str
) -> Result<(), OperationError>
Initiate a domain display name change process. This isn’t particularly scary
+
sourcepub fn internal_create(
&self,
entries: Vec<Entry<EntryInit, EntryNew>>
) -> Result<(), OperationError>
sourcepub fn internal_delete(
&self,
filter: &Filter<FilterInvalid>
) -> Result<(), OperationError>
sourcepub fn internal_modify(
&self,
filter: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_valid(
&self,
f_valid: Filter<FilterValid>,
f_intent_valid: Filter<FilterValid>,
m_valid: ModifyList<ModifyValid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_gen_event(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<ModifyEvent, OperationError>
sourcepub fn internal_migrate_or_create_str(
&self,
e_str: &str
) -> Result<(), OperationError>
sourcepub fn internal_migrate_or_create(
&self,
e: Entry<EntryInit, EntryNew>
) -> Result<(), OperationError>
sourcepub fn initialise_schema_core(&self) -> Result<(), OperationError>
sourcepub fn initialise_schema_idm(&self) -> Result<(), OperationError>
sourcepub fn initialise_idm(&self) -> Result<(), OperationError>
sourcepub fn set_domain_display_name(
&self,
new_domain_name: &str
) -> Result<(), OperationError>
Initiate a domain display name change process. This isn’t particularly scary
because it’s just a wibbly human-facing thing, not used for secure
activities (yet)
-sourcepub fn domain_rename(&self, new_domain_name: &str) -> Result<(), OperationError>
Initiate a domain rename process. This is generally an internal function but it’s
+
sourcepub fn domain_rename(&self, new_domain_name: &str) -> Result<(), OperationError>
Initiate a domain rename process. This is generally an internal function but it’s
exposed to the cli for admins to be able to initiate the process.
-sourcepub fn reindex(&self) -> Result<(), OperationError>
sourcepub fn get_changed_uuids(&self) -> &HashSet<Uuid>
sourcepub fn get_changed_ouath2(&self) -> bool
sourcepub fn get_changed_domain(&self) -> bool
sourcepub fn commit(self) -> Result<(), OperationError>
Trait Implementations
sourceimpl<'a> QueryServerTransaction<'a> for QueryServerWriteTransaction<'a>
sourcefn get_domain_name(&self) -> &str
Gets the in-memory domain_name element
+sourcepub fn reindex(&self) -> Result<(), OperationError>
sourcepub fn get_changed_uuids(&self) -> &HashSet<Uuid>
sourcepub fn get_changed_ouath2(&self) -> bool
sourcepub fn get_changed_domain(&self) -> bool
sourcepub fn commit(self) -> Result<(), OperationError>
Trait Implementations
sourceimpl<'a> QueryServerTransaction<'a> for QueryServerWriteTransaction<'a>
sourcefn get_domain_name(&self) -> &str
Gets the in-memory domain_name element
type BackendTransactionType = BackendWriteTransaction<'a>
sourcefn get_be_txn(&self) -> &BackendWriteTransaction<'a>
type SchemaTransactionType = SchemaWriteTransaction<'a>
sourcefn get_schema(&self) -> &SchemaWriteTransaction<'a>
type AccessControlsTransactionType = AccessControlsWriteTransaction<'a>
sourcefn get_accesscontrols(&self) -> &AccessControlsWriteTransaction<'a>
sourcefn get_resolve_filter_cache(
&self
) -> &mut ARCacheReadTxn<'a, (IdentityId, Filter<FilterValid>), Filter<FilterValidResolved>>
sourcefn get_domain_uuid(&self) -> Uuid
sourcefn get_domain_display_name(&self) -> &str
sourcefn search_ext(
&self,
se: &SearchEvent
) -> Result<Vec<Entry<EntryReduced, EntryCommitted>>, OperationError>
Conduct a search and apply access controls to yield a set of entries that
have been reduced to the set of user visible avas. Note that if you provide
a SearchEvent
for the internal user, this query will fail. It is invalid for
diff --git a/docs/v1.1.0-alpha.2/rustdoc/src/kanidm/server.rs.html b/docs/v1.1.0-alpha.2/rustdoc/src/kanidm/server.rs.html
index 42a553eea..edf5b53a0 100644
--- a/docs/v1.1.0-alpha.2/rustdoc/src/kanidm/server.rs.html
+++ b/docs/v1.1.0-alpha.2/rustdoc/src/kanidm/server.rs.html
@@ -4528,6 +4528,11 @@
4523
4524
4525
+4526
+4527
+4528
+4529
+4530
//! `server` contains the query server, which is the main high level construction
//! to coordinate queries and operations in the server.
@@ -6791,7 +6796,12 @@
spanned!("server::migrate_5_to_6", {
admin_warn!("starting 5 to 6 migration.");
let filter = filter!(f_eq("uuid", (*PVUUID_DOMAIN_INFO).clone()));
- let modlist = ModifyList::new_purge("domain_token_key");
+ let mut modlist = ModifyList::new_purge("domain_token_key");
+ // We need to also push the version here so that we pass schema.
+ modlist.push_mod(Modify::Present(
+ AttrString::from("version"),
+ Value::Uint32(0),
+ ));
self.internal_modify(&filter, &modlist)
// Complete
})
diff --git a/docs/v1.1.0-alpha.3/rustdoc/kanidm/server/index.html b/docs/v1.1.0-alpha.3/rustdoc/kanidm/server/index.html
index a27d82dd4..cc14d3c63 100644
--- a/docs/v1.1.0-alpha.3/rustdoc/kanidm/server/index.html
+++ b/docs/v1.1.0-alpha.3/rustdoc/kanidm/server/index.html
@@ -4,7 +4,7 @@
Expand description
server
contains the query server, which is the main high level construction
+
Module kanidm::server
source · [−]Expand description
server
contains the query server, which is the main high level construction
to coordinate queries and operations in the server.
Structs
Traits
diff --git a/docs/v1.1.0-alpha.3/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html b/docs/v1.1.0-alpha.3/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
index 25cce7db0..0d59764c1 100644
--- a/docs/v1.1.0-alpha.3/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
+++ b/docs/v1.1.0-alpha.3/rustdoc/kanidm/server/struct.QueryServerWriteTransaction.html
@@ -4,19 +4,19 @@
- Struct kanidm::server::QueryServerWriteTransaction
source · [−]pub struct QueryServerWriteTransaction<'a> { /* private fields */ }
Implementations
sourceimpl<'a> QueryServerWriteTransaction<'a>
sourcepub fn create(&self, ce: &CreateEvent) -> Result<(), OperationError>
sourcepub fn delete(&self, de: &DeleteEvent) -> Result<(), OperationError>
sourcepub fn purge_tombstones(&self) -> Result<(), OperationError>
sourcepub fn purge_recycled(&self) -> Result<(), OperationError>
sourcepub fn revive_recycled(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn revive_recycled_legacy(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn modify(&self, me: &ModifyEvent) -> Result<(), OperationError>
sourcepub fn migrate_2_to_3(&self) -> Result<(), OperationError>
Migrate 2 to 3 changes the name, domain_name types from iutf8 to iname.
+ Struct kanidm::server::QueryServerWriteTransaction
source · [−]pub struct QueryServerWriteTransaction<'a> { /* private fields */ }
Implementations
sourceimpl<'a> QueryServerWriteTransaction<'a>
sourcepub fn create(&self, ce: &CreateEvent) -> Result<(), OperationError>
sourcepub fn delete(&self, de: &DeleteEvent) -> Result<(), OperationError>
sourcepub fn purge_tombstones(&self) -> Result<(), OperationError>
sourcepub fn purge_recycled(&self) -> Result<(), OperationError>
sourcepub fn revive_recycled(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn revive_recycled_legacy(
&self,
re: &ReviveRecycledEvent
) -> Result<(), OperationError>
sourcepub fn modify(&self, me: &ModifyEvent) -> Result<(), OperationError>
sourcepub fn migrate_2_to_3(&self) -> Result<(), OperationError>
Migrate 2 to 3 changes the name, domain_name types from iutf8 to iname.
sourcepub fn migrate_3_to_4(&self) -> Result<(), OperationError>
Migrate 3 to 4 - this triggers a regen of the domains security token
as we previously did not have it in the entry.
sourcepub fn migrate_4_to_5(&self) -> Result<(), OperationError>
Migrate 4 to 5 - this triggers a regen of all oauth2 RS es256 der keys
as we previously did not generate them on entry creation.
-sourcepub fn migrate_5_to_6(&self) -> Result<(), OperationError>
Migrate 5 to 6 - This updates the domain info item to reset the token
+
sourcepub fn migrate_5_to_6(&self) -> Result<(), OperationError>
Migrate 5 to 6 - This updates the domain info item to reset the token
keys based on the new encryption types.
-sourcepub fn internal_create(
&self,
entries: Vec<Entry<EntryInit, EntryNew>>
) -> Result<(), OperationError>
sourcepub fn internal_delete(
&self,
filter: &Filter<FilterInvalid>
) -> Result<(), OperationError>
sourcepub fn internal_modify(
&self,
filter: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_valid(
&self,
f_valid: Filter<FilterValid>,
f_intent_valid: Filter<FilterValid>,
m_valid: ModifyList<ModifyValid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_gen_event(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<ModifyEvent, OperationError>
sourcepub fn internal_migrate_or_create_str(
&self,
e_str: &str
) -> Result<(), OperationError>
sourcepub fn internal_migrate_or_create(
&self,
e: Entry<EntryInit, EntryNew>
) -> Result<(), OperationError>
sourcepub fn initialise_schema_core(&self) -> Result<(), OperationError>
sourcepub fn initialise_schema_idm(&self) -> Result<(), OperationError>
sourcepub fn initialise_idm(&self) -> Result<(), OperationError>
sourcepub fn set_domain_display_name(
&self,
new_domain_name: &str
) -> Result<(), OperationError>
Initiate a domain display name change process. This isn’t particularly scary
+
sourcepub fn internal_create(
&self,
entries: Vec<Entry<EntryInit, EntryNew>>
) -> Result<(), OperationError>
sourcepub fn internal_delete(
&self,
filter: &Filter<FilterInvalid>
) -> Result<(), OperationError>
sourcepub fn internal_modify(
&self,
filter: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_valid(
&self,
f_valid: Filter<FilterValid>,
f_intent_valid: Filter<FilterValid>,
m_valid: ModifyList<ModifyValid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<(), OperationError>
sourcepub fn impersonate_modify_gen_event(
&self,
filter: &Filter<FilterInvalid>,
filter_intent: &Filter<FilterInvalid>,
modlist: &ModifyList<ModifyInvalid>,
event: &Identity
) -> Result<ModifyEvent, OperationError>
sourcepub fn internal_migrate_or_create_str(
&self,
e_str: &str
) -> Result<(), OperationError>
sourcepub fn internal_migrate_or_create(
&self,
e: Entry<EntryInit, EntryNew>
) -> Result<(), OperationError>
sourcepub fn initialise_schema_core(&self) -> Result<(), OperationError>
sourcepub fn initialise_schema_idm(&self) -> Result<(), OperationError>
sourcepub fn initialise_idm(&self) -> Result<(), OperationError>
sourcepub fn set_domain_display_name(
&self,
new_domain_name: &str
) -> Result<(), OperationError>
Initiate a domain display name change process. This isn’t particularly scary
because it’s just a wibbly human-facing thing, not used for secure
activities (yet)
-sourcepub fn domain_rename(&self, new_domain_name: &str) -> Result<(), OperationError>
Initiate a domain rename process. This is generally an internal function but it’s
+
sourcepub fn domain_rename(&self, new_domain_name: &str) -> Result<(), OperationError>
Initiate a domain rename process. This is generally an internal function but it’s
exposed to the cli for admins to be able to initiate the process.
-sourcepub fn reindex(&self) -> Result<(), OperationError>
sourcepub fn get_changed_uuids(&self) -> &HashSet<Uuid>
sourcepub fn get_changed_ouath2(&self) -> bool
sourcepub fn get_changed_domain(&self) -> bool
sourcepub fn commit(self) -> Result<(), OperationError>
Trait Implementations
sourceimpl<'a> QueryServerTransaction<'a> for QueryServerWriteTransaction<'a>
sourcefn get_domain_name(&self) -> &str
Gets the in-memory domain_name element
+sourcepub fn reindex(&self) -> Result<(), OperationError>
sourcepub fn get_changed_uuids(&self) -> &HashSet<Uuid>
sourcepub fn get_changed_ouath2(&self) -> bool
sourcepub fn get_changed_domain(&self) -> bool
sourcepub fn commit(self) -> Result<(), OperationError>
Trait Implementations
sourceimpl<'a> QueryServerTransaction<'a> for QueryServerWriteTransaction<'a>
sourcefn get_domain_name(&self) -> &str
Gets the in-memory domain_name element
type BackendTransactionType = BackendWriteTransaction<'a>
sourcefn get_be_txn(&self) -> &BackendWriteTransaction<'a>
type SchemaTransactionType = SchemaWriteTransaction<'a>
sourcefn get_schema(&self) -> &SchemaWriteTransaction<'a>
type AccessControlsTransactionType = AccessControlsWriteTransaction<'a>
sourcefn get_accesscontrols(&self) -> &AccessControlsWriteTransaction<'a>
sourcefn get_resolve_filter_cache(
&self
) -> &mut ARCacheReadTxn<'a, (IdentityId, Filter<FilterValid>), Filter<FilterValidResolved>>
sourcefn get_domain_uuid(&self) -> Uuid
sourcefn get_domain_display_name(&self) -> &str
sourcefn search_ext(
&self,
se: &SearchEvent
) -> Result<Vec<Entry<EntryReduced, EntryCommitted>>, OperationError>
Conduct a search and apply access controls to yield a set of entries that
have been reduced to the set of user visible avas. Note that if you provide
a SearchEvent
for the internal user, this query will fail. It is invalid for
diff --git a/docs/v1.1.0-alpha.3/rustdoc/kanidm_client/enum.ClientError.html b/docs/v1.1.0-alpha.3/rustdoc/kanidm_client/enum.ClientError.html
index 3dbfecefa..a098c3f5c 100644
--- a/docs/v1.1.0-alpha.3/rustdoc/kanidm_client/enum.ClientError.html
+++ b/docs/v1.1.0-alpha.3/rustdoc/kanidm_client/enum.ClientError.html
@@ -6,16 +6,16 @@
ClientError
Enum kanidm_client::ClientError
source · [−]pub enum ClientError {
Unauthorized,
- Http(StatusCode, Option<OperationError>, String),
+ Http(StatusCode, Option<OperationError>, String),
Transport(Error),
AuthenticationFailed,
EmptyResponse,
- TotpVerifyFailed(Uuid, TotpSecret),
+ TotpVerifyFailed(Uuid, TotpSecret),
TotpInvalidSha1(Uuid),
JsonDecode(Error, String),
JsonEncode(SerdeJsonError),
SystemError,
-}
Variants
Unauthorized
Http(StatusCode, Option<OperationError>, String)
Transport(Error)
AuthenticationFailed
EmptyResponse
TotpVerifyFailed(Uuid, TotpSecret)
TotpInvalidSha1(Uuid)
JsonDecode(Error, String)
JsonEncode(SerdeJsonError)
SystemError
Trait Implementations
sourceimpl Debug for ClientError
sourcefn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter. Read more
+}Variants
Unauthorized
Http(StatusCode, Option<OperationError>, String)
Transport(Error)
AuthenticationFailed
EmptyResponse
TotpVerifyFailed(Uuid, TotpSecret)
TotpInvalidSha1(Uuid)
JsonDecode(Error, String)
JsonEncode(SerdeJsonError)
SystemError
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ClientError
impl Send for ClientError
impl Sync for ClientError
impl Unpin for ClientError
impl !UnwindSafe for ClientError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
diff --git a/docs/v1.1.0-alpha.3/rustdoc/kanidm_client/struct.KanidmClient.html b/docs/v1.1.0-alpha.3/rustdoc/kanidm_client/struct.KanidmClient.html
index 9e1955f43..18c18699f 100644
--- a/docs/v1.1.0-alpha.3/rustdoc/kanidm_client/struct.KanidmClient.html
+++ b/docs/v1.1.0-alpha.3/rustdoc/kanidm_client/struct.KanidmClient.html
@@ -4,8 +4,8 @@
- Struct kanidm_client::KanidmClient
source · [−]pub struct KanidmClient { /* private fields */ }
Implementations
sourceimpl KanidmClient
sourcepub fn get_origin(&self) -> &Url
sourcepub fn get_url(&self) -> &str
sourcepub async fn set_token(&self, new_token: String)
sourcepub async fn get_token(&self) -> Option<String>
sourcepub fn new_session(&self) -> Result<Self, Error>
sourcepub async fn logout(&self)
sourcepub async fn auth_step_init(
&self,
ident: &str
) -> Result<Set<AuthMech>, ClientError>
sourcepub async fn auth_step_begin(
&self,
mech: AuthMech
) -> Result<Vec<AuthAllowed>, ClientError>
sourcepub async fn auth_step_anonymous(&self) -> Result<AuthResponse, ClientError>
sourcepub async fn auth_step_password(
&self,
password: &str
) -> Result<AuthResponse, ClientError>
sourcepub async fn auth_step_backup_code(
&self,
backup_code: &str
) -> Result<AuthResponse, ClientError>
sourcepub async fn auth_step_totp(
&self,
totp: u32
) -> Result<AuthResponse, ClientError>
sourcepub async fn auth_step_securitykey_complete(
&self,
pkc: PublicKeyCredential
) -> Result<AuthResponse, ClientError>
sourcepub async fn auth_step_passkey_complete(
&self,
pkc: PublicKeyCredential
) -> Result<AuthResponse, ClientError>
sourcepub async fn auth_anonymous(&self) -> Result<(), ClientError>
sourcepub async fn auth_simple_password(
&self,
ident: &str,
password: &str
) -> Result<(), ClientError>
sourcepub async fn auth_password_totp(
&self,
ident: &str,
password: &str,
totp: u32
) -> Result<(), ClientError>
sourcepub async fn auth_password_backup_code(
&self,
ident: &str,
password: &str,
backup_code: &str
) -> Result<(), ClientError>
sourcepub async fn auth_passkey_begin(
&self,
ident: &str
) -> Result<RequestChallengeResponse, ClientError>
sourcepub async fn auth_passkey_complete(
&self,
pkc: PublicKeyCredential
) -> Result<(), ClientError>
sourcepub async fn auth_valid(&self) -> Result<(), ClientError>
sourcepub async fn whoami(
&self
) -> Result<Option<(Entry, UserAuthToken)>, ClientError>
sourcepub async fn search(&self, filter: Filter) -> Result<Vec<Entry>, ClientError>
sourcepub async fn create(&self, entries: Vec<Entry>) -> Result<(), ClientError>
sourcepub async fn modify(
&self,
filter: Filter,
modlist: ModifyList
) -> Result<(), ClientError>
sourcepub async fn delete(&self, filter: Filter) -> Result<(), ClientError>
sourcepub async fn idm_group_list(&self) -> Result<Vec<Entry>, ClientError>
sourcepub async fn idm_group_get(
&self,
id: &str
) -> Result<Option<Entry>, ClientError>
sourcepub async fn idm_group_get_members(
&self,
id: &str
) -> Result<Option<Vec<String>>, ClientError>
sourcepub async fn idm_group_create(&self, name: &str) -> Result<(), ClientError>
sourcepub async fn idm_group_set_members(
&self,
id: &str,
members: &[&str]
) -> Result<(), ClientError>
sourcepub async fn idm_group_add_members(
&self,
id: &str,
members: &[&str]
) -> Result<(), ClientError>
sourcepub async fn idm_group_remove_members(
&self,
group: &str,
members: &[&str]
) -> Result<(), ClientError>
sourcepub async fn idm_group_purge_members(&self, id: &str) -> Result<(), ClientError>
sourcepub async fn idm_group_unix_extend(
&self,
id: &str,
gidnumber: Option<u32>
) -> Result<(), ClientError>
sourcepub async fn idm_group_unix_token_get(
&self,
id: &str
) -> Result<UnixGroupToken, ClientError>
sourcepub async fn idm_group_delete(&self, id: &str) -> Result<(), ClientError>
sourcepub async fn idm_account_list(&self) -> Result<Vec<Entry>, ClientError>
sourcepub async fn idm_account_create(
&self,
name: &str,
dn: &str
) -> Result<(), ClientError>
sourcepub async fn idm_account_set_password(
&self,
cleartext: String
) -> Result<(), ClientError>
sourcepub async fn idm_account_set_displayname(
&self,
id: &str,
dn: &str
) -> Result<(), ClientError>
sourcepub async fn idm_account_unix_token_get(
&self,
id: &str
) -> Result<UnixUserToken, ClientError>
sourcepub async fn idm_account_delete(&self, id: &str) -> Result<(), ClientError>
sourcepub async fn idm_account_get(
&self,
id: &str
) -> Result<Option<Entry>, ClientError>
sourcepub async fn idm_account_add_attr(
&self,
id: &str,
attr: &str,
values: &[&str]
) -> Result<(), ClientError>
sourcepub async fn idm_account_set_attr(
&self,
id: &str,
attr: &str,
values: &[&str]
) -> Result<(), ClientError>
sourcepub async fn idm_account_get_attr(
&self,
id: &str,
attr: &str
) -> Result<Option<Vec<String>>, ClientError>
sourcepub async fn idm_account_purge_attr(
&self,
id: &str,
attr: &str
) -> Result<(), ClientError>
sourcepub async fn idm_account_primary_credential_set_password(
&self,
id: &str,
pw: &str
) -> Result<SetCredentialResponse, ClientError>
sourcepub async fn idm_account_primary_credential_import_password(
&self,
id: &str,
pw: &str
) -> Result<(), ClientError>
sourcepub async fn idm_account_primary_credential_set_generated(
&self,
id: &str
) -> Result<String, ClientError>
sourcepub async fn idm_account_primary_credential_generate_totp(
&self,
id: &str
) -> Result<(Uuid, TotpSecret), ClientError>
sourcepub async fn idm_account_primary_credential_verify_totp(
&self,
id: &str,
otp: u32,
session: Uuid
) -> Result<(), ClientError>
sourcepub async fn idm_account_primary_credential_accept_sha1_totp(
&self,
id: &str,
session: Uuid
) -> Result<(), ClientError>
sourcepub async fn idm_account_primary_credential_remove_totp(
&self,
id: &str
) -> Result<(), ClientError>
sourcepub async fn idm_account_primary_credential_generate_backup_code(
&self,
id: &str
) -> Result<Vec<String>, ClientError>
sourcepub async fn idm_account_primary_credential_remove_backup_code(
&self,
id: &str
) -> Result<(), ClientError>
sourcepub async fn idm_account_get_credential_status(
&self,
id: &str
) -> Result<CredentialStatus, ClientError>
sourcepub async fn idm_account_credential_update_intent(
&self,
id: &str
) -> Result<CUIntentToken, ClientError>
sourcepub async fn idm_account_credential_update_begin(
&self,
id: &str
) -> Result<(CUSessionToken, CUStatus), ClientError>
sourcepub async fn idm_account_credential_update_exchange(
&self,
intent_token: CUIntentToken
) -> Result<(CUSessionToken, CUStatus), ClientError>
sourcepub async fn idm_account_credential_update_status(
&self,
session_token: &CUSessionToken
) -> Result<CUStatus, ClientError>
sourcepub async fn idm_account_credential_update_set_password(
&self,
session_token: &CUSessionToken,
pw: &str
) -> Result<CUStatus, ClientError>
sourcepub async fn idm_account_credential_update_cancel_mfareg(
&self,
session_token: &CUSessionToken
) -> Result<CUStatus, ClientError>
sourcepub async fn idm_account_credential_update_init_totp(
&self,
session_token: &CUSessionToken
) -> Result<CUStatus, ClientError>
sourcepub async fn idm_account_credential_update_check_totp(
&self,
session_token: &CUSessionToken,
totp_chal: u32
) -> Result<CUStatus, ClientError>
sourcepub async fn idm_account_credential_update_accept_sha1_totp(
&self,
session_token: &CUSessionToken
) -> Result<CUStatus, ClientError>
sourcepub async fn idm_account_credential_update_remove_totp(
&self,
session_token: &CUSessionToken
) -> Result<CUStatus, ClientError>
sourcepub async fn idm_account_credential_update_backup_codes_generate(
&self,
session_token: &CUSessionToken
) -> Result<CUStatus, ClientError>
sourcepub async fn idm_account_credential_update_primary_remove(
&self,
session_token: &CUSessionToken
) -> Result<CUStatus, ClientError>
sourcepub async fn idm_account_credential_update_passkey_init(
&self,
session_token: &CUSessionToken
) -> Result<CUStatus, ClientError>
sourcepub async fn idm_account_credential_update_passkey_finish(
&self,
session_token: &CUSessionToken,
label: String,
registration: RegisterPublicKeyCredential
) -> Result<CUStatus, ClientError>
sourcepub async fn idm_account_credential_update_passkey_remove(
&self,
session_token: &CUSessionToken,
uuid: Uuid
) -> Result<CUStatus, ClientError>
sourcepub async fn idm_account_credential_update_commit(
&self,
session_token: &CUSessionToken
) -> Result<(), ClientError>
sourcepub async fn idm_account_radius_credential_get(
&self,
id: &str
) -> Result<Option<String>, ClientError>
sourcepub async fn idm_account_radius_credential_regenerate(
&self,
id: &str
) -> Result<String, ClientError>
sourcepub async fn idm_account_radius_credential_delete(
&self,
id: &str
) -> Result<(), ClientError>
sourcepub async fn idm_account_radius_token_get(
&self,
id: &str
) -> Result<RadiusAuthToken, ClientError>
sourcepub async fn idm_account_unix_extend(
&self,
id: &str,
gidnumber: Option<u32>,
shell: Option<&str>
) -> Result<(), ClientError>
sourcepub async fn idm_account_unix_cred_put(
&self,
id: &str,
cred: &str
) -> Result<(), ClientError>
sourcepub async fn idm_account_unix_cred_delete(
&self,
id: &str
) -> Result<(), ClientError>
sourcepub async fn idm_account_unix_cred_verify(
&self,
id: &str,
cred: &str
) -> Result<Option<UnixUserToken>, ClientError>
sourcepub async fn idm_account_get_ssh_pubkeys(
&self,
id: &str
) -> Result<Vec<String>, ClientError>
sourcepub async fn idm_account_post_ssh_pubkey(
&self,
id: &str,
tag: &str,
pubkey: &str
) -> Result<(), ClientError>
sourcepub async fn idm_account_person_extend(
&self,
id: &str,
mail: Option<&[String]>,
legalname: Option<&str>
) -> Result<(), ClientError>
sourcepub async fn idm_account_person_set(
&self,
id: &str,
mail: Option<&[String]>,
legalname: Option<&str>
) -> Result<(), ClientError>
sourcepub async fn idm_account_get_ssh_pubkey(
&self,
id: &str,
tag: &str
) -> Result<Option<String>, ClientError>
sourcepub async fn idm_account_delete_ssh_pubkey(
&self,
id: &str,
tag: &str
) -> Result<(), ClientError>
sourcepub async fn idm_domain_get(&self) -> Result<Entry, ClientError>