Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LDAP: filter multiple UIDs

Tags:

ldap

mediawiki

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.

like image 731
deeshank Avatar asked May 02 '26 19:05

deeshank


1 Answers

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)
like image 147
mvreijn Avatar answered May 07 '26 11:05

mvreijn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!