Fix log helper trying to query LDAP when samba module may be not runnnin...

...g