class ActiveLdap::DistinguishedNameInvalid

def initialize(dn, reason=nil)

def initialize(dn, reason=nil)
  @dn = dn
  @reason = reason
  if @reason
    message = _("%s is invalid distinguished name (DN): %s") % [@dn, @reason]
  else
    message = _("%s is invalid distinguished name (DN)") % @dn
  end
  super(message)
end