- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想从 LDAP 的控件 oid 中获取值:例如,当我使用 Linux ldapsearch 时:
ldapsearch -H ldap://host:port -x -wsecret -D "cn=manager,managedElementId=HSS1"
-b "dn" "objectClass=ConfigOAM" -E"1.3.6.1.4.1.637.81.2.10.10"
我得到结果:
...
**control: 1.3.6.1.4.1.637.81.2.10.10 false AgEB**
objectClass: top
objectClass: ConfigOAM
confOAMId: 1
...
我的java代码看起来:
LDAPConnection connection = new LDAPConnection();
connection.connect(hostName, port);
connection.bind(LDAPConnection.LDAP_V3, userDN, password);
String returnedAttributes[] = {"+", "*"};
boolean attributeOnly = false;
String oid;
LDAPSearchResults results = connection.search("", LDAPConnection.SCOPE_BASE, "(objectClass=*)", returnedAttributes, attributeOnly);
LDAPEntry entry = results.next();
System.out.println("\n" + entry.getDN());
System.out.println(" Attributes: ");
LDAPAttributeSet attributeSet = entry.getAttributeSet();
Iterator allAttributes = attributeSet.iterator();
while(allAttributes.hasNext()) {
LDAPAttribute attribute = (LDAPAttribute)allAttributes.next();
String attrName = attribute.getName();
System.out.println(" " + attrName);
Enumeration allValues = attribute.getStringValues();
while(allValues.hasMoreElements()) {
oid = (String) allValues.nextElement();
if ( (attrName.equalsIgnoreCase("supportedExtension")) || (attrName.equalsIgnoreCase("supportedControl"))) {
System.out.println(" " + oid);
}
}
}
<小时/>
结果是:
...
supportedControl
2.16.840.1.113730.3.4.2
1.2.840.113556.1.4.319
1.2.826.0.1.3344810.2.3
1.3.6.1.1.12
1.3.6.1.4.1.637.81.2.10.11
**1.3.6.1.4.1.637.81.2.10.10**
1.3.6.1.4.1.637.81.2.10.9
1.3.6.1.4.1.637.81.2.10.6
...
请建议我或建议我如何在java中获得附加值“false AgEB”,就像我在ldapsearch中获得它一样?
最佳答案
您需要将控件添加到搜索请求并能够解释响应。
有一些可用的示例: http://www.novell.com/documentation/developer/samplecode/jldap_sample/
-吉姆
关于java - 如何使用 com.novell.ldap 从 LDAP 获取 "supportedControl",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18642152/
我在一家 .NET/MSSQL 商店工作,该商店无法支持运行 Novell 的客户,部分原因是我们没有 Novell(或没有资金),部分原因是我们没有具有 Novell 经验的人。这个问题可以很容易地
While loading : File "game/script.rpy", line 7, in script "Welcome." File "renpy/common/000w
我正在尝试使用 Novell 发布的库 (Novell.Directory.Ldap)。版本 2.1.10。 到目前为止我做了什么: 我测试了与应用程序 (LdapBrowser) 的连接,它正在运行
当我从 visual studio 2010 创建新的 android 项目时,它会显示以下消息。 未找到 C:\Program Files\MSBuid\Novell\Novell.MOnoDroi
我的公司正在考虑在即将推出的产品中使用 Mono,因此我们正在考虑 12,995 美元 Mono Kickstart来自 Novell 的支持。 有人用过吗,值得吗? 最佳答案 如果我是你,我可能会开
我想使用 java 的预定义方法java.util.UUID:randomUUID() 用于046b6c7f-0b8a-43b9-b35d-6489e6daee91 代替 CN,但是当我在我的政策中使
我有一个 Java 应用程序,它有自己的用户名和密码表。我们正在尝试升级系统,以便用户可以简单地使用他们的 groupwise/novell 帐户登录,本质上是同步他们的帐户。 验证他们的用户名和密码
这可能吗,或者有 API 吗? Novell 的网站上有一个 GroupWise API,但我没有看到任何发送即时消息的方法,只有电子邮件。 我只想创建一个 Java 程序,该程序将向使用 Novel
我刚刚在我的应用程序中实现了 Novell eDirectory。由于我们的应用程序支持 Microsoft ActiveDirectory,因此我想阻止一个额外的配置参数,如“Novell yes/
如何在 J2SE 中使用 Novell eDirectory 服务? JNDI 能与 eDirectory 一起工作吗?我可以使用哪些资源来了解您建议的任何图书馆? 我现在只想尝试通过 LDAP 检索
我需要让用户在 Active Directory 中查询 .Net Core 中的名称。 所以我正在构建一个 Active Directory 搜索 Web API 服务。 我能够连接到 bind 语
我不确定我问的问题是否正确,但有人告诉我 SQL Server 不能在 Novell 服务器上运行。这是真的?如果是,为什么不呢? 最佳答案 您的问题是您的目录服务,无论是 Microsoft 的 A
有问题的问题可以在 http://projecteuler.net/problem=14 找到 我正在尝试我认为新颖的解决方案。至少不是蛮力。我的解决方案基于两个假设: 1) 迭代序列的次数越少,得到
我目前正在尝试使用 C# 在 SSL 中连接到我的 Novell LDAP。起初,我用 authentication = None 尝试了完全相同的操作,并且效果很好。 我的域名是这种形式:LDAP:
我是 LDAP 开发的新手,所以请原谅我对这个主题的无知。我在一个项目中,我需要使用 .NET 在 Novell eDirectory 中管理组和组成员身份。我发现了几个在 Active Direct
我想从 LDAP 的控件 oid 中获取值:例如,当我使用 Linux ldapsearch 时: ldapsearch -H ldap://host:port -x -wsecret -D "cn=
对于任何可以提供帮助的人 - 我的代码在 Asp/Net Core 2.0 中运行良好,可以使用 Novell.Directory.Ldap.NETStandard (2.3.8) 添加条目到 LDA
这是我第一次使用 LDAP 和 Active Directory。我必须使用 .NetCore 创建一个 Web api,该 API 必须使用 ActiveDirectory (WindowsServ
这样导入的证书: certmgr /add /v /c /ctl "selfsignedroot.cer" /s /r localMachine root certmgr /add /v /c /ct
我按照所有说明进行操作,并成功完成安装。在 MonoDevelop 中,我去:New Solution -> C# -> Mono for Android -> Mono for Android Ap
我是一名优秀的程序员,十分优秀!