[midPoint] Active Directory Authentication
mceylan
mrveceylan at gmail.com
Tue Nov 8 15:33:53 CET 2016
hi,
the problem is I' m unable to connect with Active Directory using valid
credentials.
catalina.sh file add -Dauth.method.type=ldap
this is my ctx-web-security-ldap.xml file
<bean id="contextSource"
class="org.springframework.security.ldap.DefaultSpringSecurityContextSource">
<constructor-arg value="ldap://
enad.trm.gov.tr:389/dc=trm,dc=gov,dc=tr" />
<property name="userDn"
value="cn=administrator,cn=Users,dc=trm,dc=gov,dc=tr" />
<property name="password" value="1234qQQ" />
<property name="referral" value="follow" />
</bean>
<bean id="midPointAuthenticationProvider"
class="org.springframework.security.ldap.authentication.LdapAuthenticationProvider">
<constructor-arg>
<bean
class="org.springframework.security.ldap.authentication.BindAuthenticator">
<constructor-arg ref="contextSource" />
<property name="userDnPatterns">
<list>
<value>sAMAccountName={0},cn=Users</value>
</list>
</property>
<!-- OPTIONAL -->
<property name="userSearch"
ref="userSearch" />
</bean>
</constructor-arg>
<property name="userDetailsContextMapper"
ref="userDetailsService" />
</bean>
<bean id="userSearch"
class="org.springframework.security.ldap.search.FilterBasedLdapUserSearch">
<constructor-arg index="0" value="" />
<constructor-arg index="1" value="(sAMAccountName={0})" />
<constructor-arg index="2" ref="contextSource" />
<property name="searchSubtree" value="true" />
</bean>
output: *[Warning: Property for 'Bad credentials' not found]*
*Thanks.*--
Merve CEYLAN
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20161108/d41ad89e/attachment.htm>
More information about the midPoint
mailing list