Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

mirajpn
Copy link

@mirajpn mirajpn commented May 13, 2022

Added hbacrules and sudorules
sslverify=True
Can create nonposix groups.

@@ -18,7 +18,8 @@

class ipa(object):

def __init__(self, server, sslverify=False):
#def __init__(self, server, sslverify=False):
Copy link
Contributor

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'):
Copy link
Contributor

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 ):
Copy link
Contributor

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

Comment on lines +487 to +488
m = {'item': [sudorule], 'method': 'sudorule_show', 'params':
{'all': True, 'raw': False}}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

format not consistent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants