Enum kanidm_cli::DomainOpt
source · pub enum DomainOpt {
SetDisplayName(OptSetDomainDisplayName),
SetLdapBasedn {
copt: CommonOpt,
new_basedn: String,
},
SetLdapAllowUnixPasswordBind {
copt: CommonOpt,
enable: bool,
},
Show(CommonOpt),
RevokeKey {
copt: CommonOpt,
key_id: String,
},
SetImage {
copt: CommonOpt,
path: PathBuf,
image_type: Option<ImageType>,
},
RemoveImage {
copt: CommonOpt,
},
}
Variants§
SetDisplayName(OptSetDomainDisplayName)
Set the domain display name
SetLdapBasedn
Change the basedn of this server. Takes effect after a server restart.
Examples are o=organisation
or dc=domain,dc=name
. Must be a valid ldap
dn containing only alphanumerics, and dn components must be org (o), domain (dc) or
orgunit (ou).
SetLdapAllowUnixPasswordBind
Enable or disable unix passwords being used to bind via LDAP. Unless you have a specific requirement for this, you should disable this.
Show(CommonOpt)
Show information about this system’s domain
RevokeKey
Revoke a key by its key id. This will cause all user sessions to be invalidated (logged out).
SetImage
The image presented as the instance logo
RemoveImage
The remove the current instance logo, reverting to the default.
Implementations§
Trait Implementations§
source§impl FromArgMatches for DomainOpt
impl FromArgMatches for DomainOpt
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.source§impl Subcommand for DomainOpt
impl Subcommand for DomainOpt
source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to [
Command
] so it can instantiate self
via
[FromArgMatches::update_from_arg_matches_mut
] Read moresource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self
can parse a specific subcommandAuto Trait Implementations§
impl Freeze for DomainOpt
impl RefUnwindSafe for DomainOpt
impl Send for DomainOpt
impl Sync for DomainOpt
impl Unpin for DomainOpt
impl UnwindSafe for DomainOpt
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more