I would like to avoid different ways to call the LDAP methods, having it here in a standard way is better for readibility and avoids surprises by forgetting about exceptions from the rule.

Did you have issues specifically with ldap_next_entry and ldap_error?