Fix samba LDAP connect error when samba is installed but disabled