I am trying to use, for example. search_s to search for an object based on its full distinguished name, but I don't find it convenient. For instance,
search_s('DC=example, DC=com', ldap.SCOPE_SUBTREE, '(CN=Somebody, OU=Department, DC=example, DC=com)')
How to simply get a single object based on its full LDAP name?
source share