LDAP: error codes can be negative, too

a quick one, @schiesbn @karlitschek @DeepDiver1975 @bartv2 or others pls