...
IDの追加方法
以下の利用者をLDAPへ登録する例を示します。
uid | userPassword | ou | eduPersonAffiliation |
---|---|---|---|
test004 | test004 | technology | student |
1. ldifファイル(sample1.ldif)の作成
パネル | ||||||
---|---|---|---|---|---|---|
| ||||||
dn: ou=technology,o=test_o,dc=ac,c=JP # test004, technology, test_o, ac, JP dn: uid=test004,ou=technology,o=test_o,dc=ac,c=JP objectClass: eduPerson objectClass: inetOrgPerson ou: technology sn: test_sn_4 cn: test_cn_4 uid: test004 userPassword: test004 eduPersonAffiliation: student |
2. 上記1のldifファイルを用いた登録
パネル | ||||||
---|---|---|---|---|---|---|
| ||||||
# ldapadd -x -h localhost -D "cn=olmgr,o=test_o,dc=ac,c=JP" -w csildap -f sample1.ldif |
...
パネル | ||||||
---|---|---|---|---|---|---|
| ||||||
dn: uid=test004,ou=technology,o=test_o,dc=ac,c=JP changetype: modify add: displayName displayName: Test4 |
...
2. 上記1のldifファイルを用いた登録
パネル | ||||||
---|---|---|---|---|---|---|
| ||||||
# ldapmodify -x -h localhost -D "cn=olmgr,o=test_o,dc=ac,c=JP" -w csildap -f sample2.ldif |
...
パネル | ||||||
---|---|---|---|---|---|---|
| ||||||
(中略) # displayName # When displaying an entry, especially within a one-line summary list, it |
...
2. /opt/shibboleth-idp/conf/attribute-resolver.xmlへの登録
パネル | ||||||
---|---|---|---|---|---|---|
| ||||||
<resolver:AttributeResolver (中略)
<resolver:AttributeEncoder<AttributeEncoder xsi:type="enc:SAML1String" name="urn:mace:dir:attribute-def:displayName" encodeType="false" /> (中略) </AttributeResolver> |
...
3. /opt/shibboleth-idp/conf/attribute-filter.xmlへの登録
...