Base solution for your next web application
Open Closed

LDAP in multi tenancy mode #3160


User avatar
0
jamsecgmbh created

Hi,

the documentation says "LDAP (Active Directory) Authentication is disabled by default. To make it work, you should disable multi-tenancy since LDAP auth is not used in a multi-tenant system normally."

Is it technically possible to enable both (LDAP Auth and multi-tenancy) at the same time? All users are in the same domain, but the customer has multiple divisions to be separated. It would also be helpfull to be able to use the edition feature.

If it will be technically possible to enable both at the same time - do we have to customize code or will it run out of the box?

Thank you very much!


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Yes, this is possible but it does not work out of the box by changing a setting. You need to ovveride methods of this class <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/blob/master/src/MyCompanyName.AbpZeroTemplate.Core/Authorization/Ldap/AppLdapAuthenticationSource.cs">https://github.com/aspnetzero/aspnet-ze ... nSource.cs</a>.

    You can check below class to see which methods to override. <a class="postlink" href="https://github.com/aspnetboilerplate/module-zero/blob/master/src/Abp.Zero.Ldap/Ldap/Authentication/LdapAuthenticationSource.cs">https://github.com/aspnetboilerplate/mo ... nSource.cs</a>

    Thanks.