|
|
|
JNDI+LDAP= OK , а как сделать JNDI+LDAP & SSL ?
|
|||
|---|---|---|---|
|
#18+
Вот понадобилось использовать Novell LDAP. Попробовал следующий код: Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. Всё отлично срабатывает, но в данном случае пароль передается открытым текстом, а это не есть хорошо. Попытка убрать комментарий в строке с SSL приводит к ошибке: Error JDeveloper javax.naming.CommunicationException: simple bind failed: 10.1.1.2:636 [Root exception is javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found] at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:198) ......................... Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found ......................... ... 12 more Caused by: sun.security.validator.ValidatorException: No trusted certificate found ......................... ... 24 more Process exited with exit code 0. Ничего не могу найти в документации по JNDI от SUN про этот сертификат... При решении проблемы, описанной в ---Realm Tomcat & Novell LDAP--- для создания Realm (через LDAP) в Tomcat я просто объявил digest algorithm MD5 и всё... А где здесь брать этот сертификат? Electronic Insect ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.10.2004, 01:26 |
|
||
|
|

start [/forum/topic.php?fid=59&fpage=834&tid=2153571]: |
0ms |
get settings: |
7ms |
get forum list: |
20ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
39ms |
get topic data: |
11ms |
get forum data: |
2ms |
get page messages: |
40ms |
get tp. blocked users: |
1ms |
| others: | 199ms |
| total: | 325ms |

| 0 / 0 |
