[DIRECTORY-29] 匿名接続の設定を明示的にした時のみ匿名接続するようにしました Created: 2013-09-14 Updated: 2013-09-14 Resolved: 2013-09-14 |
|
| Status: | Closed |
| Project: | S2Directory |
| Component/s: | S2Directory |
| Affects Version/s: | S2Directory 0.6.1 |
| Fix Version/s: | S2DirectoryTiger 0.7.0, S2Directory 0.7.0 |
| Type: | Improvement | Priority: | Major |
| Reporter: | jfut | Assignee: | jfut |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
現在の DirectoryControlProperty の user、bindDn に設定する値での匿名接続の切り替えは判りにくいため、明示的に匿名接続の設定をした時のみ匿名接続するようにします。 |
||
| Comments |
| Comment by jfut [ 2013-09-14 ] |
|
匿名接続の設定を明示的にした時のみ匿名接続するようにしました。 匿名接続にしたい場合は次のようにします。
directory.dicon で authentication プロパティを次のように設定します。 <property name="authentication">"simple"</property>
Bar.java DirectoryControlProperty property = (DirectoryControlProperty)container.getComponent(DirectoryControlProperty.class);
property.setAuthentication(DirectoryControlProperty.AUTHENTICATION_NONE);
// 以下、接続プロパティ指定で Dao を実行します。
PosixAccountDto account = posixAccountDtoDao.getUserWithUserMode(property, user1);
これまで DirectoryControlProperty の user、bindDn に設定する値で匿名接続を切り替えていた利用者は、コードを書き換える必要があります。 |