What would cause duplicate records after LDAP scheduled import for users? We set up the import the exact same way as we did the initial import and it duplicated user records.

3 Comments   [ - ] Hide Comments


  • When you jump into the USER table in the database (if you can?) are the records identical there as well (aside from ID?)
  • Cannot get there :(
  • To connect to the database, check the instructions here:

Please log in to comment

Answer this question or Comment on this question for clarity



There are 2 causes to this that I have seen:


  1. End user logs in before import happens
  2. 2 imports happening at the same time, and user exists i both
1. The first one is a simple fix; whenever you have new users added to your environment, make sure to not have them log in to the appliance until you have a chance to import them.
This really only matters if your LDAP import schedule requied mapped fields (the 3 in red, username,email,objectguid) are mapped to anything other than what the default is (ldapui,mail,samaccountname). 
For example, some customers use their email address as their username instead of samaccount name. 
2. This ones a little trickier. Download your server troubleshooting logs and look in the cron_server_error log for something like this:
[2013-09-14 08:00:21 -0700] KCronServer[78081]: running /kbox/bin/schedule_userimport.php --id=3 --db=1
[2013-09-14 08:00:21 -0700] KCronServer[78083]: running /kbox/bin/schedule_userimport.php --id=4 --db=1
[2013-09-14 08:30:14 -0700] KCronServer[88380]: running /kbox/bin/schedule_userimport.php --id=2 --db=1

This issue I worked on had really only one schedule set in the UI, but somehow there were 2 others that were running that weren't suppose to so we had to remove those via root access. 

To go a step further, you can see what imports are setup in teh DB:

Then see where they are set in IM_CRON. Replace X with the ID you want to look at:
select * from IM_CRON where ID = X
Answered 09/18/2013 by: brucegoose03
Third Degree Black Belt

Please log in to comment