天天看點

Jira5.0.2與Crowd2.4.2應用內建

  新版本jira、crowd內建與以往有些不一樣,首先就是配置檔案的修改沒有以前多了,然後就是在jira内需要設定一個應用目錄,記得這個簡單的地方也許就不好找。這篇文章你就多看點吧。的确寫的很不好,不過如果你以前對jira有大緻的了解,那看我很不好的文采文章,就能相對簡單了。

  1.    建立directories,一般把name改寫,直接預設就可以了

Jira5.0.2與Crowd2.4.2應用內建

  2.    添加組、使用者等資訊,應該就不用說了,如果不清楚,可以檢視《jira與crowd通信設定》  http://kinggoo.com/app-jira-crowd-confluence-ldap.htm 或者看下面的簡單步驟。

  記得,如果是jira與crowd內建那還需要在jira内設定開外部密碼、外部使用者管理,以及api(當然這是以前的做法了)

  1)    一些配置的修改:

  cp  /usr/local/crowd/client/crowd-integration-client-2.4.2.jar/usr/local/jira/atlassian-jira/web-inf/lib/cp  /usr/local/crowd/client/conf/crowd.properties /usr/local/jira/atlassian-jira/web-inf/classes/cp  /usr/local/crowd/client/conf/crowd-ehcache.xml /usr/local/jira/atlassian-jira/web-inf/classes/

  1.    修改配置檔案crowd.properties

  [root@kinggoo conf]# vim ~/guanli/jira/atlassian-jira/web-inf/classes/crowd.propertiesapplication.name kinggoo-jira #在crowd中建立應用名稱(小寫)application.password arij #在crowd中建立這個應用時的密碼application.login.url http://localhost:8095/crowd/console/crowd.server.url http://localhost:8095/crowd/services/ session.isauthenticated session.isauthenticated session.tokenkey session.tokenkey session.validationinterval 0 session.lastvalidation session.lastvalidation

  2.    檢視配置檔案propertyset.xml

  看此檔案内是否有添加下面内容,如無,則添加

  <propertysetname="crowd"class="com.atlassian.crowd.integration.osuser.crowdpropertyset"/>

  3.    修改配置檔案seraph-config.xml

  <!-- crowd:start - if enabling crowd sso integration uncomment the following jiraauthenticator and comment out the defaultauthenticator below -->去掉此處注釋<authenticatorclass="com.atlassian.crowd.integration.seraph.v22.jiraauthenticator"/><!-- crowd:end -->< -------------------下面是添加注釋的 --------------><!-- crowd:start - the authenticator below here will need to be commented out for crowd sso integration -->< !—在此處添加此處注釋<authenticatorclass="com.atlassian.jira.security.login.jiraosuserauthenticator"/>--><!-- crowd:end -->

  好如果都配置完畢,那就請重新開機jira服務吧!啟動好後如果背景日志沒問題

  jira内建立目錄:

  a)    使用安裝jira時建立的帳号登陸jira,接着點選頁面右上角的administrators,這時會讓你再次輸入密碼;

  b)    在頁面user标簽裡找到user directories  并點選進入;

  c)    再次點選add directories 空件,如圖第一、第二個圖是點選後樣式。

Jira5.0.2與Crowd2.4.2應用內建

  d)    我現在選擇,crowd的下拉菜單。當然,如果你直接就做的ldap的那你可以選擇;

  e)    不多說,看圖,同僚間隔是亮點

Jira5.0.2與Crowd2.4.2應用內建

  f)    配置好後,儲存,這時你在看你的使用者,是不是已經從crowd内同步過來了

  随便拿個帳号實驗一下,在crowd内添加修改等!

最新内容請見作者的github頁:http://qaseven.github.io/

繼續閱讀