LDAP Configuration
Hello,
I have Geocortex Essentials deployed in the cloud, and I have configured LDAP for the client's AD connection.
Using the windows ldp command, I can establish the LDAP and LDAPS connection and see the AD.
However, in Geocortex Essentials, on the Identity Server provider, when I click to list the users, I get An operations error occurred. (C:\Program Files (x86)\Latitude Geographics\Geocortex Identity Server\Web\configuration\membership.config line 20)
Can you help me understand what the error is?
I have Portal for ArcGIS installed on the same machine and the connection to LDAP works correctly.
I leave the configurations below.
File ConnectionStrings.config
<connectionStrings>
<!-- Configuration database -->
<add name="IdentityServerConfiguration"
connectionString="Data Source=|DataDirectory|\IdentityServerConfiguration.sdf"
providerName="System.Data.SqlServerCe.4.0" />
<!-- Users database -->
<add name="ProviderDB"
connectionString="Data Source=|DataDirectory|\IdentityServerUsers.sdf"
providerName="System.Data.SqlServerCe.4.0" />
<add name="ADConnString"
connectionString="LDAP://servername:636/DC=domain,DC=ad" />
<add name="ADRolesConnString"
connectionString="LDAP://servername:636/DC=domain,DC=ad" />
</connectionStrings>
File membership.config
<membership defaultProvider="ActiveDirectoryMembershipProvider">
<providers>
<add name="DefaultMembershipProvider"
type="System.Web.Providers.DefaultMembershipProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
connectionStringName="ProviderDB"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="false"
requiresUniqueEmail="false"
maxInvalidPasswordAttempts="20"
minRequiredPasswordLength="6"
minRequiredNonalphanumericCharacters="0"
passwordAttemptWindow="5"
applicationName="/" />
<add name="XmlMembershipProvider"
type="Geocortex.IdentityServer.Integration.Membership.XmlMembershipProvider, Geocortex.IdentityServer.Integration"
userList="App_Data/GlobalSecurityProvider.xml" />
<add name="ActiveDirectoryMembershipProvider"
type="System.Web.Security.ActiveDirectoryMembershipProvider"
connectionStringName="ADConnString"
connectionUsername="domain\\username"
connectionPassword="******"
attributeMapUsername="sAMAccountName"
enableSearchMethods="true" />
</providers>
</membership>
File roleManager.config
<roleManager enabled="true" defaultProvider="ActiveDirectoryRoleProvider">
<providers>
<add name="DefaultRoleProvider"
type="System.Web.Providers.DefaultRoleProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
connectionStringName="ProviderDB"
applicationName="/" />
<add name="XmlRoleProvider"
type="Geocortex.IdentityServer.Integration.Membership.XmlRoleProvider, Geocortex.IdentityServer.Integration"
userList="App_Data/GlobalSecurityProvider.xml" />
<add name="ActiveDirectoryRoleProvider"
type="Geocortex.IdentityServer.Integration.Membership.ActiveDirectoryRoleProvider, Geocortex.IdentityServer.Integration"
activeDirectoryUsersConnectionString="ADConnString"
activeDirectoryGroupsConnectionString="ADRolesConnString"
securityGroupsOnly="false"
groupsToUse="*"/>
</providers>
</roleManager>
Thanks.
João Pinheiro
Please sign in to leave a comment.
Comments
0 comments