Removing unused constant and updating docstring for LDAP bind address (#2556)

This commit is contained in:
James Hodgkinson 2024-02-20 11:10:02 +10:00 committed by GitHub
parent 8ec63f3e92
commit 84b2c4956d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 5 deletions

View file

@ -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";

View file

@ -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

View file

@ -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;
}

View file

@ -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;
}