Custom Expression to resolve DN in AD for 2 OUs
Sorry I neglected to indicate that the boolean portion of the command is a custom expression as well.
Corrected version
Function -> IIF
Criteria -> Custom Expression -> Eq(SubOu,'A') If True -> Custom Expression -> "cn="+DisplayName+",ou=OU=B,OU=C,DC=fabrikam,dc=com"
If False -> Custom Expression -> "cn="+DisplayName+",OU="+subOU+",OU=B,OU=C,DC=fabrikam,dc=com"
Thanks
B
January 22nd, 2011 6:48pm
Hi There,
From what you've said, the IIF should be:
iif(Eq(subOu,'A'),customExpression("cn="+DisplayName+",ou=OU=B,OU=C,DC=fabrikam,dc=com"),customExpression("cn="+DisplayName+",OU="+subOU+",OU=B,OU=C,DC=fabrikam,dc=com"))
Or if you're doing it via the GUI ->
Function -> IIF Criteria -> Eq(SubOu,'A') If True -> Custom Expression -> "cn="+DisplayName+",ou=OU=B,OU=C,DC=fabrikam,dc=com"
If False -> Custom Expression -> "cn="+DisplayName+",OU="+subOU+",OU=B,OU=C,DC=fabrikam,dc=com"
Thanks
B
Free Windows Admin Tool Kit Click here and download it now
January 22nd, 2011 7:12pm
Hi Rob,
You need to chose Custom Expression within IIF Function from the GUI , and then you wud be able to put the condition Eq(subOU,'"A'") i.e. IIF(CustomExpression(Eq(subOU,'"A'"), then and so on
Also try and put double quotes , instead the single quotes.
Kaushik B
January 22nd, 2011 7:17pm
Sorry, that didn't work :-(
The Function IIF requires a boolean value and in the GUI you can't set criteria Eq(subOU,'A').
Rob
Free Windows Admin Tool Kit Click here and download it now
January 22nd, 2011 7:33pm
Hello,
This is probably similar to other posts i've seen but i've tried the suggested solutions with no success. So here's the scenario:
Attribute in FIM called subOU
If the value in subOU=A, then the dn = displayName,OU=B,OU=C,DC=fabrikam,dc=com
If the value in subOU does not equal A the the dn=displayName,OU=(subOU),OU=B,OU=C,dc=fabrikam,dc=com
I've tried quite a few permutations using IIF but can't seem to get either the syntax correct or the parameters in the correct format. Would appreciate it if someone can string a custom expression together for me
Thanks
Rob
January 22nd, 2011 8:00pm
Thanks Blain, I'll give that a go and report back.
:-)
Rob
Free Windows Admin Tool Kit Click here and download it now
January 22nd, 2011 8:19pm