OBMFULL-5574 close NamingEnumeration when authenticate with Ldap