[Date Prev][Date Next] [Chronological] [Thread] [Top]

Attribute value rewriting



So I have an interesting issue, and I'm wondering if there's an easy solution (although I'm guessing it would take slapo-rwm reworking).

Basically, email id's can come in the form of

quanah@stanford.edu,
q.u.a.n.a.h@stanford.edu
q-u.a-n-a.h@stanford.edu
qua.na-h@stanford.edu

(basically, any combination of periods and hyphens).  My own data is:

lsearch uid=quanah suseassunetid
dn: uid=quanah,cn=accounts,dc=stanford,dc=edu
suSeasSunetID: qgibsonmount
suSeasSunetID: quanah
suSeasSunetID: quanahgibsonmount

which means that any form of quanah@stanford.edu, qgibsonmount@stanford.edu, and quanahgibsonmount@stanford.edu are deliverable.

In our directory, we store what we consider the normalized form (all periods and hyphens stripped out). What I'd like is a way to make sure that any incoming filter request for the attribute (suseassunetid) strips the value(s) of periods and hyphens before the query is evaluated.

--Quanah

--
Quanah Gibson-Mount
Principal Software Developer
ITS/Shared Application Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html