A Forum reader recently asked:
"We are trying to sync an attribute called "whenCreated" from MAD to eDirectory. We need to strip off some information from the attribute on the way from MAD to eDirectory. It has an extra .0Z at the end of the time data. What is the best way to strip off the extra info, and where should we create the policy?"
And here's the response from Father Ramon ...
You can use an input transformation like this:
<token-replace-first regex="(^.*)\..*Z" replace-with="$1">
You might also want to convert it to eDirectory time format. The input transformation that comes in the default AD configuration has rules that do this for other attributes (accountExpires, lockoutTime). Copy one of the rules for these and change the rule and attribute name.
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.