You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<3> The port of the LDAP server. Defaults to `636` for LDAPS, or `389` for plain LDAP
254
+
<4> The base distinguished name to search. Users outside of this will not be seen
255
+
<5> Configuration for LDAP bind credentials
256
+
<6> The name of the SecretClass that provides the bind credentials. The secret must contain `user` and `password` keys
257
+
<7> LDAP attribute used for the user's unique identifier. Defaults to `entryUUID`
258
+
<8> LDAP attribute used for the username. Defaults to `uid`
259
+
<9> LDAP search base for groups. If not specified, uses the main `searchBase`
260
+
<10> LDAP attribute on group objects that contains member references. Use `member` for `groupOfNames` (default) or `memberUid` for `posixGroup`
261
+
<11> Arbitrary LDAP attributes can be requested to be fetched and returned in the user info response. Use this to map custom LDAP attributes to custom attribute names in the response
262
+
<12> Optional TLS configuration for secure LDAP connections
263
+
<13> The name of the SecretClass that contains the LDAP server's root CA certificate(s)
264
+
265
+
When retrieving user information from OpenLDAP, the user info fetcher first searches for the user by the `userNameAttribute` (defaults to `uid`) or `userIdAttribute` (defaults to `entryUUID`) depending on the request type. When a user is found, it searches for groups containing the user:
266
+
267
+
* If `groupMemberAttribute` is `memberUid`: Searches for groups where `memberUid` equals the username (for `posixGroup`)
268
+
* Otherwise (e.g. if `groupMemberAttribute` is `member`, which is the default): Searches for groups where `member` equals the user's full DN (for `groupOfNames`)
269
+
209
270
== User info fetcher API
210
271
211
272
User information can be retrieved from regorules using the functions `userInfoByUsername(username)` and `userInfoById(id)` in `data.stackable.opa.userinfo.v1`.
@@ -229,7 +290,7 @@ NOTE: The exact formats of `id` and `groups` will vary depending on the xref:#ba
229
290
=== Debug request
230
291
231
292
To debug the user-info-fetcher you can `curl` it's API for a given user.
232
-
To achieve this shell into the `user-info-fetcher` container and execute
293
+
To achieve this shell into the `opa` container and execute
0 commit comments