To identify and verify that this is the root cause of the LDAP import issue, please complete the following:
- Complete an LDAP import as per normal process (scheduled or on-demand)
- Note the error received or wait until completed
- Go to Settings | Logs and change the drop-down menu to view a log called Account Management Service or Account Management Service Errors
- Alternatively, download the Appliance Activity Logs and extract them to review the ams_rest_error.log (located in \kbox\kboxwww\logs\)
- Search the page (ctrl+f) for the term INSERT INTO ACCOUNT_EMAIL
- If there is an error similar to one of the following, which points to an email address with "/" in it, the issue would be verified.
- [2017-03-08 17:57:26] main.DEBUG: INSERT INTO ACCOUNT_EMAIL (EMAIL, SORTING, ACCOUNT_ID) VALUES (?, ?, ?) {"1":"special/characters@pink.local","2":0,"3":39} []
- [2017-03-08 00:30:18] exception-channel.ERROR: Error: An exception occurred while executing 'INSERT INTO ACCOUNT_EMAIL (EMAIL, SORTING, ACCOUNT_ID) VALUES (?, ?, ?)' with params ["special\/characters@pink.local", 0, 39]:
To work-around the issue while it is being investigated, please consider one of the following:
- Import users individually, as necessary
- Change the import filter to exclude any users with "/" in their email addresses
For assistance with identifying all users that currently exist in the KACE Systems Management Appliance with "/" in their email addresses:
- Log into the KACE Systems Management Appliance (if an ORG-enabled box, choose the ORG experiencing the issue)
- Go to Reporting | Choose Action | New (SQL)
- Add a Title
- Choose a Category
- Enter the following, exactly as it appears, into the SQL:
select ID, USER_NAME, FULL_NAME, EMAIL, AMS_ID from USER where EMAIL LIKE '%/%'
- Click Save
- Once the page returns to the list of possible reports, locate the one just created and click on the HTML hyperlink to the right
Note: The report should complete and list information for users that have "/" in their email address, so that it will be known which users need to be excluded from the import.