Fix ldap offline host handling

Fixes some stupid mistakes that made Offline Handling not work (would try to connect again and again).

Please review @FlorinPeter (you have LDAP, no? :) ) @bartv2 @karlitschek or others, thx!