I'd like to rewrite the following entry:

dn: [email protected],dc=olddomain,dc=com
uid: [email protected]
mail: [email protected]

to appear and behave like this:

dn: [email protected],dc=newdomain,dc=com
uid: [email protected]
mail: [email protected]

I can get the DN rewritten with slapd-relay and rwm-suffixmassage, and can use rwm-rewriterule with the searchFilter and searchEntryDN contexts to return the entry when querying for [email protected]. But I can't figure out how to rewrite the *values* of the uid and mail attributes in the returned entry to [email protected]. What is the best way to achieve this?

Thanks,

    -Kartik

Reply via email to