Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java EE 综合讨论区  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 【求助】用JNDI在LDAP服务器中添加“入口”的问题。
hut





发贴: 7
积分: 0
于 2003-11-25 08:43 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
ldap服务器是 iplanet Directroy Server 5.1中文版。后缀是dc=mydomain,dc=com。
我写了个Person类,实现了DirContext接口。
public class Person implements DirContext {
private Attributes newLdapUserAttrs = null;
public Person(String uid,String pwd){
newLdapUserAttrs = new BasicAttributes(true);
Attribute objClass = new BasicAttribute("objectClass");
objClass.add("inetorgperson");
objClass.add("organizationalPerson");
objClass.add("person");
objClass.add("top");
newLdapUserAttrs.put(objClass);
newLdapUserAttrs.put("uid",uid);
newLdapUserAttrs.put("userPassword",pwd);
}
}
然后在客户端调用
String dn = "uid=test,ou=People,dc=mydomain,dc=com";
Person p = new Person(uid,pwd);
dirContext.bind(dn,p);
请问,为什么执行到bind这一步的时候,程序就不动了,没有错误抛出,程序好像死了一般,请问是什么缘故?如何解决?谢谢!




话题树型展开
人气 标题 作者 字数 发贴时间
2350 【求助】用JNDI在LDAP服务器中添加“入口”的问题。 hut 772 2003-11-25 08:43

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923