-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanly exit if cepces or getcert are not present
In case certmonger or the cepces library are not installed we do not want to fail hard. Check for the existence of the binaries instead of debs to be more future-proof given that cepces is not yet packaged in Ubuntu. Fixes UDENG-1156
- Loading branch information
1 parent
f156b82
commit 4f33c8b
Showing
6 changed files
with
60 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...ies/certificate/testdata/TestCertAutoenrollScript/golden/enroll_with_cepces_not_installed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Loading smb.conf | ||
[global] | ||
realm = example.com | ||
|
||
Loading state file: #STATEDIR#/samba/cert_gpo_state_keypress.tdb | ||
WARNING: certmonger and/or cepces not found, skipping certificate enrollment |
6 changes: 6 additions & 0 deletions
6
...certificate/testdata/TestCertAutoenrollScript/golden/enroll_with_certmonger_not_installed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Loading smb.conf | ||
[global] | ||
realm = example.com | ||
|
||
Loading state file: #STATEDIR#/samba/cert_gpo_state_keypress.tdb | ||
WARNING: certmonger and/or cepces not found, skipping certificate enrollment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
def logger_init(_name, _level): | ||
pass | ||
|
||
class log(object): | ||
@staticmethod | ||
def warning(msg): | ||
print(f'WARNING: {msg}') |