mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Add --out option to service, host and cert-show to save the cert to a file.
Override forward() to grab the result and if a certificate is in the entry and the file is writable then dump the certificate in PEM format. ticket 473
This commit is contained in:
@@ -1110,6 +1110,39 @@ class ManagedPolicyError(ExecutionError):
|
||||
errno = 4021
|
||||
format = _('A managed group cannot have a password policy.')
|
||||
|
||||
|
||||
class FileError(ExecutionError):
|
||||
"""
|
||||
**4022** Errors when dealing with files
|
||||
|
||||
For example:
|
||||
|
||||
>>> raise FileError('cannot write file \'test\'')
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
FileError: cannot write file 'test'
|
||||
"""
|
||||
|
||||
errno = 4022
|
||||
format = _('%(reason)s')
|
||||
|
||||
|
||||
class NoCertificateError(ExecutionError):
|
||||
"""
|
||||
**4023** Raised when trying to retrieve a certificate that doesn't exist.
|
||||
|
||||
For example:
|
||||
|
||||
>>> raise NoCertificateError('\'ipa.example.com\' doesn't have a certificate.')
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
NoCertificateError: 'ipa.example.com' doesn't have a certificate
|
||||
"""
|
||||
|
||||
errno = 4023
|
||||
format = _('\'%(entry)s\' doesn\'t have a certificate.')
|
||||
|
||||
|
||||
class ManagedGroupExistsError(ExecutionError):
|
||||
"""
|
||||
**4024** Raised when adding a user and its managed group exists
|
||||
|
||||
Reference in New Issue
Block a user