Skip to content

Commit

Permalink
Started work over minio admin (ldap)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Durda committed Nov 23, 2023
1 parent 3d92349 commit a25e3f3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions minio/minioadmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@
"SITE_REPLICATION_STATUS": "site-replication/status",
"SITE_REPLICATION_EDIT": "site-replication/edit",
"SITE_REPLICATION_REMOVE": "site-replication/remove",
"LDAP_ENTITIES": "idp/ldap/policy-entities",
"ENTITIES": "idp/builtin/policy-entities",
},
)

Expand Down Expand Up @@ -336,6 +338,22 @@ def user_list(self):
)
return plain_data.decode()

def entities(self):
"""List all users"""
response = self._url_open("GET", _COMMAND.ENTITIES)
plain_data = decrypt(
response.data, self._provider.retrieve().secret_key
)
return plain_data.decode()

def ldap_entities(self):
"""List all users"""
response = self._url_open("GET", _COMMAND.LDAP_ENTITIES)
plain_data = decrypt(
response.data, self._provider.retrieve().secret_key
)
return plain_data.decode()

def group_add(self, group_name, members):
"""Add users a new or existing group."""
body = json.dumps({
Expand Down

0 comments on commit a25e3f3

Please sign in to comment.