Ant 태스크를 통한 LDAP 연결 설정

Ant 태스크를 사용하여 LDAP 연결을 설정할 수 있습니다.

Ant 태스크를 사용하여 연결을 설정하려면 다음 매개변수와 함께 <InstallDir>/teamserver/bin/build.xml에 있는 upload-ldapconfigs-def Ant 태스크를 실행하여 XML 구성 파일을 작성하고 이를 업로드합니다.
  • -DldapConfigDefinitionsFilePath=<The path to the LDAP definition file>

  • -Dserver.url=<The Decision Center URL>

  • -DrtsAdmin.login=<The user name to log in to Decision Center>

  • -DrtsAdmin.password=<The password to log in to Decision Center>

  • -DdatasourceName=<The data source name>

  • -Ddownload=<Set to true to download existing file from the database instead of uploading>

  • -Doutputfile=<The path to save the downloaded file>

예를 들면 다음과 같습니다.
ant upload-ldapconfigs-def -DldapConfigDefinitionsFilePath=C:\my_path\ldapconfigs.xml -Dserver.url=my_url -DrtsAdmin.login=rtsAdmin -DrtsAdmin.password=rtsAdmin -DdatasourceName=my_datasource
구성 파일 내에는 하나 또는 여러 개의 LDAP 연결을 정의합니다. 다음 매개변수를 사용하여 <ldapConnections> 태그 내에 연결을 정의할 수 있습니다.
  • <ldapConnection="Name of the connection"/> - 연결의 이름을 선언합니다.
  • <ldapUrl> - 연결할 LDAP 서버의 URL을 선언합니다.
  • <searchConnectionDN> - 검색을 위해 LDAP에 바인드할 때 사용할 디렉토리의 전체 이름입니다. 지정하지 않으면 익명 연결이 이루어집니다.
  • <searchConnectionPassword> - LDAP 검색에 사용되는 비밀번호입니다. 검색 연결 DN 필드와 함께 사용됩니다.
  • <groupSearchBase> - 그룹 검색에 사용되는 디렉토리입니다(예: ou=employees,dc=mydomain,dc=com).
  • <groupSearchFilter> - 그룹에서 구성원을 나타내는 속성입니다.
  • <groupNameAttribute> - 그룹 검색에서 리턴된 디렉토리 항목 내의 사용자 그룹 이름을 포함하는 항목의 이름입니다. 이 항목이 지정되지 않으면 그룹 검색이 실행되지 않습니다. 예를 들면, cn을 입력하십시오.
  • <userNameAttribute> - LDAP의 사용자 이름이 포함된 속성입니다.
  • <ldapProperties> - 추가적인 필수 LDAP 특성용입니다.
  • <ldapProperty> - 각 추가적인 필수 LDAP 특성용입니다.
  • <ldapPropertyName> - 추가적인 필수 LDAP 특성의 이름입니다.
  • <ldapPropertyValue> - 추가적인 필수 LDAP 특성의 값입니다.
다음 예에는 LDAP 연결을 사용하는 XML 구성 파일이 표시되어 있습니다.
<ldapConnections>
  <ldapConnection name="IBM Blue Pages">
    <ldapUrl>ldap://localhost:10389/</ldapUrl>
    <searchConnectionDN>uid=admin,ou=Users,dc=example,dc=com</searchConnectionDN>
    <searchConnectionPassword>secret</searchConnectionPassword>
    <groupSearchBase>ou=Groups,dc=example,dc=com</groupSearchBase>
    <groupSearchFilter>member</groupSearchFilter>
    <groupNameAttribute>cn</groupNameAttribute>
    <userNameAttribute>uid</userNameAttribute>
  </ldapConnection>
</ldapConnections>