cancel
Showing results for 
Search instead for 
Did you mean: 

HELP!? LDAP Synchronization Issues - timestamp

soop
Champ in-the-making
Champ in-the-making
Hi,

I'm getting the following errors when attempting to start and synchronize alfresco with my 2008 Active Directory controller - Failed to parse Timestamp


catalina.out :


16:43:23,694 User:System INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'Authentication' subsystem, ID: [Authentication, managed, ldap1] complete
16:43:23,704 User:System INFO  [security.sync.ChainingUserRegistrySynchronizer] Synchronizing users and groups with user registry 'ldap1'
16:43:23,717 User:System INFO  [security.sync.ChainingUserRegistrySynchronizer] Retrieving all groups from user registry 'ldap1'
16:43:23,756 User:System ERROR [security.sync.ChainingUserRegistrySynchronizer] Synchronization aborted due to error
org.alfresco.error.AlfrescoRuntimeException: 02020000 Failed to parse timestamp.

Caused by: java.text.ParseException: Unparseable date: "20100506214148.0Z"
   at java.text.DateFormat.parse(DateFormat.java:337)
   at org.alfresco.repo.security.sync.ldap.LDAPUserRegistry.mapToNode(LDAPUserRegistry.java:977)
   … 50 more
16:43:23,812 User:System WARN  [security.sync.ChainingUserRegistrySynchronizer] Failed initial synchronize with user registries
org.alfresco.error.AlfrescoRuntimeException: 02020000 Failed to parse timestamp.



Here's my config with the obvious removed:



authentication.chain=passthru1:passthru,ldap1:ldap

passthru.authentication.sso.enabled=false
passthru.authentication.allowGuestLogin=false
passthru.authentication.authenticateCIFS=false
passthru.authentication.authenticateFTP=false
passthru.authentication.servers=10.1.2.226
passthru.authentication.domain=myawesomedomain.local
passthru.authentication.useLocalServer=false
passthru.authentication.defaultAdministratorUserNames=linustorvalds
passthru.authentication.connectTimeout=5000
passthru.authentication.offlineCheckInterval=300
passthru.authentication.protocolOrder=TCPIP,NETBIOS


ldap.authentication.active=false
ldap.authentication.java.naming.security.authentication=simple
ldap.authentication.userNameFormat=%s
ldap.authentication.allowGuestLogin=false
ldap.authentication.java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
ldap.authentication.java.naming.provider.url=ldap://10.1.2.226:389
ldap.authentication.escapeCommasInBind=false
ldap.authentication.escapeCommasInUid=false
ldap.synchronization.active=true
ldap.synchronization.java.naming.security.principal=linus@torvalds
ldap.synchronization.java.naming.security.credentials=ShhhhImnottelling!
ldap.synchronization.queryBatchSize=1000
ldap.synchronization.groupDifferentialQuery=(&(objectclass=nogroup)(!(modifyTimestamp<\={0})))
ldap.synchronization.personQuery=(&(objectclass=user)(userAccountControl\:1.2.840.113556.1.4.803\:\=512))
ldap.synchronization.personDifferentialQuery=(& (objectclass=user)(!(modifyTimestamp<\={0})))
ldap.synchronization.groupQuery=(objectclass\=group)
ldap.synchronization.groupSearchBase=cn\=users,dc\=domain,dc\=local
ldap.synchronization.userSearchBase=cn\=users,dc\=domain,dc\=local
ldap.synchronization.modifyTimestampAttributeName=modifyTimestamp
ldap.synchronization.timestampFormat=yyyyMMddHHmmss’.0Z’
ldap.synchronization.userIdAttributeName=sAMAccountName
ldap.synchronization.userFirstNameAttributeName=givenName
ldap.synchronization.userLastNameAttributeName=sn
ldap.synchronization.userEmailAttributeName=mail
ldap.synchronization.userOrganizationalIdAttributeName=msExchALObjectVersion
ldap.synchronization.defaultHomeFolderProvider=userHomesHomeFolderProvider
ldap.synchronization.groupIdAttributeName=cn
ldap.synchronization.groupType=Nogroup
ldap.synchronization.personType=user
ldap.synchronization.groupMemberAttributeName=member


cifs.enabled=false

synchronization.synchronizeChangesOnly=true
synchronization.import.cron=0 0/10 * ? * *




Anyone have any ideas or suggestions?
5 REPLIES 5

soop
Champ in-the-making
Champ in-the-making
Anything? Anyone? Bueller? … Bueller?

cjimenez2581
Champ in-the-making
Champ in-the-making
nothing?

pchoe
Champ in-the-making
Champ in-the-making
Have you tried changing the time date format to :

ldap.synchronization.timestampFormat=yyyyMMddHHmmss'Z'

This is suppose to be openldap time stamp format.

bopolissimus
Confirmed Champ
Confirmed Champ
The OP is old, but I'm posting a likely solution for posterity.

You have:

ldap.synchronization.timestampFormat=yyyyMMddHHmmss’.0Z’

Note the quotes there.  They're not single quotes, they're something else.  If you don't have actual single quotes in the format then that's the problem. replace with single quotes.

OTOH, if you actually do have real single quotes there, ignore this reply.  I got confused by the forums converting your single quotes into backquotes.

Thank you Mr. bopolissimus, i haved the same problem, and your reply was solved it