Commit 3cfb54e
authored
Use base search for known DN lookup (#31)
* Use base search for known DN lookup
Performing a 'base' search using the DN as base is the standard way.
Using (distinguishedName=) as a filter is not universal – for example,
OpenLDAP uses entryDN instead.
And while OpenLDAP 2.6.x seems to *recognize* distinguishedName, it
gives a completely different result (applying the match to all
DN-containing attributes rather than to the entry's own DN) – so the
search gives 25 entries, none of which were the correct one.
* Use base search in AttributeAddUsersGroups as well1 parent 9d77cb8 commit 3cfb54e
2 files changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
| 357 | + | |
357 | 358 | | |
358 | 359 | | |
359 | 360 | | |
| |||
369 | 370 | | |
370 | 371 | | |
371 | 372 | | |
372 | | - | |
373 | | - | |
| 373 | + | |
| 374 | + | |
374 | 375 | | |
375 | 376 | | |
376 | 377 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
138 | 140 | | |
139 | 141 | | |
140 | | - | |
| 142 | + | |
141 | 143 | | |
142 | 144 | | |
143 | 145 | | |
| |||
0 commit comments