Kartik Subbarao wrote: > 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
Nothing in OpenLDAP rewrites non-DN attributes. You could try using slapo-sock and put together an external process to do it. -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/
