Fix rake gitlab:ldap:check

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Merge branch 'fix-ldap-check' into 'master'

Fix ldap check

Fixes gitlab/gitlabhq#1691

See merge request !1206