<?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  - allow login specific groups in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/ldap-allow-login-specific-groups/m-p/112314#M31310</link>
    <description>&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/83759"&gt;@jeorgen&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;why should you need both configs? did you place your two configs in two independant subsystems? For my understanding the second one including the group memberOf filter should be fine for both (sync &amp;amp; login).&lt;/P&gt;&lt;P&gt;How does your authentication.chain look like?&lt;/P&gt;&lt;P&gt;Please check you have autoCreatePeopleOnLogin disabled to prevent user creating from &lt;EM&gt;any&lt;/EM&gt; successfull ldap auth request ignoring your sync paths:&lt;/P&gt;&lt;PRE&gt;# Should we auto create a missing person on log in?
synchronization.autoCreatePeopleOnLogin=false&lt;/PRE&gt;</description>
    <pubDate>Wed, 25 Nov 2020 12:04:04 GMT</pubDate>
    <dc:creator>heiko_robert</dc:creator>
    <dc:date>2020-11-25T12:04:04Z</dc:date>
    <item>
      <title>LDAP  - allow login specific groups</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/ldap-allow-login-specific-groups/m-p/112313#M31309</link>
      <description>&lt;P&gt;Hello, I have a Alfresco 6.2 through Docker. I want to be able login only few groups from AD.&lt;/P&gt;&lt;P&gt;I created two configuration files. In the first config. was loaded all users and groups and disabled authetification.&lt;/P&gt;&lt;P&gt;In the second config. is enabled authetification so people mapped in groups in personQuery are able to login.&lt;/P&gt;&lt;P&gt;Problem is that login can everyone. Also I have this error:&lt;/P&gt;&lt;P&gt;org.alfresco.error.AlfrescoRuntimeException: 10240018 Error during LDAP Search. Reason:[LDAP: error code 32 - 0000208D: NameErr: DSID-03100241, problem 2001 (NO_OBJECT), data 0, best match of:&lt;/P&gt;&lt;P&gt;'DC=sp,DC=local'&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;I think i have a bad logic with this. Can someone please provide me some correct info? To allow login only for specific group, not for everyone.&lt;/P&gt;&lt;P&gt;First Config&lt;/P&gt;&lt;PRE&gt;ntlm.authentication.sso.enabled=false

synchronization.synchronizeChangesOnly=false
synchronization.syncOnStartup=true

ldap.synchronization.active=true
ldap.authentication.active=false
#KREDENC
ldap.synchronization.java.naming.security.principal=login
ldap.synchronization.java.naming.security.credentials=password
ldap.authentication.userNameFormat=%s@domain
ldap.authentication.java.naming.provider.url=ldap://ip:port

ldap.synchronization.userEmailAttributeName=mail
ldap.authentication.defaultAdministratorUserNames=Administrator,alfresco

ldap.synchronization.groupSearchBase=ou\=DMS,ou\=Security Groups,ou\=mp,dc\=sp,dc\=local
ldap.synchronization.userSearchBase=cn\=Users,cn\=cp,dc\=kl,dc\=local

ldap.synchronization.groupQuery=objectclass\=group
ldap.synchronization.personQuery=objectclass\=user&lt;/PRE&gt;&lt;P&gt;Second Config&lt;/P&gt;&lt;PRE&gt;ldap.authentication.active=true
ldap.synchronization.active=false


ldap.synchronization.java.naming.security.principal=login
ldap.synchronization.java.naming.security.credentials=password
ldap.authentication.userNameFormat=%s@domain
ldap.authentication.java.naming.provider.url=ldap://ip:port


ldap.authentication.defaultAdministratorUserNames=Administrator,alfresco

ldap.synchronization.groupSearchBase=ou\=DMS,ou\=Security Groups,ou\=mp,dc\=sp,dc\=local
ldap.synchronization.userSearchBase=cn\=Users,cn\=cp,dc\=kl,dc\=local


ldap.synchronization.userIdAttributeName=sAMAccountName
ldap.synchronization.userType=user
ldap.synchronization.personQuery=(&amp;amp;(objectclass\=user)(memberOf=cn\=GROUP1,ou\=DMS_1,ou\=DMS,ou\=Security Groups,ou\=mp,dc\=sp,dc\=local)(memberOf=cn\=GROUP2,ou\=DMS_1,ou\=DMS,ou\=Security Groups,ou\=mp,dc\=sp,dc\=local)(userAccountControl:1.2.840.113556.1.4.803:=512))
ldap.synchronization.personDifferentialQuery=(&amp;amp;(objectclass\=user)(memberOf=cn\=GROUP1,ou\=DMS_1,ou\=DMS,ou\=Security Groups,ou\=mp,dc\=sp,dc\=local)(memberOf=cn\=GROUP2,ou\=DMS_1,ou\=DMS,ou\=Security Groups,ou\=mp,dc\=sp,dc\=local)(userAccountControl:1.2.840.113556.1.4.803:=512))&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Nov 2020 16:09:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/ldap-allow-login-specific-groups/m-p/112313#M31309</guid>
      <dc:creator>jeorgen</dc:creator>
      <dc:date>2020-11-24T16:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP  - allow login specific groups</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/ldap-allow-login-specific-groups/m-p/112314#M31310</link>
      <description>&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/83759"&gt;@jeorgen&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;why should you need both configs? did you place your two configs in two independant subsystems? For my understanding the second one including the group memberOf filter should be fine for both (sync &amp;amp; login).&lt;/P&gt;&lt;P&gt;How does your authentication.chain look like?&lt;/P&gt;&lt;P&gt;Please check you have autoCreatePeopleOnLogin disabled to prevent user creating from &lt;EM&gt;any&lt;/EM&gt; successfull ldap auth request ignoring your sync paths:&lt;/P&gt;&lt;PRE&gt;# Should we auto create a missing person on log in?
synchronization.autoCreatePeopleOnLogin=false&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Nov 2020 12:04:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/ldap-allow-login-specific-groups/m-p/112314#M31310</guid>
      <dc:creator>heiko_robert</dc:creator>
      <dc:date>2020-11-25T12:04:04Z</dc:date>
    </item>
  </channel>
</rss>

