使用 java 代码访问 Active Directory 中的组及其用户
我正在尝试编写一个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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论