상세 컨텐츠

본문 제목

Gerrit 에 LDAP 으로 login 하기 (Gerrit LDAP 설정)

IT : Ubuntu

by 휀스 2017. 2. 15. 15:57

본문


Gerrit 설치를 할때 LDAP 을 사용하여 로그인 하도록 설정하려면 gerrit 설치 폴더에서 ./etc/gerrit.config 파일만 수정해 주면 됩니다.


[auth]

        type = LDAP

[ldap]

        server = ldap://192.168.10.14

        accountFullName = displayName

        accountEmailAddress = mail

        accountBase = ou=users,dc=yourDomain,dc=com

        accountPattern = (&(objectClass=person)(uid=${username}))

        groupBase = ou=groups,dc=yourDomain,dc=com

        groupMemberPattern = (&(objectClass=group)(member=${dn}))




auth type 을 LDAP 으로 수정합니다.


[ldap] 항목을 추가합니다.

accountFullName 은 gerrit 우상단에 표시되는 이름입니다. 적당한 attribute 를 선택해서 넣어줍니다.

accountEmailAddress 는 이름 그대로 Email 계정입니다. mail 또는 email attribute 를 넣습니다.

accountBase 는 계정에 대한 정보를 포함하고 있는 organizational unit 을 넣고 dc 정보를 넣습니다.

groupBase 는 account 와 동일하게 group 정보를 포함하고 있는 OU 를 넣어줍니다.


위 정보를 모두 입력한 후 gerrit 을 재시작 하면 gerrit 내부에서 LDAP 계정을 사용할 수 있습니다.


이상 Gerrit 에 LDAP 으로 login 하기 (Gerrit LDAP 설정)에 대한 글 이였습니다.




관련글 더보기