Skip to content

Commit 19d6e4d

Browse files
committed
📝 More documentation
1 parent 2a93bb1 commit 19d6e4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ The following options are available for configuring the OmniAuth LDAP strategy:
204204
- `adaptor.last_password_policy_response` — the matching password policy response control (implementation-specific object). This can indicate conditions such as password expired, account locked, reset required, or grace logins remaining (per the draft RFC).
205205
- `:connect_timeout` - Maximum time in seconds to wait when establishing the TCP connection to the LDAP server. Forwarded to `Net::LDAP`.
206206
- `:read_timeout` - Maximum time in seconds to wait for reads during LDAP operations (search/bind). Forwarded to `Net::LDAP`.
207-
- `:mapping` - allows you to customize mapping of LDAP attributes to the returned user info hash. The default mappings are defined in [ldap.rb](lib/omniauth/strategies/ldap.rb#L7), it will be merged with yours.
207+
- `:mapping` - Customize how LDAP attributes map to the returned `auth.info` hash. A sensible default mapping is built into the strategy and will be merged with your overrides. See `lib/omniauth/strategies/ldap.rb` for the default keys and behavior; values can be a String (single attribute), an Array (first present attribute wins), or a Hash (string pattern with placeholders like `%0` combined from multiple attributes).
208208

209209
Example enabling password policy:
210210

@@ -726,7 +726,7 @@ Please consider sponsoring me or the project.
726726

727727
To join the community or get help 👇️ Join the Discord.
728728

729-
[![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite]
729+
[![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord]
730730

731731
To say "thanks!" ☝️ Join the Discord or 👇️ send money.
732732

0 commit comments

Comments
 (0)