Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crowd.properties location #1

Open
remy-tiitre opened this issue Sep 20, 2017 · 3 comments
Open

crowd.properties location #1

remy-tiitre opened this issue Sep 20, 2017 · 3 comments

Comments

@remy-tiitre
Copy link

Where does the plugin search for crowd.properties file?

I tried the same directory where I have my cruise-config.xml file but it seems to load the default file as I can see it trying to connect to 192.168.8.251

@nskalis
Copy link

nskalis commented Oct 18, 2018

hi, did you manage to resolve this ?
if yes, can youhelp by explaining the integrations steps with crowd and this plugin ?

@remy-tiitre
Copy link
Author

No, I did not. I connected directly to Active Directory as this plugin seemed to be unfit for production use and I didn't have time to improve it.

@mdeboer
Copy link

mdeboer commented Sep 4, 2020

I know this issue has been open for a while now but I just want to update as I got it working fine.

The crowd.properties file as referenced by the README is in src/resources/crowd.properties. This means that you first have to clone the repository locally and edit that file. You should change the parameters there as usual with crowd integration and it's pretty straight forward. Double check that you have created the application in Crowd, the passwords match and the remote IP is correct.

Next edit the build.gradle file and in the dependency list after the compile group: 'org.springframework', name: 'spring-context-support', version: springVersion line in the dependencies, add:

  compile('javax.xml.bind:jaxb-api:2.3.0')
  compile('javax.activation:activation:1.1')
  compile('org.glassfish.jaxb:jaxb-runtime:2.3.0')

These dependencies were missing, thanks to [this thread](https://stackoverflow.com/questions/51916221/javax-xml-bind-jaxbexception-implementation-of-jaxb-api-has-not-been-found-on-mo]this thread) for fixing it.

Afterwards run ./gradlew clean assemble to build it (make sure you have Java SDK installed). If it complains about your Java version, remove the gradle directory that was generated and install gradle globally and run gradle clean assemble. I used Gradle v6.6.1 with Java 14. The resulting plugin JAR file will be in the build/libs directory. Copy that to your plugins/external directory of Gocd and restart Gocd. Afterwards you'll be able to add it as authorization configuration and you'll notice you'll need to login immediately after hitting save.

Seems like a lot of hoops to go through and I admit it definitely needs work, but it's working 👍

@mdeboer mdeboer mentioned this issue Sep 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants