mirror of
https://github.com/kanidm/kanidm.git
synced 2025-04-21 01:35:39 +02:00
Add max_ber_size to freeipa sync (#3530)
This commit is contained in:
parent
5edc6be51c
commit
567fe7b259
|
@ -16,6 +16,9 @@ pub struct Config {
|
||||||
|
|
||||||
pub sync_password_as_unix_password: Option<bool>,
|
pub sync_password_as_unix_password: Option<bool>,
|
||||||
|
|
||||||
|
/// Maximum LDAP message size (in kilobytes)
|
||||||
|
pub max_ber_size: Option<usize>,
|
||||||
|
|
||||||
// pub entry: Option<Vec<EntryConfig>>,
|
// pub entry: Option<Vec<EntryConfig>>,
|
||||||
#[serde(flatten)]
|
#[serde(flatten)]
|
||||||
pub entry_map: BTreeMap<Uuid, EntryConfig>,
|
pub entry_map: BTreeMap<Uuid, EntryConfig>,
|
||||||
|
|
|
@ -306,6 +306,7 @@ async fn run_sync(
|
||||||
// Preflight check.
|
// Preflight check.
|
||||||
// * can we connect to ipa?
|
// * can we connect to ipa?
|
||||||
let mut ipa_client = match LdapClientBuilder::new(&sync_config.ipa_uri)
|
let mut ipa_client = match LdapClientBuilder::new(&sync_config.ipa_uri)
|
||||||
|
.max_ber_size(sync_config.max_ber_size)
|
||||||
.add_tls_ca(&sync_config.ipa_ca)
|
.add_tls_ca(&sync_config.ipa_ca)
|
||||||
.build()
|
.build()
|
||||||
.await
|
.await
|
||||||
|
|
|
@ -113,11 +113,11 @@ pub struct Config {
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub group_attr_schema: GroupAttrSchema,
|
pub group_attr_schema: GroupAttrSchema,
|
||||||
|
|
||||||
#[serde(flatten)]
|
|
||||||
pub entry_map: BTreeMap<Uuid, EntryConfig>,
|
|
||||||
|
|
||||||
/// Maximum LDAP message size (in kilobytes)
|
/// Maximum LDAP message size (in kilobytes)
|
||||||
pub max_ber_size: Option<usize>,
|
pub max_ber_size: Option<usize>,
|
||||||
|
|
||||||
|
#[serde(flatten)]
|
||||||
|
pub entry_map: BTreeMap<Uuid, EntryConfig>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize, Default, Clone)]
|
#[derive(Debug, Deserialize, Default, Clone)]
|
||||||
|
|
Loading…
Reference in a new issue