Error while creating AD account with middlename - initials attribute LDAP error code 34

rajsannidhi
New Contributor III
New Contributor III

Error while creating AD account with middlename initials attribute LDAP error code 34

Checking DN for CN=Boston\ B\ Bruins,OU=Accounts,OU=xyz FC,DC=corp,DC=xyzfc,DC=com.Not FOund DN for CN=Boston B Bruins,OU=Accounts,OU=xyz FC,DC=corp,DC=xyzfc,DC=com. Error while creating account in AD - CN=Boston B Bruins,OU=Accounts,OU=xyz FC,DC=corp,DC=xyzfc,DC=com: [LDAP: error code 34 - 00002081: NameErr: DSID-03050FB1, problem 2003 (BAD_ATT_SYNTAX), data 0

Account Name Rule

${if (ServiceAccountOwnerMap.ServiceAccountType.equals('Service')) { 'CN='+task.accountName+',OU=Service Accounts,OU=Accounts,OU=xyz FC,DC=corp,DC=xyzfc,DC=com' }
else if(ServiceAccountOwnerMap.ServiceAccountType.equals('Test')) { 'CN='+task.accountName+',OU=Service Accounts,OU=Accounts,OU=xyz FC,DC=corp,DC=xyzfc,DC=com' }
else if(ServiceAccountOwnerMap.ServiceAccountType.equals('Support')) { 'CN='+task.accountName+',OU=Service Accounts,OU=Accounts,OU=xyz FC,DC=corp,DC=xyzfc,DC=com' }
else if (ServiceAccountOwnerMap.ServiceAccountType.equals('Privileged')) {'CN='+task.accountName+',OU=Service Accounts,OU=Accounts,OU=xyz FC,DC=corp,DC=xyzfc,DC=com' }
else if (user.middlename != null && user.middlename != '') { 'CN='+user.preferedFirstName+'\\ '+user.middlename+'\\ '+user.lastname+',OU=Accounts,OU=xyz FC,DC=corp,DC=xyzfc,DC=com'+'###'+'CN='+user.preferedFirstName+'\\ '+user.middlename+'\\ '+user.lastname+'1,OU=Accounts,OU=xyz FC,DC=corp,DC=xyzfc,DC=com'+'###'+'CN='+user.preferedFirstName+'\\ '+user.middlename+'\\ '+user.lastname+'2,OU=Accounts,OU=xyz FC,DC=corp,DC=xyzfc,DC=com' +'###'+'CN='+user.preferedFirstName+'\\ '+user.middlename+'\\ '+user.lastname+'3,OU=Accounts,OU=xyz FC,DC=corp,DC=xyzfc,DC=com'}
else { 'CN='+user.preferedFirstName+'\\ '+user.lastname+',OU=Accounts,OU=xyz FC,DC=corp,DC=xyzfc,DC=com'+'###'+'CN='+user.preferedFirstName+'\\ '+user.lastname+'1,OU=Accounts,OU=xyz FC,DC=corp,DC=xyzfc,DC=com'+'###'+'CN='+user.preferedFirstName+'\\ '+user.lastname+'2,OU=Accounts,OU=xyz FC,DC=corp,DC=xyzfc,DC=com'+'###'+'CN='+user.preferedFirstName+'\\ '+user.lastname+'3,OU=Accounts,OU=xyz FC,DC=corp,DC=xyzfc,DC=com'}}

2 REPLIES 2

nimitdave
Saviynt Employee
Saviynt Employee

@rajsannidhi pls share complete error message and also the createaccountjson. 

So I assume that if middlename is not present then create account works fine.

rajsannidhi
New Contributor III
New Contributor III

@nimitdave yes it does, I was able to resolve this issue, there was an issue with 'cn' attribute. Thank You.