This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / 请教: 用MS Active Directory Server作为LDAP SERVER, 用JAVA程序作为CLIENT端通过JNDI访问, 在SERVER端是否要作专门的参数设置?我试了多次, JAVA程序能够访问, 但是取回的结点的NameClassPair Set 及 attribute set 都是空的.(根结点除外)
请高手指点! 谢谢先!
-sailor(春眠不觉晓);
2002-5-16
{127}
(#526528@0)
-
这套方案本身已经玩儿的很高了,我相信应该去新闻组找答案。另外:为什么用MS+JAVA组合?是自己的事情还是公司要求?(没回答,反倒问这么多,不好意思)
-simonp(simonp);
2002-5-16
(#526676@0)
-
It's required by client, so what I have to do is to implement it.
btw, my java client can handle iPlanet Directory Server correctly.
-sailor(春眠不觉晓);
2002-5-17
(#527227@0)
-
did you try it on Oracle LDAP server?
-macsym(日进斗斤);
2002-5-17
(#527315@0)
-
Nope, I tried on iPlanet(former Netscape) Directory Server and it worked.
-sailor(春眠不觉晓);
2002-5-17
(#527335@0)
-
有段时间没有玩Directory Service了, 试着回答一下: 我觉得可能是MS Active Directory Server和其他标准不兼容, 这是MS的老毛病了. 你可以试试Netscape的 LDAP, 如果还不work, 就是你的code有问题.私下认为, MS Active Directory Server是很滥的东西, 即使都是MS的产品都不一定work, 除非完全是MS的解决方案, 否则最好不要用. 你现在用MS+JAVA明摆着以后会自找麻烦.
-icesnowman(爱江山也爱美人);
2002-5-17
{156}
(#527327@0)
-
Yeah, you're right. At least MS AD's security principal setting in Java codes is totally different to other vendors.
-sailor(春眠不觉晓);
2002-5-17
(#527334@0)
-
最好不要用AD, 除非全是MS的方案, JAVA和MS势不两立的, 你以后会很后患无穷的. 当然, 从另一个角度, 正好有事可干, :D 不过, 最好和用户先打好招呼.
-icesnowman(爱江山也爱美人);
2002-5-17
(#527351@0)
-
是啊是啊, 象这样重要的设置, 在主要的文档上都没有提到.我现在就一个小兵, 老板叫干什么就干什么, 嘿嘿.
-sailor(春眠不觉晓);
2002-5-17
{45}
(#527364@0)
-
Thanks for all attentions. I solved it! //心情很好!
-sailor(春眠不觉晓);
2002-5-17
(#527329@0)
-
great, could you tell us how to solve it?thx
-macsym(日进斗斤);
2002-5-17
(#527339@0)
-
Come in please.The setting of Context.SECURITY_PRINCIPAL should be:
"cn=YourUserID, cn=Users, dc=domain2, dc=domain1, dc=com"
other than simply "YourUserID".
When it comes out, it's so simple. But it took me pretty long time to solve the problem.
-sailor(春眠不觉晓);
2002-5-17
{247}
(#527348@0)
-
没办法, MS就喜欢和别人不一样, 即使是市场已经成熟的标准, 它也非要改一改.
-icesnowman(爱江山也爱美人);
2002-5-17
(#527362@0)
-
thanks, stupid Microsoft.
-macsym(日进斗斤);
2002-5-17
(#527366@0)
-
good luck, BTW, check your e-mail.
-icesnowman(爱江山也爱美人);
2002-5-17
(#527345@0)