*We are currently using CAS 5.2 and the current properties for LDAP authentication, we were trying to using the same for version 6 except the userFiler which is changed to searchFilter but still we can't connect to the LDAP. In the logs it's nothing even in the debug mode*
2018-10-24 17:49:12,211 WARN [org.apereo.cas.config.CasCoreServicesConfiguration] - <Runtime memory is used as the persistence storage for retrieving and persisting service definitions. Changes that are made to service definitions during runtime WILL be LOST when the web server is restarted. Ideally for production, you need to choose a storage option (JDBC, etc) to store and track service definitions.> 2018-10-24 17:49:12,212 INFO [org.apereo.cas.services.AbstractServicesManager] - <Loaded [0] service(s) from [InMemoryServiceRegistry].> 2018-10-24 17:49:58,889 INFO [org.apereo.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail record BEGIN ============================================================= WHO: testuser WHAT: Supplied credentials: [UsernamePasswordCredential(username=testuser, source=null)] ACTION: AUTHENTICATION_FAILED APPLICATION: CAS WHEN: Wed Oct 24 17:49:58 MYT 2018 CLIENT IP ADDRESS: 127.0.0.1 SERVER IP ADDRESS: 127.0.0.1 ============================================================= below is the properties cas.authn.accept.users= ## # LDAP ## cas.authn.ldap[0].type=AD cas.authn.ldap[0].ldapUrl=ldap://ldapofmyorg.com:389 cas.authn.ldap[0].useSsl=false cas.authn.ldap[0].useStartTls=false cas.authn.ldap[0].connectTimeout=5000 cas.authn.ldap[0].baseDn=DC=edu,DC=my cas.authn.ldap[0].userFilter=sAMAccountName={user} cas.authn.ldap[0].subtreeSearch=true cas.authn.ldap[0].bindDn=CN=example,DC=edu,DC=my cas.authn.ldap[0].bindCredential= cas.authn.ldap[0].dnFormat=uid=%s,DC=edu,DC=my cas.authn.ldap[0].principalAttributeId=sAMAccountName cas.authn.ldap[0].principalAttributePassword= cas.authn.ldap[0].principalAttributeList=sAMAccountName,sn,cn,givenName,displayName,mail,memberOf,userPrincipalName,department,title,distinguishedName cas.authn.ldap[0].failFast=false # Default values: cas.authn.ldap[0].minPoolSize=3 cas.authn.ldap[0].maxPoolSize=10 cas.authn.ldap[0].validateOnCheckout=true cas.authn.ldap[0].validatePeriodically=true cas.authn.ldap[0].validatePeriod=600 cas.authn.ldap[0].idleTime=5000 cas.authn.ldap[0].prunePeriod=5000 cas.authn.ldap[0].blockWaitTime=5000 We have tried in 5.3 maven overley and we have the same issue. <dependencies> <dependency> <groupId>org.apereo.cas</groupId> <artifactId>cas-server-webapp${app.server}</artifactId> <version>${cas.version}</version> <type>war</type> <scope>runtime</scope> </dependency> <!-- ...Additional dependencies may be placed here... --> <dependency> <groupId>org.apereo.cas</groupId> <artifactId>cas-server-support-ldap</artifactId> <version>${cas.version}</version> </dependency> </dependencies> this is the build.gradle dependency section dependencies { if (project.hasProperty("external")) { compile "org.apereo.cas:cas-server-webapp:${project.casVersion}" compile "org.apereo.cas:cas-server-support-ldap:${project.'cas.version'}" } else { compile "org.apereo.cas:cas-server-webapp${project.appServer}:${ project.casVersion}" } // Other dependencies may be listed here... } -- - 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/5b7b4c2d-da59-4c30-9802-697d32e2e785%40apereo.org.
