Skip to content

Instantly share code, notes, and snippets.

@claylo
Created April 29, 2011 01:34
Show Gist options
  • Save claylo/947691 to your computer and use it in GitHub Desktop.
Save claylo/947691 to your computer and use it in GitHub Desktop.
Configure JIRA for Crowd SSO
# Configure JIRA property files for SSO
# RUN THESE COMMANDS FROM ~/Apps
# sort of uncomment the right line, and comment the right line
sed -i -e '
/CROWD:START.*SSOSeraphAuthenticator/ {
a\
\ <authenticator class="com.atlassian.jira.security.login.SSOSeraphAuthenticator"/>
}
' -e 's/^\(.*login.JiraSeraphAuthenticator.*\)$/<!-- & -->/' jira/atlassian-jira/WEB-INF/classes/seraph-config.xml
# copy Crowd properies
cp crowd/client/conf/crowd.properties jira/atlassian-jira/WEB-INF/classes
# edit JIRA's crowd.properties -- APPLICATION NAME
sed -i -e 's/application.name\([ ]*\)crowd/application.name\1jira/' jira/atlassian-jira/WEB-INF/classes/crowd.properties
# edit JIRA'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/' jira/atlassian-jira/WEB-INF/classes/crowd.properties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment