Hi Carlos. Check out this blog post from Apereo:
https://apereo.github.io/2018/06/09/cas53-gettingstarted-overlay/#ldap-authentication I had success stripping down my configuration and using type=AUTHENTICATED when connecting to my Active Directory. cas.authn.ldap[0].type=AUTHENTICATED > cas.authn.ldap[0].ldapUrl=ldaps://ad.fandm.edu > cas.authn.ldap[0].baseDn=ou=Users,dc=fandm,dc=edu > cas.authn.ldap[0].searchFilter=sAMAccountName={user} > cas.authn.ldap[0].bindDn=CN=CAS AD Lookup,CN=Robots,DC=fandm,DC=edu > cas.authn.ldap[0].bindCredential=aPassword On Tue, Nov 27, 2018 at 10:18 AM Carlos Morales <[email protected]> wrote: > > Good afternoon, I have installed CAS in the new version 5.3.0, once modified > the application.properties and indicated that the default credentials stop > working I have tried to add the follow > cas.authn.ldap[0].type= AD > cas.authn.ldap[0].ldapUrl= ldap://IP:389 > cas.authn.ldap[0].useSsl= false > cas.authn.ldap[0].useStartTls= false > cas.authn.ldap[0].connectTimeout= 3000 > cas.authn.ldap[0].baseDn= OU=VDI,DC=domain,DC=local > cas.authn.ldap[0].searchFilter= cm={user} > cas.authn.ldap[0].subtreeSearch= true > cas.authn.ldap[0].dnFormat= %s@domain > > cas.authn.ldap[0].principalAttributeId= Admin > cas.authn.ldap[0].principalAttributePassword=Password > cas.authn.ldap[0].bindCredential=Password > logging.level.org.apereo= DEBUG > > When I try to log in with the credentials, the LOG shows the following error: > > 2018-11-27 12:57:24,594 DEBUG > [org.apereo.cas.authentication.PolicyBasedAuthenticationManager] - > <Authentication handler [HttpBasedServiceCredentialsAuthenticationHandler] > does not support the credential type > [UsernamePasswordCredential(username=Test)]. Trying next...> > > 2018-11-27 12:57:24,629 INFO > [org.apereo.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit > trail record BEGIN > > ============================================================= > > WHO: Test > > WHAT: Supplied credentials: [UsernamePasswordCredential(username=Test)] > > ACTION: AUTHENTICATION_FAILED > > APPLICATION: CAS > > WHEN: Tue Nov 27 12:57:24 CET 2018 > > > From the server of cas with ldapsearch I can show all the information. > > Can you help me in this matter? It is an environment that needs to be > authenticated with AD and I do not get it. > > Thank you so much. > > -- > - Website: https://apereo.github.io/cas > - Gitter Chatroom: https://gitter.im/apereo/cas > - List Guidelines: https://goo.gl/1VRrw7 > - Contributions: https://goo.gl/mh7qDG > --- > You received this message because you are subscribed to the Google Groups > "CAS Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/a/apereo.org/d/msgid/cas-user/57d36eab-e109-42c8-9514-9476e9dcef8e%40apereo.org > <https://groups.google.com/a/apereo.org/d/msgid/cas-user/57d36eab-e109-42c8-9514-9476e9dcef8e%40apereo.org?utm_medium=email&utm_source=footer> > . > -- Todd Higgins Systems Administrator Franklin & Marshall College 717-358-3967 [email protected] -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAF6bG-NMYCTEpuFmd-RA55-CSspFPLbQPSXWJ%2BVsv90vGdoRwQ%40mail.gmail.com.
