本文介绍了如何让所有用户使用ldap?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用ldap&春天,我有一些问题.我需要用户列表和组列表.我应该使用什么查询?我尝试使用几种过滤器,例如(objectClass = person)(objectClass = *),但是结果不是我期望的.(objectClass = person)未列出所有用户,但列出了其他信息.换句话说,结果是一组属性,其中包括必要的元素和不必要的属性(如果我使用过滤器 objectClass = person ,则过滤器的结果-设置"CN = Users,CN= MyUser"CN = MyUser -是 user ,但是 CN = Users -是 group ).如何列出所有用户名(或uid)和所有组列表?

I trying to use ldap & spring, and I have some questions.I need list of users and list of groups. What the query I should to use?I trying to use several filters, such as (objectClass=person) or (objectClass=*), but results were not what I expected. (objectClass=person) not listed all users , but listed other information. In other words, the result is a set of attributes, which included the necessary elements and unnecessary (if I use filter objectClass=person, result of the filter - set "CN=Users, CN=MyUser" CN=MyUser - is user, but CN=Users - is group).How to list all user names (or uid) and all list of groups?

推荐答案

(&(objectClass = User)(objectCategory = Person)).计算机也是用户,但不是人.

(&(objectClass=User)(objectCategory=Person)) for a User. Computers are Users too, but not people.

这篇关于如何让所有用户使用ldap?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-27 00:49