hello I am attaching the cas.properties file screenshot and also a cas.properties file so I need to know how to connect ldap with cas server. the version of cas is 5.1 which is in maven. kindly check my mail please give me the any solution .
On Wed, Nov 13, 2019 at 2:47 PM Pol Dellaiera <[email protected]> wrote: > Hello Anmol, > > Please use the proper thread for your question or create a new one. > > Thanks. > > On Wednesday, November 13, 2019 at 10:14:47 AM UTC+1, Anmol Budhewar wrote: >> >> Hello, >> Thank you for your response, currently I am using cas 5.1 in maven >> project. Not using the gradle can you help me in maven to connect the cas >> with >> LDAP. >> >> -Anmol >> >> On Wed, Nov 13, 2019 at 2:27 PM Andy Ng <[email protected]> wrote: >> >>> Hi, >>> >>> Referring this here: >>> >>> https://apereo.github.io/cas/6.0.x/configuration/Configuration-Management.html#overview >>> >>> I am using this for my testing system, and I just checked it does work, >>> and it can be consumed by CAS: >>> >>> java -server -noverify -Xmx2048M -jar >>> *-Dcas.standalone.configurationDirectory=/mycasproperties* cas.war >>> ${ADDITIONAL_JAVA_PARAM} >>> >>> >>> And you should be able to see this message if cas properties is loaded: >>> 2019-11-13 08:52:18,444 INFO >>> [org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator] >>> - <Configuration files found at [*/mycasproperties*] are [[file >>> [/mycasproperties/cas.properties]]] under profile(s) >>> >>> See if this would work... >>> >>> Cheers! >>> - Andy >>> >>> >>> >>> -- >>> - 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/cee0bfd6-bf40-48ba-bda3-e7202e2a2d63%40apereo.org >>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/cee0bfd6-bf40-48ba-bda3-e7202e2a2d63%40apereo.org?utm_medium=email&utm_source=footer> >>> . >>> >> -- > - 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/c4548ac7-9799-4fcf-af38-64dc2fd045a0%40apereo.org > <https://groups.google.com/a/apereo.org/d/msgid/cas-user/c4548ac7-9799-4fcf-af38-64dc2fd045a0%40apereo.org?utm_medium=email&utm_source=footer> > . > -- - 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/CADit65YgR6aETB3XO%3DkTYfvug0WfBVg6oLM9W1bqEorT%2BHoA8g%40mail.gmail.com.
cas.server.name: https://cas.example.org:8443 cas.server.prefix: https://cas.example.org:8443/cas cas.adminPagesSecurity.ip=127\.0\.0\.1 logging.config: file:/etc/cas/config/log4j2.xml # cas.serviceRegistry.config.location: classpath:/services server.ssl.keyStore=file:/opt/mkyongkeystore server.ssl.keyStorePassword=changeit server.ssl.keyPassword=changeit #cas.spring.cloud.jdbc.sql=SELECT id, name, value FROM CAS_SETTINGS_TABLE #cas.spring.cloud.jdbc.url= #cas.spring.cloud.jdbc.user= #cas.spring.cloud.jdbc.password= #cas.spring.cloud.jdbc.driverClass= #Query Database Authentication #cas.authn.jdbc.query[0].sql=SELECT * FROM table WHERE name=? # cas.authn.jdbc.query[0].healthQuery= # cas.authn.jdbc.query[0].isolateInternalQueries=false # cas.authn.jdbc.query[0].url=jdbc:hsqldb:mem:cas-hsql-database # cas.authn.jdbc.query[0].failFast=true # cas.authn.jdbc.query[0].isolationLevelName=ISOLATION_READ_COMMITTED # cas.authn.jdbc.query[0].dialect=org.hibernate.dialect.HSQLDialect # cas.authn.jdbc.query[0].leakThreshold=10 # cas.authn.jdbc.query[0].propagationBehaviorName=PROPAGATION_REQUIRED # cas.authn.jdbc.query[0].batchSize=1 # cas.authn.jdbc.query[0].user=user # cas.authn.jdbc.query[0].ddlAuto=create-drop # cas.authn.jdbc.query[0].maxAgeDays=180 # cas.authn.jdbc.query[0].password=secret # cas.authn.jdbc.query[0].autocommit=false # cas.authn.jdbc.query[0].driverClass=org.hsqldb.jdbcDriver # cas.authn.jdbc.query[0].idleTimeout=5000 # cas.authn.jdbc.query[0].credentialCriteria= # cas.authn.jdbc.query[0].name= # cas.authn.jdbc.query[0].order=0 # cas.authn.jdbc.query[0].dataSourceName= # cas.authn.jdbc.query[0].dataSourceProxy=false # cas.authn.jdbc.query[0].fieldPassword=password # cas.authn.jdbc.query[0].fieldExpired= # cas.authn.jdbc.query[0].fieldDisabled= # cas.authn.jdbc.query[0].principalAttributeList=sn,cn:commonName,givenName # cas.authn.jdbc.query[0].passwordEncoder.type=NONE|DEFAULT|STANDARD|BCRYPT|SCRYPT|PBKDF2|com.example.CustomPasswordEncoder # cas.authn.jdbc.query[0].passwordEncoder.characterEncoding= # cas.authn.jdbc.query[0].passwordEncoder.encodingAlgorithm= # cas.authn.jdbc.query[0].passwordEncoder.secret= # cas.authn.jdbc.query[0].passwordEncoder.strength=16 # cas.authn.jdbc.query[0].principalTransformation.suffix= # cas.authn.jdbc.query[0].principalTransformation.caseConversion=NONE|UPPERCASE|LOWERCASE # cas.authn.jdbc.query[0].principalTransformation.prefix= #Search Database Authentication #cas.authn.jdbc.search[0].fieldUser= # cas.authn.jdbc.search[0].tableUsers= # cas.authn.jdbc.search[0].fieldPassword= # cas.authn.jdbc.search[0].healthQuery= # cas.authn.jdbc.search[0].isolateInternalQueries=false # cas.authn.jdbc.search[0].url=jdbc:hsqldb:mem:cas-hsql-database # cas.authn.jdbc.search[0].failFast=true # cas.authn.jdbc.search[0].isolationLevelName=ISOLATION_READ_COMMITTED # cas.authn.jdbc.search[0].dialect=org.hibernate.dialect.HSQLDialect # cas.authn.jdbc.search[0].leakThreshold=10 # cas.authn.jdbc.search[0].propagationBehaviorName=PROPAGATION_REQUIRED # cas.authn.jdbc.search[0].batchSize=1 # cas.authn.jdbc.search[0].user=sa # cas.authn.jdbc.search[0].ddlAuto=create-drop # cas.authn.jdbc.search[0].maxAgeDays=180 # cas.authn.jdbc.search[0].password= # cas.authn.jdbc.search[0].autocommit=false # cas.authn.jdbc.search[0].driverClass=org.hsqldb.jdbcDriver # cas.authn.jdbc.search[0].idleTimeout=5000 # cas.authn.jdbc.search[0].credentialCriteria= # cas.authn.jdbc.search[0].name= # cas.authn.jdbc.search[0].order=0 # cas.authn.jdbc.search[0].dataSourceName= # cas.authn.jdbc.search[0].dataSourceProxy=false # cas.authn.jdbc.search[0].passwordEncoder.type=NONE|DEFAULT|STANDARD|BCRYPT|SCRYPT|PBKDF2|com.example.CustomPasswordEncoder # cas.authn.jdbc.search[0].passwordEncoder.characterEncoding= # cas.authn.jdbc.search[0].passwordEncoder.encodingAlgorithm= # cas.authn.jdbc.search[0].passwordEncoder.secret= # cas.authn.jdbc.search[0].passwordEncoder.strength=16 # cas.authn.jdbc.search[0].principalTransformation.suffix= # cas.authn.jdbc.search[0].principalTransformation.caseConversion=NONE|UPPERCASE|LOWERCASE # cas.authn.jdbc.search[0].principalTransformation.prefix= #Search Database Authentication #cas.authn.jdbc.search[0].fieldUser= # cas.authn.jdbc.search[0].tableUsers= # cas.authn.jdbc.search[0].fieldPassword= # cas.authn.jdbc.search[0].healthQuery= # cas.authn.jdbc.search[0].isolateInternalQueries=false # cas.authn.jdbc.search[0].url=jdbc:hsqldb:mem:cas-hsql-database # cas.authn.jdbc.search[0].failFast=true # cas.authn.jdbc.search[0].isolationLevelName=ISOLATION_READ_COMMITTED # cas.authn.jdbc.search[0].dialect=org.hibernate.dialect.HSQLDialect # cas.authn.jdbc.search[0].leakThreshold=10 # cas.authn.jdbc.search[0].propagationBehaviorName=PROPAGATION_REQUIRED # cas.authn.jdbc.search[0].batchSize=1 # cas.authn.jdbc.search[0].user=sa # cas.authn.jdbc.search[0].ddlAuto=create-drop # cas.authn.jdbc.search[0].maxAgeDays=180 # cas.authn.jdbc.search[0].password= # cas.authn.jdbc.search[0].autocommit=false # cas.authn.jdbc.search[0].driverClass=org.hsqldb.jdbcDriver # cas.authn.jdbc.search[0].idleTimeout=5000 # cas.authn.jdbc.search[0].credentialCriteria= # cas.authn.jdbc.search[0].name= # cas.authn.jdbc.search[0].order=0 # cas.authn.jdbc.search[0].dataSourceName= # cas.authn.jdbc.search[0].dataSourceProxy=false # cas.authn.jdbc.search[0].passwordEncoder.type=NONE|DEFAULT|STANDARD|BCRYPT|SCRYPT|PBKDF2|com.example.CustomPasswordEncoder # cas.authn.jdbc.search[0].passwordEncoder.characterEncoding= # cas.authn.jdbc.search[0].passwordEncoder.encodingAlgorithm= # cas.authn.jdbc.search[0].passwordEncoder.secret= # cas.authn.jdbc.search[0].passwordEncoder.strength=16 # cas.authn.jdbc.search[0].principalTransformation.suffix= # cas.authn.jdbc.search[0].principalTransformation.caseConversion=NONE|UPPERCASE|LOWERCASE # cas.authn.jdbc.search[0].principalTransformation.prefix= #Bind Database Authentication #cas.authn.jdbc.bind[0].healthQuery= # cas.authn.jdbc.bind[0].isolateInternalQueries=false # cas.authn.jdbc.bind[0].url=jdbc:hsqldb:mem:cas-hsql-database # cas.authn.jdbc.bind[0].failFast=true # cas.authn.jdbc.bind[0].isolationLevelName=ISOLATION_READ_COMMITTED # cas.authn.jdbc.bind[0].dialect=org.hibernate.dialect.HSQLDialect # cas.authn.jdbc.bind[0].leakThreshold=10 # cas.authn.jdbc.bind[0].propagationBehaviorName=PROPAGATION_REQUIRED # cas.authn.jdbc.bind[0].batchSize=1 # cas.authn.jdbc.bind[0].user=sa # cas.authn.jdbc.bind[0].ddlAuto=create-drop # cas.authn.jdbc.bind[0].maxAgeDays=180 # cas.authn.jdbc.bind[0].password= # cas.authn.jdbc.bind[0].autocommit=false # cas.authn.jdbc.bind[0].driverClass=org.hsqldb.jdbcDriver # cas.authn.jdbc.bind[0].idleTimeout=5000 # cas.authn.jdbc.bind[0].credentialCriteria= # cas.authn.jdbc.bind[0].name= # cas.authn.jdbc.bind[0].order=0 # cas.authn.jdbc.bind[0].dataSourceName= # cas.authn.jdbc.bind[0].dataSourceProxy=false # cas.authn.jdbc.bind[0].passwordEncoder.type=NONE|DEFAULT|STANDARD|BCRYPT|SCRYPT|PBKDF2|com.example.CustomPasswordEncoder # cas.authn.jdbc.bind[0].passwordEncoder.characterEncoding= # cas.authn.jdbc.bind[0].passwordEncoder.encodingAlgorithm= # cas.authn.jdbc.bind[0].passwordEncoder.secret= # cas.authn.jdbc.bind[0].passwordEncoder.strength=16 # cas.authn.jdbc.bind[0].principalTransformation.suffix= # cas.authn.jdbc.bind[0].principalTransformation.caseConversion=NONE|UPPERCASE|LOWERCASE # cas.authn.jdbc.bind[0].principalTransformation.prefix= #Radius #cas.authn.radius.server.nasPortId=-1 #cas.authn.radius.server.nasRealPort=-1 #cas.authn.radius.server.protocol=EAP_MSCHAPv2 #cas.authn.radius.server.retries=3 #cas.authn.radius.server.nasPortType=-1 #cas.authn.radius.server.nasPort=-1 #cas.authn.radius.server.nasIpAddress=127.0.0.1 #cas.authn.radius.server.nasIpv6Address=10.70.30.236 #cas.authn.radius.server.nasIdentifier=-1 #cas.authn.radius.client.authenticationPort=1812 #cas.authn.radius.client.sharedSecret=testing123 #cas.authn.radius.client.socketTimeout=0 #cas.authn.radius.client.inetAddress=10.70.30.236 #cas.authn.radius.client.accountingPort=1813 #cas.authn.radius.name=freeRADIUS server #cas.authn.radius.failoverOnException=false #cas.authn.radius.failoverOnAuthenticationFailure=false #cas.authn.radius.passwordEncoder.type=NONE|DEFAULT|STANDARD|BCRYPT|SCRYPT|PBKDF2|com.example.CustomPasswordEncoder #cas.authn.radius.passwordEncoder.characterEncoding= #cas.authn.radius.passwordEncoder.encodingAlgorithm= #cas.authn.radius.passwordEncoder.secret=testing123 #cas.authn.radius.passwordEncoder.strength=16 #cas.authn.radius.principalTransformation.suffix= #cas.authn.radius.principalTransformation.caseConversion=NONE|UPPERCASE|LOWERCASE #cas.authn.radius.principalTransformation.prefix= #cas.authn.accept.users: #cas.authn.ldap[0].order: 0 #cas.authn.ldap[0].name: Active Directory #cas.authn.ldap[0].type: AD #cas.authn.ldap[0].ldapUrl: ldap://localhost #cas.authn.ldap[0].validatePeriod: 270 #cas.authn.ldap[0].poolPassivator: NONE #cas.authn.ldap[0].userFilter: sAMAccountName={user} #cas.authn.ldap[0].baseDn: ou=people,cn=admin,dc=localhost,dc=com #cas.authn.ldap[0].dnFormat: cn=admin,ou=people,dc=localhost,dc=com #cas.authn.ldap[1].order: 1 #cas.authn.ldap[1].name: ldap-server #cas.authn.ldap[1].type: AUTHENTICATED #cas.authn.ldap[1].ldapUrl: ldap://localhost #cas.authn.ldap[1].validatePeriod: 270 #cas.authn.ldap[1].userFilter: uid={user} #cas.authn.ldap[1].baseDn: ou=people,dc=localhost,dc=com #cas.authn.ldap[1].bindDn: cn=admin,ou=people,dc=localhost,dc=com #cas.authn.ldap[1].bindCredential: 8995
