佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 828|回复: 10

急。。。。SINGLE SIGN ON

[复制链接]
发表于 29-11-2005 07:15 PM | 显示全部楼层 |阅读模式
我有一个 ACTIVE Directory
我要 get username and password
然后user 不用通过 login screen 来 login to the system..

应为这是一个internal 的系统。。。。。
我是用 JSP 来作网站的。。。。

小弟有想过 用 ADSI 但。。可以跑吗。。。。

有人做过这样的东东吗。。。。

还是用 WINDOWS HOST SCRIPT。。。。
回复

使用道具 举报


ADVERTISEMENT

ipserverOne 该用户已被删除
发表于 29-11-2005 09:53 PM | 显示全部楼层
嗯。。。。
用 JAVA 可能比較痛苦一點點。
除了ASDI 之外,你也可以用LDAP 來查寻你的 Active Directory

可以看看下列網址
http://www.vbforums.com/showthread.php?t=352349
http://msdn.microsoft.com/librar ... html/SecNetHT02.asp
回复

使用道具 举报

 楼主| 发表于 30-11-2005 09:04 AM | 显示全部楼层
对。。我们是用LDAP 来查询的。。有什么好方法。。。

自是不知道如何下手。。。

你有做过Single sign on 吗。。
回复

使用道具 举报

 楼主| 发表于 30-11-2005 10:15 AM | 显示全部楼层
IF I HAVE 2 COMPUTERs...1 is domain controller ...another client...
should i join to this domain when i want to use the LDAP...

or the client can be independent PC..without joining the domain and can use the LDAP...thru the special ID ??

plz clear my doubt...
回复

使用道具 举报

 楼主| 发表于 30-11-2005 05:43 PM | 显示全部楼层
i have i domain controller "msdn.com"
enterprise admin : ahming pwd=123456
我用以下的来连接可以吗。。。。


  1. public static final String contextFactory = "com.sun.jndi.ldap.LdapCtxFactory";
  2.         public static final String providerURL = "ldap://msdn.com";
  3.         public static final String securityPrincipal = "ahming";
  4.         public static final String securityCredential = "123456";
  5.         public static final String remainDC = ",DC=COM";
  6.         public static final String domain = "dc=msdn;dc=com";

复制代码
回复

使用道具 举报

 楼主| 发表于 30-11-2005 05:44 PM | 显示全部楼层
我要另外configure ldap 吗。。。。
回复

使用道具 举报

Follow Us
 楼主| 发表于 30-11-2005 06:12 PM | 显示全部楼层
ldap://dc-one/CN=name,CN=Users,DC=example,DC=net

dc-one 代表什么
CN  代表什么
DC 代表什么

if i have this...  
pc name=jalcydd
domain name= tess.com
username=test1

我要做什么。。。。。。
回复

使用道具 举报

ipserverOne 该用户已被删除
发表于 1-12-2005 06:44 AM | 显示全部楼层
原帖由 Imnotsad 于 30-11-2005 09:04 AM 发表
对。。我们是用LDAP 来查询的。。有什么好方法。。。

自是不知道如何下手。。。

你有做过Single sign on 吗。。



---
自己還沒做過.

再多幾個例子給你。 如果有問題的話,可以試試把你的程式給傳上來。


http://forum.java.sun.com/thread ... 80113&tstart=60
http://forum.java.sun.com/thread ... 78347&tstart=15
回复

使用道具 举报


ADVERTISEMENT

ipserverOne 该用户已被删除
发表于 1-12-2005 06:47 AM | 显示全部楼层
原帖由 Imnotsad 于 30-11-2005 06:12 PM 发表
ldap://dc-one/CN=name,CN=Users,DC=example,DC=net

dc-one 代表什么
CN  代表什么
DC 代表什么

if i have this...  
pc name=jalcydd
domain name= tess.com
username=test1

我要做什么。。。 ...



用這個 LDAP BROWSER
http://www-unix.mcs.anl.gov/~gawor/ldap/

ldap://jalcydd/DC=tess,DC=com
回复

使用道具 举报

 楼主| 发表于 1-12-2005 09:54 AM | 显示全部楼层

  1. user=test1 groups=Sales pwd=123456 domain name=tess.com
复制代码


Sample Code

  1. //specify the LDAP search filter
  2. String searchFilter = "(objectClass=user)";
  3.                
  4. //Specify the Base for the search
  5. String searchBase ="CN=Albert Einstein,OU=Research,DC=antipodes,DC=com";

复制代码



我要如何写我的 searchFilter and searchBase
回复

使用道具 举报

 楼主| 发表于 2-12-2005 11:28 AM | 显示全部楼层
i cant even use the
ldap://test.com to query the user in my domain controller...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 21-7-2025 04:34 PM , Processed in 0.126529 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表