Fixes to openldap sb.