Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ffbdbcee
Commit
ffbdbcee
authored
Jun 25, 2019
by
Blair Lunceford
Committed by
Evan Read
Jun 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add brackets escape example to LDAP doc
parent
db6fbee8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
11 deletions
+24
-11
doc/administration/auth/ldap.md
doc/administration/auth/ldap.md
+24
-11
No files found.
doc/administration/auth/ldap.md
View file @
ffbdbcee
...
@@ -396,21 +396,34 @@ omniauth-ldap.
...
@@ -396,21 +396,34 @@ omniauth-ldap.
### Escaping special characters
### Escaping special characters
If the
`user_filter`
DN contains special characters. For example, a comma
:
The
`user_filter`
DN can contain special characters. For example
:
```
-
A comma:
OU=GitLab, Inc,DC=gitlab,DC=com
```
This character needs to be escaped as documented in
[
RFC 4515
](
https://tools.ietf.org/search/rfc4515
)
.
```
OU=GitLab, Inc,DC=gitlab,DC=com
```
Due to the way the string is parsed, the special character needs to be converted
-
Open and close brackets:
to hex and
`\\5C\\`
(
`5C`
=
`\` in hex) added before it.
As an example the above DN would look like
```
```
OU=GitLab\\5C\\2C Inc,DC=gitlab,DC=com
OU=Gitlab (Inc),DC=gitlab,DC=com
```
```
These characters must be escaped as documented in
[RFC 4515](https://tools.ietf.org/search/rfc4515).
-
Escape commas with
`\2C`
. For example:
```
OU=GitLab\2C Inc,DC=gitlab,DC=com
```
-
Escape open and close brackets with
`\28`
and
`\29`
, respectively. For example:
```
OU=Gitlab \28Inc\29,DC=gitlab,DC=com
```
## Enabling LDAP sign-in for existing GitLab users
## Enabling LDAP sign-in for existing GitLab users
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment