Fix checkmode in ldap module