cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Trying to synch Guest user with Active Directory

hsturner
Champ on-the-rise
Champ on-the-rise

These are our personQuery and personDifferentialQuery queries

ldap.synchronization.personQuery=(&(objectClass\=user)(!(cn\=Guest))(memberof:1.2.840.113556.1.4.1941:\=cn\=ERP_Alfresco,ou\=Alfresco Groups,ou\=Security Groups,dc\=pblp,dc\=ca)(userAccountControl\:1.2.840.113556.1.4.803\:\=512))

ldap.synchronization.personiDifferentialQuery=(&(objectClass\=user)(!(cn\=Guest))(memberof:1.2.840.113556.1.4.1941:\=cn\=ERP_Alfresco,ou\=Alfresco Groups,ou\=Security Groups,dc\=pblp,dc\=ca)(userAccountControl\:1.2.840.113556.1.4.803\:\=512)(!(modifyTimeStamp<\={0})))

How do I fix the below warning?

 WARN  [org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer] [DefaultScheduler_Worker-5] Synchronization,Category=directory,id1=pbl-ldap-ad1,id2=7 Authority Deletion: Failed to process entry "Guest".
org.alfresco.error.AlfrescoRuntimeException: 11066463 The Guest user cannot be deleted.
        at org.alfresco.repo.security.person.PersonServiceImpl.beforeDeleteNode(PersonServiceImpl.java:1786)
        at sun.reflect.GeneratedMethodAccessor1151.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.alfresco.repo.policy.JavaBehaviour$JavaMethodInvocationHandler.invoke(JavaBehaviour.java:174)
        at com.sun.proxy.$Proxy63.beforeDeleteNode(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor1018.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.alfresco.repo.policy.PolicyFactory$MultiHandler.invoke(PolicyFactory.java:354)
        at org.alfresco.repo.policy.$Proxy308.beforeDeleteNode(Unknown Source)
        at org.alfresco.repo.node.AbstractNodeServiceImpl.invokeBeforeDeleteNode(AbstractNodeServiceImpl.java:484)
        at org.alfresco.repo.node.db.DbNodeServiceImpl.deleteNode(DbNodeServiceImpl.java:1235)
        at org.alfresco.repo.node.db.DbNodeServiceImpl.deleteNode_aroundBody42(DbNodeServiceImpl.java:1088)
        at org.alfresco.repo.node.db.DbNodeServiceImpl$AjcClosure43.run(DbNodeServiceImpl.java:1)
        at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
        at org.alfresco.traitextender.RouteExtensions.intercept(RouteExtensions.java:93)
        at org.alfresco.repo.node.db.DbNodeServiceImpl.deleteNode(DbNodeServiceImpl.java:1086)
        at sun.reflect.GeneratedMethodAccessor1059.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at org.alfresco.repo.lock.mem.LockableAspectInterceptor.invoke(LockableAspectInterceptor.java:234)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at com.sun.proxy.$Proxy25.deleteNode(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor1059.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at org.alfresco.repo.tenant.MultiTNodeServiceInterceptor.invoke(MultiTNodeServiceInterceptor.java:104)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at com.sun.proxy.$Proxy25.deleteNode(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor1059.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.alfresco.repo.service.StoreRedirectorProxyFactory$RedirectorInvocationHandler.invoke(StoreRedirectorProxyFactory.java:224)
        at com.sun.proxy.$Proxy47.deleteNode(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor1059.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at org.alfresco.repo.tagging.TagScopePropertyMethodInterceptor.invoke(TagScopePropertyMethodInterceptor.java:152)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.node.MLPropertyInterceptor.invoke(MLPropertyInterceptor.java:304)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.node.NodeRefPropertyMethodInterceptor.invoke(NodeRefPropertyMethodInterceptor.java:269)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at com.sun.proxy.$Proxy25.deleteNode(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor1059.invoke(Unknown Source)

2 REPLIES 2

cesarista
World-Class Innovator
World-Class Innovator

Hi:

This happens to me in an old Alfresco version (also with an "admin" user). Maybe this helps:

Alfresco tips and tricks – #15 Ldap Error The Guest user cannot be deleted - Giuseppe Urso Blog 

Your queries are related to solution 1. I also disabled guest user.

alfresco.authentication.allowGuestLogin=false
ldap.authentication.allowGuestLogin=false

If nothing works, try full sync.

Regards.

--C.

Hi Cesar,

I have tried adding (!(cn\=Guest)) into the person queries and it is still trying to delete the guest user account, I also have set all the *.authentication.allowGuestLogin variables I could find to false. I am enlisting the help of our AD admin to see if he can figure out any other ldap query statements we could try.