LDAP: error codes can be negative, too
Merge pull request #2108 from owncloud/fix_ldap_errorcheck

LDAP: error codes can be negative, too