免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2182 | 回复: 8
打印 上一主题 下一主题

[ldap] Sun[tm] ONE Directory Server求助 [复制链接]

deep2blue 该用户已被删除
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-03-21 16:17 |只看该作者 |倒序浏览
提示: 作者被禁止或删除 内容自动屏蔽
deep2blue 该用户已被删除
2 [报告]
发表于 2005-03-21 21:37 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
deep2blue 该用户已被删除
3 [报告]
发表于 2005-03-21 21:38 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
4 [报告]
发表于 2005-03-22 16:52 |只看该作者

Sun[tm] ONE Directory Server求助

你在hosts文件中修改成标准的DN名看看,如xxx.com
端口号没错,就是默认的那个,查看那个端口是否正常使用了

论坛徽章:
0
5 [报告]
发表于 2005-06-29 17:01 |只看该作者

Sun[tm] ONE Directory Server求助

我也有差不多的问题,我的操作系统是XP,user id填的是admin,也总说connot connect to ...the url is not correct or the server is not running

url该怎么写?the server怎么running

论坛徽章:
0
6 [报告]
发表于 2005-06-30 18:54 |只看该作者

Sun[tm] ONE Directory Server求助

If the client is connecting to a remote LDAP server, do you have firewall rules for the LDAP port and Admin port you have defined?

Gary

论坛徽章:
0
7 [报告]
发表于 2005-07-03 16:26 |只看该作者

Sun[tm] ONE Directory Server求助

管理端口就是管理用的而已。普通的访问还是用389 端口

论坛徽章:
0
8 [报告]
发表于 2005-07-05 14:53 |只看该作者

Sun[tm] ONE Directory Server求助

public static DirContext getCTX(){
          try {
                                                                        String MY_HOST = "ldap://192.168.0.1:389";
                                                try {
                            Hashtable env = new Hashtable();
                            env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory";
                            env.put(Context.PROVIDER_URL, MY_HOST);
                            env.put(Context.SECURITY_PRINCIPAL, "cn=directory manager";
                            env.put(Context.SECURITY_CREDENTIALS, "password";
                            env.put(Context.SECURITY_AUTHENTICATION, "simple";
                            ctx = new InitialDirContext(env);
                    }
                    catch (NamingException e) {
                            e.printStackTrace();
                    }
          }
          catch(IOException e)
          {
                   e.printStackTrace();
          }
          return ctx;
  }

这是我的ldap连接代码

论坛徽章:
0
9 [报告]
发表于 2005-07-05 20:33 |只看该作者

Sun[tm] ONE Directory Server求助

java 我不太懂,你可以用命令行或者jxplorer 之类的客户端先连连看。在研究是不是代码的文体.

Sun 的ids 文档很要命,特别难看懂。找不到要找的东西
如果一定要java ,那么用anonymous 连连看
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP