Adding an answer to JPBlanc with some of my experiences. I have several ldap servers / trees where I work. Our AD server uses DisplayName as the CN value. Of the 4K + users, we had only a few instances where duplicates occurred. I believe that the default action is to commit the value to 1 if there is an error. This is surprisingly rare, even with high turning speeds in the largest part of this user base. We have two different electronic catalog trees that are linked to each other, and they use the username. The username first has an initial + last name. All duplicates have an incremental number attached to them. As you can imagine, this happens very often with Browns and Smiths and other common names. Another tree, the ADLDS directory (formerly ADAM), uses a uniquely generated number for each new record as CN. This is basically an auto-increment number that is controlled by an external boot process. Finally, we have a directory for external partners (I think independent agents) that uses a combination of email address + identifier number as CN.
I do a lot of user-based maintenance work, and my least favorite scheme is a number created from the outside. If I get a call for support about Joe Brown on all other systems, I can at least have an idea of where I need to find him. Of course, a simple search filter will give me all the Browns, but I still have to write it and execute it. Therefore, my advice is to use some part of the name for CN and ensure uniqueness somehow. From an administrative point of view, this will be a little easier. In fact, CN is important, but you will deal with the rest of the user attributes much more, so don’t sweat too much.
source share