LDAP: filter multiple UIDs

三世轮回 提交于 2019-12-11 03:54:40

问题


I am trying to set up mediawiki for a team and would like to LDAP authenticate only a set of users. I am aware I could come up with a group LDAP authentication.

But is there a shortcut to filter only a set of uids to authenticate.


回答1:


The LDAP search filter you could use is:

(|(uid=a)(uid=b)(uid=c)(uid=...))

But as noted in the comments, a group is much easier and more maintainable. However if you cannot use a group, consider using an attribute of the users, like description, resulting in this filter:

(description=mediawiki)


来源:https://stackoverflow.com/questions/30486333/ldap-filter-multiple-uids

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!