Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions n
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import ldap3

def main():
# Create an LDAP connection object
connection = ldap3.Connection('ldap://localhost', user='username', password='password')

# Create an instance of the EnterpriseUnboundLDAPConnector
enterprise_unbound_ldap_connector = EnterpriseUnboundLDAPConnector()

# Load the member resolver data
member_resolver_data = enterprise_unbound_ldap_connector.loadMemberResolver(connection, 'dc=example,dc=com', '(objectClass=*)', ['dn', 'sAMAccountName'], 100, 'sAMAccountName')

# Print the member resolver data
print(member_resolver_data)

if __name__ == '__main__':
main()
1 change: 1 addition & 0 deletions path/to/enterprise_unbound_ldap_connector.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Complete code
1 change: 1 addition & 0 deletions path/to/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Complete code
1 change: 1 addition & 0 deletions path/to/unbound_ldap_connector.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Complete code