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
00c8dbf3
Commit
00c8dbf3
authored
Oct 08, 2021
by
Evan Read
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make page compatible with markdownlint-cli 0.29.0
parent
6489ff92
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
doc/administration/auth/ldap/ldap-troubleshooting.md
doc/administration/auth/ldap/ldap-troubleshooting.md
+10
-12
No files found.
doc/administration/auth/ldap/ldap-troubleshooting.md
View file @
00c8dbf3
...
...
@@ -55,9 +55,8 @@ main: # 'main' is the GitLab 'provider ID' of this LDAP server
#### Query LDAP **(PREMIUM SELF)**
The following allows you to perform a search in LDAP using the rails console.
Depending on what you're trying to do, it may make more sense to query
[
a
user
](
#query-a-user-in-ldap
)
or
[
a group
](
#query-a-group-in-ldap
)
directly, or
even
[
use `ldapsearch`
](
#ldapsearch
)
instead.
Depending on what you're trying to do, it may make more sense to query
[
a user
](
#query-a-user-in-ldap
)
or
[
a group
](
#query-a-group-in-ldap
)
directly, or even
[
use `ldapsearch`
](
#ldapsearch
)
instead.
```
ruby
adapter
=
Gitlab
::
Auth
::
Ldap
::
Adapter
.
new
(
'ldapmain'
)
...
...
@@ -355,11 +354,10 @@ things to check to debug the situation.
1.
Select the
**Identities**
tab. There should be an LDAP identity with
an LDAP DN as the 'Identifier'. If not, this user hasn't signed in with
LDAP yet and must do so first.
-
You've waited an hour or
[
the configured
interval
](
index.md#adjust-ldap-group-sync-schedule
)
for the group to
sync. To speed up the process, either go to the GitLab group
**Group information > Members**
and press
**Sync now**
(sync one group) or
[
run the group sync Rake
task
](
../../raketasks/ldap.md#run-a-group-sync
)
(
sync
all groups).
-
You've waited an hour or
[
the configured interval
](
index.md#adjust-ldap-group-sync-schedule
)
for
the group to sync. To speed up the process, either go to the GitLab group
**Group information > Members**
and press
**Sync now**
(sync one group) or
[
run the group sync Rake task
](
../../raketasks/ldap.md#run-a-group-sync
)
(sync all groups).
If all of the above looks good, jump in to a little more advanced debugging in
the rails console.
...
...
@@ -371,8 +369,8 @@ the rails console.
1.
Look through the output of the sync. See
[
example log
output
](
#example-console-output-after-a-group-sync
)
for how to read the output.
1.
If you still aren't able to see why the user isn't being added,
[
query the
LDAP group directly
](
#query-a-group-in-ldap
)
to see what members are listed.
1.
If you still aren't able to see why the user isn't being added,
[
query the
LDAP group directly
](
#query-a-group-in-ldap
)
to see what members are listed.
1.
Is the user's DN or UID in one of the lists from the above output? One of the DNs or
UIDs here should match the 'Identifier' from the LDAP identity checked earlier. If it doesn't,
the user does not appear to be in the LDAP group.
...
...
@@ -398,8 +396,8 @@ GitLab syncs the `admin_group`.
#### Sync all groups
NOTE:
To sync all groups manually when debugging is unnecessary,
[
use the Rake
task
](
../../raketasks/ldap.md#run-a-group-sync
)
instead.
To sync all groups manually when debugging is unnecessary,
[
use the Rake
task
](
../../raketasks/ldap.md#run-a-group-sync
)
instead.
The output from a manual
[
group sync
](
index.md#group-sync
)
can show you what happens
when GitLab syncs its LDAP group memberships against LDAP.
...
...
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