-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added hbacrules and sudorules #13
base: master
Are you sure you want to change the base?
Conversation
@@ -18,7 +18,8 @@ | |||
|
|||
class ipa(object): | |||
|
|||
def __init__(self, server, sslverify=False): | |||
#def __init__(self, server, sslverify=False): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remaining comment
@@ -73,7 +74,7 @@ def config_show(self): | |||
|
|||
return results | |||
|
|||
def group_add(self, group, gidnumber=None, description=None): | |||
def group_add(self, group, gidnumber=None, description=None, nonposix='false'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use booleans rather than strings
|
||
return results | ||
|
||
def hbacrule_add_host(self, hbacrule, host=None, hostgroup=None ): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remaining whitespace before )
same below
m = {'item': [sudorule], 'method': 'sudorule_show', 'params': | ||
{'all': True, 'raw': False}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format not consistent
Added hbacrules and sudorules
sslverify=True
Can create nonposix groups.