Hello,
When the default site is empty, the LDAP synchronization import can fail with the following error :
2013-02-21T17:01:03+01:00 auto.php CONTACTS
2013-02-21T17:01:03+01:00 auto.php ERROR: Application Error in classes.inc.php at line 321
2013-02-21T17:01:03+01:00 auto.php Failed to store details for contactid 0
Solution : Go to "Configure" / "Application" / "LDAP" and select a value in the field "LDAP Customer default site"
Regards,