LDAP过滤器用于搜索学生 [英] LDAP filter for searching students

查看:121
本文介绍了LDAP过滤器用于搜索学生的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是相当新的LDAP和AD。我想创建一个LDAP过滤器来显示所有的学生在AD。但问题是,学生在不同的BASE DN:

I am fairly new to LDAP and AD. I want to create an LDAP filter to show all the students in the AD. But the problem is that the students are in different BASE DN:


OU=STUDENTS,OU=USERS,OU=SOE,OU=FOAE,OU=UNIVERSITY,DC=sepang
OU=STUDENTS,OU=USERS,OU=SOMLC,OU=FOAE,OU=UNIVERSITY,DC=sepang
OU=STUDENTS,OU=USERS,OU=SOCS,OU=FOS,OU=UNIVERSITY,DC=sepang

即每个学生很喜欢

i.e for each student it is like


CN =khx72b,OU=STUDENTS,OU=USERS,OU=SOCS,OU=FOS,OU=UNIVERSITY,DC=sepang

正如你可以看到来自不同院系的学生都在不同的地方。 鉴于我怎么可以搜索并找到如果给定用户在目录中的用户名?

As you can see students from different faculties are in different places. Given an username how can I search and find if the given user is in the directory?

对象类为所有的学生是用户

很抱歉,如果我错了,在说什么,但我对LDAP的知识是非常小的。

Sorry if I'm wrong in anything said above, but my knowledge about LDAP is very small.

感谢你在前进。

推荐答案

由searchRoot设置为德LDAP路径OU搜索OU中的对象。所有的搜索将被限制在该OU。

Search for objects in an OU by setting "searchRoot" to teh LDAP path to the OU. all searches will then be confined to that OU.

这篇关于LDAP过滤器用于搜索学生的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆