This repository was archived by the owner on Nov 1, 2017. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork1.1k
Sync changes from upstream repository#697
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
1 change: 1 addition & 0 deletionsRules
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
21 changes: 7 additions & 14 deletionscontent/v3/enterprise.md
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
88 changes: 88 additions & 0 deletionscontent/v3/enterprise/ldap.md
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 |
|---|---|---|
| @@ -0,0 +1,88 @@ | ||
| --- | ||
| title: LDAP | ||
| --- | ||
| # LDAP | ||
| * TOC | ||
| {:toc} | ||
| You can use the LDAP API to update account relationships between a GitHub Enterprise user and its linked LDAP entry or queue a new synchronization. | ||
| With the LDAP mapping endpoints, you're able to update the Distinguished Name (DN) that a user maps to. Note that the LDAP sync endpoints are only effective if your GitHub Enterprise appliance has [LDAP Sync enabled](https://help.github.com/enterprise/2.1/admin/guides/user-management/using-ldap). | ||
| ## Update LDAP mapping for a user | ||
| PATCH /admin/ldap/user/:username/mapping | ||
| ### Body parameters | ||
| Pass a JSON payload with the new LDAP Distinguished Name. | ||
| #### Example | ||
| #!javascript | ||
| { | ||
| "uid": "asdf", | ||
| "ou": "users", | ||
| "dc": "github", | ||
| "dc": "com" | ||
| } | ||
| ### Response | ||
| <%= headers 200 %> | ||
| <%= json :ldap_user_update %> | ||
| ## Sync LDAP mapping for a user | ||
| {{#tip}} | ||
| Note that this API call does not automatically initiate an LDAP sync. Rather, if a `201` is returned, the sync job is queued successfully, and is performed when the instance is ready. | ||
| {{/tip}} | ||
| POST /admin/ldap/user/:username/sync | ||
| ### Response | ||
| <%= headers 201 %> | ||
| <%= json :ldap_sync_confirm %> | ||
| ## Update LDAP mapping for a team | ||
| PATCH /admin/ldap/teams/:team_id/mapping | ||
| ### Body parameters | ||
| Pass a JSON payload with the new LDAP Distinguished Name. | ||
| #### Example | ||
| #!javascript | ||
| { | ||
| "cn": "Enterprise Ops", | ||
| "ou": "teams", | ||
| "dc": "github", | ||
| "dc": "co" | ||
| } | ||
| ### Response | ||
| <%= headers 200 %> | ||
| <%= json :ldap_team_update %> | ||
| ## Sync LDAP mapping for a team | ||
| {{#tip}} | ||
| Note that this API call does not automatically initiate an LDAP sync. Rather, if a `201` is returned, the sync job is queued successfully, and is performed when the instance is ready. | ||
| {{/tip}} | ||
| POST /admin/ldap/user/:teamname/sync | ||
| ### Response | ||
| <%= headers 201 %> | ||
| <%= json :ldap_sync_confirm %> |
12 changes: 12 additions & 0 deletionscontent/v3/users/administration.md
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
20 changes: 20 additions & 0 deletionscontent/v3/users/emails.md
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
20 changes: 20 additions & 0 deletionscontent/v3/users/keys.md
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
3 changes: 2 additions & 1 deletionlayouts/sidebar.html
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
19 changes: 19 additions & 0 deletionslib/enterprise-purge.rb
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 |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| class EnterprisePurgeFilter < Nanoc::Filter | ||
| identifier :enterprise_purge_filter | ||
| type :text | ||
| ENTERPRISE_START_STRING = '{{#enterprise-only}}' | ||
| ENTERPRISE_END_STRING = '{{/enterprise-only}}' | ||
| # if we're running in Dotcom mode, we'll be lazy and just hide the content. | ||
| # otherwise, when running script/enterprise-cutter, we'll bring these sections back | ||
| def run(content, params={}) | ||
| start_replacement = '<div class="enterprise-only">' | ||
| end_replacement = '</div>' | ||
| content = content.gsub(%r{<p>#{ENTERPRISE_START_STRING}</p>}, start_replacement) | ||
| content = content.gsub(%r{<p>#{ENTERPRISE_END_STRING}</p>}, end_replacement) | ||
| content | ||
| end | ||
| end |
14 changes: 14 additions & 0 deletionslib/resources.rb
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
35 changes: 35 additions & 0 deletionsscript/enterprise-backport
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 |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| #!/usr/bin/env ruby | ||
| # Occasionally, a change made to the latest version of the Enterprise API documentation | ||
| # will need to be backported to the previous verison. This script takes the latest content | ||
| # for /enterprise and moves it into the appropriate version folder. | ||
| Dir.glob('tasks/*.rake').each { |r| load r } | ||
| if ARGV.length != 1 | ||
| error = '''Error: Run the script like this: bundle exec script/enterprise-backport [VERSION] | ||
| e.g. bundle exec script/enterprise-cutter 2.0 | ||
| ''' | ||
| abort error | ||
| end | ||
| version = ARGV[0].dup # like, 11.10.340 | ||
| BRANCH_NAME = "backport-docs-for-#{version}" | ||
| setup | ||
| temp_dir = Dir.mktmpdir | ||
| begin | ||
| %x(git checkout `git rev-list -n 1 --before="#{date}" gh-pages`) | ||
| `cp -r v3/enterprise #{temp_dir}` | ||
| `git checkout #{BRANCH_NAME}` | ||
| `cp -r #{temp_dir}/* enterprise/#{version}` | ||
| rewrite_content("enterprise/#{version}") | ||
| `git add enterprise` | ||
| `git commit -m "Added enterprise-#{version} backported files"` | ||
| ensure | ||
| FileUtils.remove_entry_secure temp_dir | ||
| end |
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
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.