We have created LDAP import on Insight and on LDAP the manager attribute stores data in the following format CN=fullname,CN=Users,DC=test,DC=mydomain,DC=com or CN=lastname, firstname,CN=Users,DC=test,DC=mydomain,DC=com.
And for the format CN=fullname,CN=Users,DC=test,DC=mydomain,DC=com we were able to set regex during the import and get the data but for the users with format CN=lastname, firstname,CN=Users,DC=test,DC=mydomain,DC=com we are unable to import it as the name has to be formatted into firstname lastname.
Can anyone please help to import the data from the both formats with a single regex