Skip to content

Instantly share code, notes, and snippets.

@jkbryan
Last active October 2, 2018 22:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkbryan/e39edd77fda001cd5d5cd1c57f9bfa27 to your computer and use it in GitHub Desktop.
Save jkbryan/e39edd77fda001cd5d5cd1c57f9bfa27 to your computer and use it in GitHub Desktop.
Case "functionalIDFlag-ADMA-Import"
If csentry.DN.ToString.ToLower.Contains("functional") Then
mventry("functionalID").Value = "True"
ElseIf csentry.DN.ToString.ToLower.Contains("ou=fim") Then
mventry("functionalID").Value = "True"
ElseIf csentry("employeeID").IsPresent Or csentry("stfc-pid").IsPresent Then
'Real users - e.g. those created by the User Office process and those historical users no longer in CDR
mventry("functionalID").Value = "False"
Else
Throw New Exception("FunctionalID flag setting for: " & csentry.DN.ToString.ToLower)
End If
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment