Added exception in ldap auth module

fixes https://github.com/saltstack/salt/issues/6717