-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[DOCS] Standardize docs for url setting
#41117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jrodewig
merged 2 commits into
elastic:master
from
jrodewig:document-active-dir-url-as-list
Apr 24, 2019
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -278,10 +278,13 @@ Defaults to `true`. | |
| The `type` setting must be set to `ldap`. In addition to the | ||
| <<ref-realm-settings>>, you can specify the following settings: | ||
|
|
||
| `url`:: Specifies one or more LDAP URLs in the format | ||
| `ldap[s]://<server>:<port>`. Multiple URLs can be defined using a comma | ||
| separated value or array syntax: `[ "ldaps://server1:636", "ldaps://server2:636" ]`. | ||
| `ldaps` and `ldap` URL protocols cannot be mixed in the same realm. Required. | ||
| `url`:: | ||
| One or more LDAP URLs in the `ldap[s]://<server>:<port>` format. Required. | ||
| + | ||
| To provide a single URL, use the `ldap` protocol: `ldap://server1:636`. To | ||
| provide multiple URLs, use the `ldaps` protocol with an array syntax: | ||
| `["ldaps://server1:636", "ldaps://server2:636" ]`. You can't mix the `ldap` and | ||
| `ldaps` URL protocols. | ||
|
|
||
| `load_balance.type`:: | ||
| The behavior to use when there are multiple LDAP URLs defined. For supported | ||
|
|
@@ -547,11 +550,18 @@ The `type` setting must be set to `active_directory`. In addition to the | |
| the following settings: | ||
|
|
||
| `url`:: | ||
| An LDAP URL of the form `ldap[s]://<server>:<port>`. {es} attempts to | ||
| authenticate against this URL. If the URL is not specified, it is derived from | ||
| the `domain_name` setting and assumes an unencrypted connection to port 389. | ||
| Defaults to `ldap://<domain_name>:389`. This setting is required when connecting | ||
| using SSL/TLS or when using a custom port. | ||
| One or more LDAP URLs in the `ldap[s]://<server>:<port>` format. Defaults to | ||
| `ldap://<domain_name>:389`. This setting is required when connecting using | ||
| SSL/TLS or when using a custom port. | ||
| + | ||
| To provide a single URL, use the `ldap` protocol: `ldap://server1:389`. To | ||
| provide multiple URLs, use the `ldaps` protocol with an array syntax: | ||
| `["ldaps://server1:389", "ldaps://server2:389" ]`. You can't mix the `ldap` and | ||
| `ldaps` URL protocols. | ||
|
||
| + | ||
| If no URL is provided, {es} uses a default of `ldap://<domain_name>:389`. This | ||
| default uses the `domain_name` setting value and assumes an unencrypted | ||
| connection to port 389. | ||
|
|
||
| `load_balance.type`:: | ||
| The behavior to use when there are multiple LDAP URLs defined. For supported | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is incorrect, though it's a logical interpretation of the old text (hence the need to update it)
Ignoring, for a moment, what we want the docs to say, the rules are:
ldaporldapsprotocols for a single URL.ldaporldapsprotocols when providing multiple URLs, but you must be consistent across all URLs. That is, they must all beldapor must all beldaps.url: ["ldaps://server1:636", "ldaps://server2:636" ]; orurl: "ldaps://server1:636,ldaps://server2:636"I struggle to find the sweet spot between documenting every possible option, and overwhelming the reader with too much information, vs just documenting a common set of option and have users get confused about why a certain behaviour is not documented.
Which is to say, I'm not sure whether it would be better to document all of the rules that I've written above, or simplify to it.