Hi everyone,
I'm working with AD plugin and I'm stuck with this:
Since Windows 2008, when you create a user in Active Directory console, the canonical name of the user is equal to his "display name". But when I create users with vCO, the canonical name is equal to the "Account Name" just like Windows 2003 used to do.
I need to create users exactly as Windows do. So, I need to define the canonical name of a new user equal to the "Account Name" for my clients with Windows 2003 and equal to "Display Name" for my Windows 2008/2012 clientes.
I cannot use the following sentece:
user.setAttribute('cn', DisplayName);
because it throws an error. In fact, you cannot change the canonical name with a LDAP standard client. I use that sentence to change the "First Name" and "Last Name" attributes after de account creation.
Is this possible?
Thanks a lot,
Damián.