fix warnings in ldap.c
Merge pull request #244 from olivierbeytrison/rlm_ldap_fix

fix warnings in ldap.c