Created
May 14, 2011 20:20
-
-
Save claylo/972590 to your computer and use it in GitHub Desktop.
Configure Confluence for Crowd SSO
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configure Confluence property files for SSO | |
# RUN THESE COMMANDS FROM ~/Apps | |
# shutdown confluence | |
confluence/bin/shutdown.sh | |
# inject the right line, and comment the line we do not want | |
sed -i -e ' | |
/Crowd single-sign on/ { | |
a\ | |
\ <authenticator class="com.atlassian.confluence.user.ConfluenceCrowdSSOAuthenticator"/> | |
} | |
' confluence/confluence/WEB-INF/classes/seraph-config.xml | |
sed -i -e 's/^\(.*user.ConfluenceAuthenticator.*\)$/<!-- & -->/' confluence/confluence/WEB-INF/classes/seraph-config.xml | |
# copy Crowd properties | |
cp crowd/client/conf/crowd.properties confluence/confluence/WEB-INF/classes | |
# edit Confluences's copy of crowd.properties -- APPLICATION NAME | |
sed -i -e 's/application.name\([ ]*\)crowd/application.name\1confluence/' confluence/confluence/WEB-INF/classes/crowd.properties | |
# edit Confluence's crowd.properties -- APPLICATION PASSWORD | |
# | |
######################################### | |
# EDIT PASSWORD BELOW | |
######################################### | |
# replace YOURPASS in the string with the password you used setting up jira, | |
# but leave the \1 in place! | |
sed -i -e 's/^application.password\([ ]*\).*$/application.password\1YOURPASS/' confluence/confluence/WEB-INF/classes/crowd.properties |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment