Openldap fixes

Update the openldap component with some more fixes for 2.4. Also added a simple test case.