Class: Kadm5::Policy
- Inherits:
-
Object
- Object
- Kadm5::Policy
- Defined in:
- ext/krb5_auth/policy.c
Instance Method Summary (collapse)
-
- (Object) Krb5Auth::Kadm5::Policy.new(options)
constructor
Returns a new policy object using options you choose to pass, where the options argument is a hash.
-
- (Object) inspect
A custom inspect method for Policy objects.
Constructor Details
- (Object) Krb5Auth::Kadm5::Policy.new(options)
Returns a new policy object using options you choose to pass, where the options argument is a hash. This does NOT actually create the policy object within Kerberos. To do that pass your Policy object to the Kadm5.create_policy method.
The possible options are:
-
name - the name of the policy (mandatory)
-
min_life - minimum lifetime of a password
-
max_life - maximum lifetime of a password
-
min_length - minimum length of a password
-
min_classes - minimum number of character classes allowed in a password
-
history_num - number of past key kept for a principal
If you do not provide a :name then an ArgumentError will be raised.
|
|
# File 'ext/krb5_auth/policy.c'
/*
* call-seq:
* Krb5Auth::Kadm5::Policy.new(options)
*
* Returns a new policy object using +options+ you choose to pass, where
* the +options+ argument is a hash. This does NOT actually create the policy
* object within Kerberos. To do that pass your Policy object to the
* Kadm5.create_policy method.
*
* The possible options are:
*
* * name - the name of the policy (mandatory)
* * min_life - minimum lifetime of a password
* * max_life - maximum lifetime of a password
* * min_length - minimum length of a password
* * min_classes - minimum number of character classes allowed in a password
* * history_num - number of past key kept for a principal
*
* If you do not provide a :name then an ArgumentError will be raised.
*/
static VALUE rkadm5_policy_init(VALUE self, VALUE v_options){
|
Instance Method Details
- (Object) inspect
A custom inspect method for Policy objects.
|
|
# File 'ext/krb5_auth/policy.c'
/*
* call-seq:
* policy.inspect
*
* A custom inspect method for Policy objects.
*/
static VALUE rkadm5_policy_inspect(VALUE self){
|