1
22.1 Legacy Series / LDAP Authentication containers Select query
« on: November 03, 2022, 06:56:17 pm »
Working on getting an LDAP server set up with OPNsense today I was struggling with the Authentication containers. You are supposed to be able to click the "select" button and get a menu that lets you pick containers to import. When I hit select though the search request it is sending to LDAP has the filter of:
"filter":"(|(ou=*)(cn=Users))"
Which gets no results. I can't seem to find a way to modify that filter in the Web Interface. Is there a way to change it? I can manually enter the correct containers but feel like I'm doing something wrong. Not sure why it would be hard-coded with that filter. I'm guessing my LDAP might be a little strange? My OU's are "users" and "groups" so I'd have to have either a group or user named "Users" for that filter to get find a "cn=Users" inside an ou.
"filter":"(|(ou=*)(cn=Users))"
Which gets no results. I can't seem to find a way to modify that filter in the Web Interface. Is there a way to change it? I can manually enter the correct containers but feel like I'm doing something wrong. Not sure why it would be hard-coded with that filter. I'm guessing my LDAP might be a little strange? My OU's are "users" and "groups" so I'd have to have either a group or user named "Users" for that filter to get find a "cn=Users" inside an ou.