<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hello everyone,
<br>
<br>
I need help releasing correct attributes in the following situation.<br>
<br>
I have principal names that are either normal usernames or they contain semicolon ';' , two actually. I need to release one attribute value for regular and a different value for special kind of principal.
<br>
<br>
I use Mapped Attribute definition for that. I understand how to capture special principals that do have semicolon in them with regex, but I don't know how to write regex to capture every username EXCEPT for the ones with any semicolon, so I basically have this
 kind of mapping<br>
<br>
<br>
     <ad:ValueMap><br>
         <ad:ReturnValue>$3:$2</ad:ReturnValue><br>
         <ad:SourceValue>(.+);(.+);(.+)$</ad:SourceValue><br>
     </ad:ValueMap><br>
<br>
    <ad:ValueMap><br>
         <ad:ReturnValue>none</ad:ReturnValue><br>
         <ad:SourceValue>(.*)</ad:SourceValue><br>
     </ad:ValueMap><br>
<br>
<br>
<br>
In this case, for regular users I get one value for the attribute, and for special principals I get two (second being 'none'). I want to be able to either release only first value for special principals (and regular, since there is only one anyway) OR craft
 regex that would capture all strings except the ones with ';' in them. <br>
<br>
Please help!<br>
<br>
<div>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">Olga Terlyga.<br>
<br>
terlyga@fnal.gov<br>
(630)840-4685<br>
Authentication Services<br>
Fermi National Accelerator Laboratory<br>
</div>
</div>
</div>
</div>
</body>
</html>