<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: LDAP authentication | limit to groups inside AD in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/ldap-authentication-limit-to-groups-inside-ad/m-p/107741#M30328</link>
    <description>&lt;P&gt;Unless you expand your person query to cover any (child) group in which a user is a member who should be allowed to log in, it will be impossible to achieve this hard distinction between "being allowed to log in" and "not synchronise every user". What I generally recommend my customers do in this situation is to create a new group in AD specifically to collect all the users who should be allowed to log into Alfresco, and not rely on any (transient) member of (sub-)group shenanigans.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Dec 2020 08:58:19 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2020-12-28T08:58:19Z</dc:date>
    <item>
      <title>LDAP authentication | limit to groups inside AD</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/ldap-authentication-limit-to-groups-inside-ad/m-p/107740#M30327</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I have alfresco community 6.2 with docker already working with Active Directory authentication.&lt;/P&gt;&lt;P&gt;But I'm facing the issue that everybody inside the AD is able to login to Alfresco also like service accounts which is not the best situatin. I thought I had reduced it to LDAP path inside the AD for configured alfresco OU which I created for this. In this OU there is only two groups configured where are the users which need to login to alfresco. But this did not work.&lt;/P&gt;&lt;P&gt;My goal is to allow only users which are inside the alfresco group inside the AD, is there any possibility to bring this to work?&lt;/P&gt;&lt;P&gt;Here is my config:&lt;/P&gt;&lt;PRE&gt;alfresco.authentication.allowGuestLogin=false
ntlm.authentication.mapUnknownUserToGuest=false
create.missing.people=false

### LDAP authentication ###

authentication.chain=alfrescoNtlm1:alfrescoNtlm,ldap-ad1:ldap-ad
ldap.authentication.active=true
ldap.authentication.allowGuestLogin=false
ldap.authentication.userNameFormat=%s@domain.tld
ldap.authentication.java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
ldap.authentication.java.naming.provider.url=ldap://domain.tld:389
ldap.authentication.java.naming.security.authentication=simple
ldap.authentication.escapeCommasInBind=false
ldap.authentication.escapeCommasInUid=false
ldap.authentication.defaultAdministratorUserNames=Administrator

ldap.synchronization.active=true
ldap.synchronization.java.naming.security.principal=service_acc@domain.tld
ldap.synchronization.java.naming.security.credentials=secret
ldap.synchronization.queryBatchSize=1000
ldap.synchronization.attributeBatchSize=1000
\n\
synchronization.autoCreatePeopleOnLogin=false
synchronization.syncWhenMissingPeopleLogIn=false

synchronization.synchronizeChangesOnly=false
synchronization.allowDeletions=true
synchronization.syncWhenMissingPeopleLogIn=true

ldap.synchronization.groupQuery=objectclass\=group
ldap.synchronization.groupDifferentialQuery=(&amp;amp;(objectclass\=group)(!(modifyTimestamp&amp;lt;\={0})))

ldap.synchronization.personQuery=(&amp;amp;(objectclass\=user)(userAccountControl\:1.2.840.113556.1.4.803\:\=512)(&amp;amp;(memberOf=cn\=alfresco-admin,ou=alfresco,ou=USEDOU,ou=USEDOU,dc=domain,dc=tld)(memberOf=cn\=alfresco-user,ou=USEDOU,ou=USEDOU,ou=USEDOU,dc=domain,dc=tld)))

ldap.synchronization.personDifferentialQuery=(&amp;amp;(objectclass\=user)(userAccountControl\:1.2.840.113556.1.4.803\:\=512)(&amp;amp;(memberOf=cn\=alfresco-admin,ou=alfresco,ou=USEDOU,ou=USEDOU,dc=domain,dc=tld)(memberOf=cn\=alfresco-user,ou=USEDOU,ou=USEDOU,ou=USEDOU,dc=domain,dc=tld))(!(modifyTimestamp&amp;lt;\={0})))

ldap.synchronization.groupSearchBase=ou\=alfresco,ou\=USEDOU,ou\=USEDOU,dc\=domain,dc\=tld

ldap.synchronization.userSearchBase=ou\=alfresco,ou\=USEDOU,ou\=USEDOU,dc\=domain,dc\=tld

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=company
ldap.synchronization.defaultHomeFolderProvider=largeHomeFolderProvider
ldap.synchronization.groupIdAttributeName=cn
ldap.synchronization.groupDisplayNameAttributeName=displayName
ldap.synchronization.groupType=group
ldap.synchronization.personType=user
ldap.synchronization.groupMemberAttributeName=member
ldap.synchronization.enableProgressEstimation=true&lt;/PRE&gt;&lt;P&gt;I also tried&amp;nbsp; a change on the person and group query with:&lt;/P&gt;&lt;PRE&gt;ldap.synchronization.personQuery=(&amp;amp;(objectclass\=user)(userAccountControl\:1.2.840.113556.1.4.803\:\=512)(|(memberOf=cn\=alfresco-admin,ou=alfresco,ou=USEDOU,ou=USEDOU,dc=domain,dc=tld)(memberOf=cn\=alfresco-user,ou=USEDOU,ou=USEDOU,ou=USEDOU,dc=domain,dc=tld)))

ldap.synchronization.personDifferentialQuery=(&amp;amp;(objectclass\=user)(userAccountControl\:1.2.840.113556.1.4.803\:\=512)(|(memberOf=cn\=alfresco-admin,ou=alfresco,ou=USEDOU,ou=USEDOU,dc=domain,dc=tld)(memberOf=cn\=alfresco-user,ou=USEDOU,ou=USEDOU,ou=USEDOU,dc=domain,dc=tld))(!(modifyTimestamp&amp;lt;\={0})))&lt;/PRE&gt;&lt;P&gt;Also the same.&lt;/P&gt;&lt;P&gt;I already tried to add the following:&lt;/P&gt;&lt;PRE&gt;create.missing.people=false
synchronization.autoCreatePeopleOnLogin=false
synchronization.syncWhenMissingPeopleLogIn=false&lt;/PRE&gt;&lt;P&gt;But with this config, no new user is able to login, because the user will not be created inside alfresco - so also not a real soloution to provide new users access to alfresco.&lt;/P&gt;&lt;P&gt;So is there any chance to get ldap authentication for users inside a group get to work without allowing anybody to login?&lt;/P&gt;&lt;P&gt;Many thanks in advance for your help.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 12:15:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/ldap-authentication-limit-to-groups-inside-ad/m-p/107740#M30327</guid>
      <dc:creator>drshadow</dc:creator>
      <dc:date>2020-11-13T12:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP authentication | limit to groups inside AD</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/ldap-authentication-limit-to-groups-inside-ad/m-p/107741#M30328</link>
      <description>&lt;P&gt;Unless you expand your person query to cover any (child) group in which a user is a member who should be allowed to log in, it will be impossible to achieve this hard distinction between "being allowed to log in" and "not synchronise every user". What I generally recommend my customers do in this situation is to create a new group in AD specifically to collect all the users who should be allowed to log into Alfresco, and not rely on any (transient) member of (sub-)group shenanigans.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2020 08:58:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/ldap-authentication-limit-to-groups-inside-ad/m-p/107741#M30328</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2020-12-28T08:58:19Z</dc:date>
    </item>
  </channel>
</rss>

