mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 12:37:00 +01:00
Removing unused constant and updating docstring for LDAP bind address (#2556)
This commit is contained in:
parent
8ec63f3e92
commit
84b2c4956d
|
@ -30,8 +30,7 @@ pub const DEFAULT_CLIENT_CONFIG_PATH_HOME: &str = "~/.config/kanidm";
|
|||
/// The default HTTPS bind address for the Kanidm server
|
||||
pub const DEFAULT_SERVER_ADDRESS: &str = "127.0.0.1:8443";
|
||||
pub const DEFAULT_SERVER_LOCALHOST: &str = "localhost:8443";
|
||||
/// The default LDAP bind address for the Kanidm server
|
||||
pub const DEFAULT_LDAP_ADDRESS: &str = "127.0.0.1:636";
|
||||
/// The default LDAP bind address for the Kanidm client
|
||||
pub const DEFAULT_LDAP_LOCALHOST: &str = "localhost:636";
|
||||
/// Default replication configuration
|
||||
pub const DEFAULT_REPLICATION_ADDRESS: &str = "127.0.0.1:8444";
|
||||
|
|
|
@ -110,7 +110,9 @@ pub struct ServerConfig {
|
|||
pub bindaddress: Option<String>,
|
||||
/// The listener address for the LDAP server.
|
||||
///
|
||||
/// eg. `[::]:3636` or `127.0.0.1:3636`. Defaults to [kanidm_proto::constants::DEFAULT_LDAP_ADDRESS]
|
||||
/// eg. `[::]:3636` or `127.0.0.1:3636`.
|
||||
///
|
||||
/// If unset, the LDAP server will be disabled.
|
||||
pub ldapbindaddress: Option<String>,
|
||||
|
||||
/// The role of this server, one of write_replica, write_replica_no_ui, read_only_replica
|
||||
|
|
|
@ -230,7 +230,7 @@ fn main() -> ExitCode {
|
|||
// from attaching to us.
|
||||
#[cfg(all(target_os = "linux", not(debug_assertions)))]
|
||||
if let Err(code) = prctl::set_dumpable(false) {
|
||||
eprintln!(?code, "CRITICAL: Unable to set prctl flags");
|
||||
error!(?code, "CRITICAL: Unable to set prctl flags");
|
||||
return ExitCode::FAILURE;
|
||||
}
|
||||
|
||||
|
|
|
@ -511,7 +511,7 @@ async fn main() -> ExitCode {
|
|||
// from attaching to us.
|
||||
#[cfg(all(target_os = "linux", not(debug_assertions)))]
|
||||
if let Err(code) = prctl::set_dumpable(false) {
|
||||
eprintln!(?code, "CRITICAL: Unable to set prctl flags");
|
||||
error!(?code, "CRITICAL: Unable to set prctl flags");
|
||||
return ExitCode::FAILURE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue