Useful cool solution for Alfresco here by @TimoDenissen.
LDAP auth also needs this cool solution. The suggested test command is particularly helpful.
Putting the two together requires these additional lines in the first solution, in file
tomcat7/shared/classes/alfresco/extension/subsystems/Authentication/ldap/ldap1/ldap-authentication.properties
ldap.synchronization.java.naming.security.principal=uid\=SomeUser,cn\=users,dc\=in,dc\=company,dc\=nz
ldap.synchronization.java.naming.security.credentials=SomePassword
Without above, Alfresco tries to authenticate against LDAP as cn=Manager,dn=company,dn=com with error Reason [LDAP: error code 49 - Invalid Credentials -
Adding this line to the bottom of solution would be helpful…
Restart Alfresco, which will automagically run authentication subsystem and user import.
Also the last line of solution has a bad typo that may cause confusion
Users from the LDAP are not synced into the Alfresco database
Users from LDAP are now synced into the Alfresco database