使用 java 代码访问 Active Directory 中的组及其用户

发布于 2024-11-29 18:28:19 字数 968 浏览 0 评论 0原文

我正在尝试编写一个java程序来列出该组的组和用户,但我无法做到这一点。请我收到错误。

javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; Remaining name: 'ou=cag.cdroot.net'
    at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3042)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2963)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2770)
    at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1824)
    at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1747)
    at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:380)
    at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:350)
    at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:333)
    at javax.naming.directory.InitialDirContext.search(Unknown Source)
    at GetList.main(GetList.java:53)

如果有人知道这请帮助我。这对我来说非常重要...... 谢谢........

I am trying to write a java program to list the groups and users of that group but I am not able to do that. please I am getting the error..

javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; Remaining name: 'ou=cag.cdroot.net'
    at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3042)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2963)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2770)
    at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1824)
    at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1747)
    at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:380)
    at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:350)
    at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:333)
    at javax.naming.directory.InitialDirContext.search(Unknown Source)
    at GetList.main(GetList.java:53)

Please if anyone know this help me out. It is very important for me.....
thanks........

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文