Open remy-tiitre opened 7 years ago
hi, did you manage to resolve this ? if yes, can youhelp by explaining the integrations steps with crowd and this plugin ?
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.
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 👍
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