I'm struggling with trying to extract multiple fields from a multivalue Active Directory attribute. For instance, given the following object:
dcName=w2k3r2.demo.dev
admonEventType=Update
Names:
objectCategory=CN=Service-Connection-Point,CN=Schema,CN=Configuration,DC=demo,DC=dev
...
distinguishedName=CN=bsmith,CN=Users,CN=default,CN=Zones,CN=Centrify,CN=Program Data,DC=demo,DC=dev
objectGUID=cffb0829-0642-134c-2ef1-f03cc696e10b
...
keywords=addr:253|animal:rabbit|color:blue
showInAdvancedViewOnly=TRUE
I still want objectGUID and the other single value attributes parsed, but in this example, I also would like addr, animal and color parsed out as their own key-value pairs (also, I don't want to have to know the keynames apriori). Is there a preprocessing step where I can break the multi-value attributes into separate lines, or do I need to replace the ad-kv "(?<_KEY_1>[\w-]+)=(?<_VAL_1>[^\r\n]*)" tranform with some incredibly gnarly regex?
... View more