11 lines
304 B
Python
11 lines
304 B
Python
|
def inspect(client):
|
||
|
id = client.connection.search(client.base_dn,
|
||
|
'(objectclass=*)')
|
||
|
response, result = client.connection.get_response(id)
|
||
|
return response
|
||
|
|
||
|
|
||
|
def whoami(client):
|
||
|
response = client.connection.extend.standard.who_am_i()
|
||
|
return response
|