I think something goes wrong during the build. When i do gradlew clean copyCasConfiguration build it clears my application.properties and my cas.properties completely. I tried to follow this : https://www.osnetworking.com/fr/install-a-unique-authentication-server-apereo-cas-6-x/ but it won't build a war that contains my settings
On Thursday, October 3, 2019 at 9:04:39 PM UTC+2, rbon wrote: > > Hmm, maybe that is why it is not in the docs. > It is in this file, > https://github.com/apereo/cas/blob/master/api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/model/support/ldap/AbstractLdapSearchProperties.java > > What message do you get if neither is used? > > Ray > > On Thu, 2019-10-03 at 11:28 -0700, WalTech wrote: > > Yes i do use version 6 (CAS overlay template master) downloaded yesterday > from git. > > I tried several settings and with and without the userfilter, but it keeps > on throwing the same error. > #cas.authn.ldap[0].userFilter=sAMAccountName={user} > cas.authn.ldap[0].searchFilter=sAMAccountName={user} > > and > cas.authn.ldap[0].userFilter=sAMAccountName={user} > #cas.authn.ldap[0].searchFilter=sAMAccountName={user} > > which makes me believe that the application.properties isn't even read > > > On Thursday, October 3, 2019 at 8:12:59 PM UTC+2, rbon wrote: > > Which version are you using? > I think in 6, userFilter changed to searchFilter. But I do not see it > listed in the docs. > > https://apereo.github.io/cas/6.0.x/index.html > > Ray > > On Thu, 2019-10-03 at 09:02 -0700, WalTech wrote: > > I found Apereo's CAS yesterday, so i am learning by failing. > I try to connect CAS to my OpenLDAP server and created a new > application.properties file in /etc/cas/config > > cas.authn.ldap[0].type=AUTHENTICATED > > cas.authn.ldap[0].principalAttributeList=sAMAccountName,cn,givenName,memberOf,userPrincipalName,department,title,distinguishedName > cas.authn.ldap[0].ldapUrl=ldap://openldap.lan:10389 > cas.authn.ldap[0].bindDn=uid=admin,ou=system > cas.authn.ldap[0].bindCredential=verysecret > cas.authn.ldap[0].useSsl=false > cas.authn.ldap[0].baseDn=o=slaas,ou=Users > cas.authn.ldap[0].userFilter=cn={Users} > cas.authn.ldap[0].subtreeSearch=true > cas.authn.ldap[0].searchFilter=sAMAccountName={user} > cas.authn.ldap[0].enhanceWithEntryResolver=true > cas.authn.ldap[0].dnFormat=uid=%s,o=slaas,ou=Users > cas.authn.ldap[0].enhanceWithEntryResolver=true > cas.authn.ldap[0].dnFormat=uid=%s,ou=Users,o=slaas > cas.authn.ldap[0].followReferrals=false > cas.authn.ldap[0].hostnameVerifier=ANY > > > When i run my build.cmd run it halts and fails with the following error: > > *************************** > APPLICATION FAILED TO START > *************************** > Description: > Binding to target [Bindable@6e7c351d type = > org.apereo.cas.configuration.CasConfigurationProperties, value = > 'provided', annotations = > array<Annotation>[@org.springframework.boot.context.properties.ConfigurationProperties(value=cas, > > prefix=cas, ignoreUnknownFields=false, ignoreInvalidFields=false)]] failed: > Property: cas.authn.ldap[0].userfilter > Value: cn={user} > Origin: "cas.authn.ldap[0].userFilter" from property source > "bootstrapProperties" > Reason: The elements [cas.authn.ldap[0].userfilter] were left unbound. > Action: > Update your application's configuration > > > Is there anyone who can point me in the right direction? > > -- > > > Ray Bon > Programmer Analyst > Development Services, University Systems > 2507218831 | CLE 019 | [email protected] > > I respectfully acknowledge that my place of work is located within the > ancestral, traditional and unceded territory of the Songhees, Esquimalt and > WSÁNEĆ Nations. > > -- > > Ray Bon > Programmer Analyst > Development Services, University Systems > 2507218831 | CLE 019 | [email protected] <javascript:> > > I respectfully acknowledge that my place of work is located within the > ancestral, traditional and unceded territory of the Songhees, Esquimalt and > WSÁNEĆ Nations. > -- - 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/9cd4ff5b-705a-4ef5-b15f-80a462917887%40apereo.org.
