The default Create User Object takes the cn and cuts it down to 20
characters. In 50k+ objects this hasn't been a problem, but recently I
ran into an account like this:

Being 21 characters in length it chopped it down to:

Which unfortunately we already had and hence the '1' at the end.

Is there a way with Substring to pull the last 20 characters instead of
the first 20 characters? (therefor getting hristopherdartentor1) Or
possibly starting at the last character and grabbing the first 19? So I
get 1ChristopherDartento.

Granted for that to work right I'd need to make sure it was length > 20
to start with. But I would assume this would typically help make sure
it was unique.

How are others dealing with this issue?


erickollmann's Profile:
View this thread: