I am trying to change my ldap filter from %u=uid to %n=mail (mail is a field in the ldap server the exactly matches their zimbra email address). I have successfully queried the AD through zimbra and can authentication against their user id but I really want to authenticate against the mail field.

Any help is appreciated.