All we do to build just the cas.war file is run this command in the directory with the pom.xml file & our src overlay directory: *mvn clean package* then it will poop out the warfile in *target/cas.war*
We don't use their scripts. We keep the pom.xml file & our src overlay directory in git, when we push a change to our gitlab server it will build the warfile in a docker container, which then scp's the warfile to our cas servers automagically. This ensures a clean build environment every time. We don't do auto-deploy, we then ssh into the cas-servers and do the deploy manually. Eventually we plan on running CAS in docker, but, since we were under pressure to get it up version 5 we decided to do that later. Helpful - or - just more confusing? Chris On Thu, Feb 8, 2018 at 11:27 AM David Curry <[email protected]> wrote: > > I'm afraid Gradle is a complete mystery to me. Hopefully someone else can > jump in. > > --Dave > > > -- > > DAVID A. CURRY, CISSP > *DIRECTOR OF INFORMATION SECURITY* > INFORMATION TECHNOLOGY > > 71 FIFTH AVE., 9TH FL., NEW YORK, NY 10003 > <https://maps.google.com/?q=71+FIFTH+AVE.,+9TH+FL.,+NEW+YORK,+NY+10003&entry=gmail&source=g> > +1 212 229-5300 x4728 <(212)%20229-5300> • [email protected] > > [image: The New School] > > On Thu, Feb 8, 2018 at 11:13 AM, Cheltenham, Chris < > [email protected]> wrote: > >> David, >> >> Unfortunately that did not make a difference when I built the cas.war >> with gradle. >> When I used maven I got the same list you have. >> >> [root@devcas5 lib]# ll | grep ldap >> -rw-r----- 1 root root 14296 Feb 8 11:02 cas-server-support-ldap-5.2.2.jar >> -rw-r----- 1 root root 35536 Feb 8 11:02 >> cas-server-support-ldap-core-5.2.2.jar >> -rw-r----- 1 root root 802456 Feb 8 11:02 ldaptive-1.2.3.jar >> -rw-r----- 1 root root 37195 Feb 8 11:02 ldaptive-apache-1.2.3.jar >> -rw-r----- 1 root root 100050 Feb 8 11:02 ldaptive-beans-1.2.3.jar >> -rw-r----- 1 root root 40832 Feb 8 11:02 ldaptive-unboundid-1.2.3.jar >> -rw-r----- 1 root root 1991909 Aug 13 01:08 unboundid-ldapsdk-3.2.1.jar >> -rw-r----- 1 root root 3574892 Feb 8 11:02 unboundid-ldapsdk-4.0.1.jar >> >> The bad news is I have to rebuild cas.properties because the maven build >> wiped it out. >> Bummer ... >> >> Hope this is the issue. >> >> Thanks David. >> >> >> >> =========================== >> >> Thank You; >> >> Chris Cheltenham >> Technology Services >> The School District of Philadelphia >> >> Work # 215-400-5025 <(215)%20400-5025> >> Cell # 215-301-6571 <(215)%20301-6571> >> >> ------------------------------ >> *From: *"David Curry" <[email protected]> >> *To: *"cas-user" <[email protected]> >> *Sent: *Thursday, February 8, 2018 10:49:08 AM >> >> *Subject: *Re: [cas-user] CAS 5.2.x >> >> Try changing what you have: >> >> <dependency> >> <groupId>org.apereo.cas</groupId> >> <artifactId>cas-server-support-ldap</artifactId> >> </dependency> >> >> to this: >> >> <dependency> >> <groupId>org.apereo.cas</groupId> >> <artifactId>cas-server-support-ldap</artifactId> >> <version>${cas.version}</version> >> </dependency> >> >> I'm pretty sure you have to have a version in there, so Maven knows which >> one to give you. >> >> --Dave >> >> >> -- >> >> DAVID A. CURRY, CISSP >> *DIRECTOR OF INFORMATION SECURITY* >> INFORMATION TECHNOLOGY >> >> 71 FIFTH AVE., 9TH FL., NEW YORK, NY 10003 >> <https://maps.google.com/?q=71+FIFTH+AVE.,+9TH+FL.,+NEW+YORK,+NY+10003&entry=gmail&source=g> >> +1 212 229-5300 x4728 <(212)%20229-5300> • [email protected] >> >> [image: The New School] >> >> On Thu, Feb 8, 2018 at 10:22 AM, Cheltenham, Chris < >> [email protected]> wrote: >> >>> David, >>> >>> These are my my pom.xml dependencies. >>> Its funny we are all kind of guessing , that's why we are here I suppose. >>> I certainly am guessing. >>> >>> >>> <dependencies> >>> <dependency> >>> <groupId>org.apereo.cas</groupId> >>> <artifactId>cas-server-support-ldap</artifactId> >>> </dependency> >>> >>> <dependency> >>> <groupId>org.apereo.cas</groupId> >>> <artifactId>cas-server-webapp${app.server}</artifactId> >>> <version>${cas.version}</version> >>> <type>war</type> >>> <scope>runtime</scope> >>> </dependency> >>> </dependencies> >>> >>> =========================== >>> >>> >>> Thank You; >>> >>> Chris Cheltenham >>> Technology Services >>> The School District of Philadelphia >>> >>> Work # 215-400-5025 <(215)%20400-5025> >>> Cell # 215-301-6571 <(215)%20301-6571> >>> >>> ------------------------------ >>> *From: *"David Curry" <[email protected]> >>> *To: *"cas-user" <[email protected]> >>> *Sent: *Thursday, February 8, 2018 10:18:41 AM >>> >>> *Subject: *Re: [cas-user] CAS 5.2.x >>> >>> I do not see this one: >>> >>> cas-server-support-ldap-5.2.2.jar >>> >>> >>> which, I believe, is the one you need. I don't pretend to be an expert >>> on these things. But when I build from the Maven overlay with this >>> dependency included in pom.xml: >>> >>> <dependency> >>> <groupId>org.apereo.cas</groupId> >>> <artifactId>cas-server-support-ldap</artifactId> >>> <version>${cas.version}</version> >>> </dependency> >>> >>> Here's what I get: >>> >>> WEB-INF/lib/cas-server-support-ldap-5.2.2.jar >>> WEB-INF/lib/cas-server-support-ldap-core-5.2.2.jar >>> WEB-INF/lib/ldaptive-1.2.3.jar >>> WEB-INF/lib/ldaptive-beans-1.2.3.jar >>> WEB-INF/lib/ldaptive-unboundid-1.2.3.jar >>> WEB-INF/lib/unboundid-ldapsdk-4.0.1.jar >>> WEB-INF/lib/ldaptive-apache-1.2.3.jar >>> WEB-INF/lib/unboundid-ldapsdk-3.2.1.jar >>> >>> >>> and when I build from the same pom.xml but with that dependency >>> removed, here's what I get: >>> >>> WEB-INF/lib/cas-server-support-ldap-core-5.2.2.jar >>> WEB-INF/lib/ldaptive-apache-1.2.3.jar >>> WEB-INF/lib/ldaptive-beans-1.2.3.jar >>> WEB-INF/lib/ldaptive-unboundid-1.2.3.jar >>> WEB-INF/lib/ldaptive-1.2.3.jar >>> WEB-INF/lib/unboundid-ldapsdk-3.2.1.jar >>> >>> >>> So that tells me (or suggests, anyway) that you should be seeing >>> >>> WEB-INF/lib/cas-server-support-ldap-5.2.2.jar >>> >>> (and maybe WEB-INF/lib/unboundid-ldapsdk-4.0.1.jar). >>> >>> Are you building with the Maven overlay? Have you tried deleting your >>> Maven cache directory and re-doing the "mvnw clean package"? >>> >>> --Dave >>> >>> >>> >>> -- >>> >>> DAVID A. CURRY, CISSP >>> *DIRECTOR OF INFORMATION SECURITY* >>> INFORMATION TECHNOLOGY >>> >>> 71 FIFTH AVE., 9TH FL., NEW YORK, NY 10003 >>> <https://maps.google.com/?q=71+FIFTH+AVE.,+9TH+FL.,+NEW+YORK,+NY+10003&entry=gmail&source=g> >>> +1 212 229-5300 x4728 <(212)%20229-5300> • [email protected] >>> >>> [image: The New School] >>> >>> On Thu, Feb 8, 2018 at 10:00 AM, Cheltenham, Chris < >>> [email protected]> wrote: >>> >>>> David, >>>> >>>> I have the following jars. >>>> Is this sufficient for ldap support? >>>> >>>> [root@devcas5 lib]# pwd >>>> /opt/tcat/webapps/cas/WEB-INF/lib >>>> [root@devcas5 lib]# ll | grep ldap >>>> -rw-r----- 1 root root 35536 Jan 26 13:26 >>>> cas-server-support-ldap-core-5.2.2.jar >>>> -rw-r----- 1 root root 802456 Nov 27 11:40 ldaptive-1.2.3.jar >>>> -rw-r----- 1 root root 37195 Nov 27 11:40 ldaptive-apache-1.2.3.jar >>>> -rw-r----- 1 root root 100050 Nov 27 11:40 ldaptive-beans-1.2.3.jar >>>> -rw-r----- 1 root root 40832 Nov 27 11:40 ldaptive-unboundid-1.2.3.jar >>>> -rw-r----- 1 root root 1991909 Aug 13 01:08 unboundid-ldapsdk-3.2.1.jar >>>> [root@devcas5 lib]# >>>> >>>> My error is this - >>>> 2018-02-07 15:28:16,450 DEBUG >>>> [org.apereo.cas.authentication.handler.support.AbstractUsernamePasswordAuthenticationHandler] >>>> - <Examining credential [ccheltenham-ext] eligibility for authentication >>>> handler [AcceptUsersAuthenticationHandler]> >>>> 2018-02-07 15:28:16,450 DEBUG >>>> [org.apereo.cas.authentication.handler.support.AbstractUsernamePasswordAuthenticationHandler] >>>> - <Credential [ccheltenham-ext] eligibility is >>>> [AcceptUsersAuthenticationHandler] for authentication handler [true]> >>>> 2018-02-07 15:28:16,451 DEBUG >>>> [org.apereo.cas.authentication.handler.support.AbstractUsernamePasswordAuthenticationHandler] >>>> - <Attempting to encode credential password via >>>> [org.springframework.security.crypto.password.NoOpPasswordEncoder] for >>>> ccheltenham-ext]> >>>> 2018-02-07 15:28:16,451 DEBUG >>>> [org.apereo.cas.authentication.handler.support.AbstractUsernamePasswordAuthenticationHandler] >>>> - <Attempting authentication internally for transformed credential >>>> [ccheltenham-ext]> >>>> 2018-02-07 15:28:16,451 DEBUG >>>> [org.apereo.cas.authentication.AcceptUsersAuthenticationHandler] - >>>> <[ccheltenham-ext] was not found in the map.> >>>> 2018-02-07 15:28:16,452 DEBUG >>>> [org.apereo.cas.authentication.PolicyBasedAuthenticationManager] - >>>> <[AcceptUsersAuthenticationHandler] exception details: [ccheltenham-ext not >>>> found in backing map.].> >>>> 2018-02-07 15:28:16,452 ERROR >>>> [org.apereo.cas.authentication.PolicyBasedAuthenticationManager] - >>>> <Authentication has failed. Credentials may be incorrect or CAS cannot find >>>> authentication handler that supports [ccheltenham-ext] of type >>>> [UsernamePasswordCredential].> >>>> >>>> =========================== >>>> >>>> Thank You; >>>> >>>> Chris Cheltenham >>>> Technology Services >>>> The School District of Philadelphia >>>> >>>> Work # 215-400-5025 <(215)%20400-5025> >>>> Cell # 215-301-6571 <(215)%20301-6571> >>>> >>>> ------------------------------ >>>> *From: *"David Curry" <[email protected]> >>>> *To: *"cas-user" <[email protected]> >>>> *Sent: *Thursday, February 8, 2018 7:54:21 AM >>>> *Subject: *Re: [cas-user] CAS 5.2.x >>>> >>>> >>>> $ jar tvf cas.war | grep ldap >>>> WEB-INF/lib/cas-server-support-ldap-5.2.2.jar >>>> WEB-INF/lib/cas-server-support-ldap-core-5.2.2.jar >>>> WEB-INF/lib/ldaptive-1.2.3.jar >>>> WEB-INF/lib/ldaptive-beans-1.2.3.jar >>>> WEB-INF/lib/ldaptive-unboundid-1.2.3.jar >>>> WEB-INF/lib/unboundid-ldapsdk-4.0.1.jar >>>> WEB-INF/lib/ldaptive-apache-1.2.3.jar >>>> WEB-INF/lib/unboundid-ldapsdk-3.2.1.jar >>>> $ >>>> >>>> The cas-server-support-ldap-5.2.2.jar is the one you're looking for. >>>> >>>> --Dave >>>> >>>> >>>> -- >>>> >>>> DAVID A. CURRY, CISSP >>>> *DIRECTOR OF INFORMATION SECURITY* >>>> INFORMATION TECHNOLOGY >>>> >>>> 71 FIFTH AVE., 9TH FL., NEW YORK, NY 10003 >>>> <https://maps.google.com/?q=71+FIFTH+AVE.,+9TH+FL.,+NEW+YORK,+NY+10003&entry=gmail&source=g> >>>> +1 212 229-5300 x4728 <(212)%20229-5300> • [email protected] >>>> >>>> [image: The New School] >>>> >>>> On Thu, Feb 8, 2018 at 7:27 AM, Cheltenham, Chris < >>>> [email protected]> wrote: >>>> >>>>> Hello folks, >>>>> >>>>> I think I have been confusing everyone with too much incongruent >>>>> information. >>>>> >>>>> If I may I will ask things in a more logical manner. >>>>> >>>>> I an still not able to connect with CAS 5 via LDAP. >>>>> >>>>> My first question is , how do I know the ldap dependency was built >>>>> into the cas.war file? >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> =========================== >>>>> >>>>> Thank You; >>>>> >>>>> Chris Cheltenham >>>>> Technology Services >>>>> The School District of Philadelphia >>>>> >>>>> Work # 215-400-5025 <(215)%20400-5025> >>>>> Cell # 215-301-6571 <(215)%20301-6571> >>>>> >>>>> -- >>>>> - 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/341032203.44492473.1518092860963.JavaMail.zimbra%40philasd.org >>>>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/341032203.44492473.1518092860963.JavaMail.zimbra%40philasd.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/CA%2Bd9XANEt0K3ugKG7O5%3DT9p5C8%3DsVOnqsz50xuU0wrfmkFg7mg%40mail.gmail.com >>>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/CA%2Bd9XANEt0K3ugKG7O5%3DT9p5C8%3DsVOnqsz50xuU0wrfmkFg7mg%40mail.gmail.com?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/642964186.44524329.1518102001703.JavaMail.zimbra%40philasd.org >>>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/642964186.44524329.1518102001703.JavaMail.zimbra%40philasd.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/CA%2Bd9XAP3iQxcfmY2is0fP3TKuFHa04ZeiFGSnw%2BZYJRLcgHdiA%40mail.gmail.com >>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/CA%2Bd9XAP3iQxcfmY2is0fP3TKuFHa04ZeiFGSnw%2BZYJRLcgHdiA%40mail.gmail.com?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/615653775.44529646.1518103349964.JavaMail.zimbra%40philasd.org >>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/615653775.44529646.1518103349964.JavaMail.zimbra%40philasd.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/CA%2Bd9XAN_Ny7CJfw-ijE64M6XM%3Ddy_M-D9giUo30Q_6et%2B6ZBgQ%40mail.gmail.com >> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/CA%2Bd9XAN_Ny7CJfw-ijE64M6XM%3Ddy_M-D9giUo30Q_6et%2B6ZBgQ%40mail.gmail.com?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/744274780.44539669.1518106410012.JavaMail.zimbra%40philasd.org >> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/744274780.44539669.1518106410012.JavaMail.zimbra%40philasd.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/CA%2Bd9XAPEyzupD%3DDaevff4vKyisEXo%3Dfp1cCJ471ku3q%3DEzokrQ%40mail.gmail.com > <https://groups.google.com/a/apereo.org/d/msgid/cas-user/CA%2Bd9XAPEyzupD%3DDaevff4vKyisEXo%3Dfp1cCJ471ku3q%3DEzokrQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- -sent from my mobile -- - 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/CAFZ1tgZKXTmd%2BTPRe1Qta8_98yenirH1mTwvHHzXi3eYm1yJZg%40mail.gmail.com.
