Skip to content

Conversation

@mirajpn
Copy link

@mirajpn mirajpn commented May 13, 2022

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

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

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