cancel
Showing results for 
Search instead for 
Did you mean: 

AD Synchronization : The Guest user cannot be deleted

hedi_ad
Champ on-the-rise
Champ on-the-rise
Hello,
I have Alfresco community 4.2.f installed in Windows Server 2008 R2 and syncronized very well with AD, but I have an error in afresco.log file every every day at midnight (see attachement):
So I have added these line but nothing was changed.

this is what I added in my ldap-ad-authentication.properties:
————————————————————-

### Disable user removals. If false, then no sync job will be allowed to delete users or groups
synchronization.allowDeletions=false

# The query to select all objects that represent the users to import.
ldap.synchronization.personQuery=(&(objectclass\=user)(!(cn=Guest))(userAccountControl\:1.2.840.113556.1.4.803\:\=512))

# The query to select objects that represent the users to import that have changed since a certain time.
ldap.synchronization.personDifferentialQuery=(&(objectclass\=user)(!(cn=Guest))(userAccountControl\:1.2.840.113556.1.4.803\:\=512)(!(whenChanged<\={0})))

any help!!


5 REPLIES 5

mrogers
Star Contributor
Star Contributor
Do you have a user called "guest" in your LDAP directory?   If so you will need to exclude it from the sync because "guest" is one of the few reserved names in alfresco. 

You can't sync "Guest", "Admin" or "EVERYONE".

hedi_ad
Champ on-the-rise
Champ on-the-rise
Active Directory create by default a guest user in the users directry. to exluded "guest" user from synchronization, I added these line into my ldap-ad-authentication.properties (mentioned in my first comment)
NB: I created a reserved Unit Organization for my users and this is my config to do synchronization only with my users
———————————-
# The group search base restricts the LDAP group query to a sub section of tree on the LDAP server.
ldap.synchronization.groupSearchBase=OU\=EPR,DC\=epr, DC\=lan

# The user search base restricts the LDAP user query to a sub section of tree on the LDAP server.
ldap.synchronization.userSearchBase=OU\=EPR,DC\=epr,DC\=lan
———————————

hedi_ad
Champ on-the-rise
Champ on-the-rise
any help will be greatly appreciated !?

hedi_ad
Champ on-the-rise
Champ on-the-rise
I found this blog who talk about the solution of my issue. But I can't resolve it yet
http://www.giuseppeurso.eu/en/alfresco-tips-and-tricks-15-ldap-error-guest-user-cannot-be-deleted/

kavilash23
Champ on-the-rise
Champ on-the-rise
Having the same issue. Any update on how to fix this?