I'm using the Search method to return a path to a user node, filtered on the employeeNumber property. When the employee number is found in the OU, this works fine. I can use the resulting path to read and update the properties of the user using the LDAP extension's Property_GetValues and Property_SetValues.
However when the employee number is NOT found, the Search action breaks on an "Object reference not set to an instance of an object" exception. When no nodes are returned wouldn't the expected behavior be EOF() or EMPTY() ?
I'm passing in the following to the Search action:
Filter: "employeeNumber=(hardcoded for testing)"