Skip to content

Instantly share code, notes, and snippets.

@claylo
Created May 14, 2011 20:20
Show Gist options
  • Save claylo/972590 to your computer and use it in GitHub Desktop.
Save claylo/972590 to your computer and use it in GitHub Desktop.
Configure Confluence for Crowd SSO
# 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