I'm not native english speaker, but I'm quite sure that "an LDAP" is correct. It is the initial sound of the proceeding word that determines whether to use "an" or "a".