diff --git a/lgit.py b/lgit.py index 2465a74..a5ae8d3 100755 --- a/lgit.py +++ b/lgit.py @@ -93,6 +93,13 @@ l dc values from base return response + def isempty(self)->bool: + self.conn.search(search_base=self.base,search_filter='(objectClass=person)', attributes=['uid']) + response = self.conn.response + if response == []: + return True + return False + def gettotal(self, base: str = '')->int: if base == '': base = self.logbase