summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSytse Sijbrandij <sytse@gitlab.com>2014-04-04 14:47:14 +0000
committerSytse Sijbrandij <sytse@gitlab.com>2014-04-04 14:47:14 +0000
commit7611ce72b97da690317a1adb2a0bdf17bddb1b8c (patch)
tree3a80fc4b92845f368b9a2a5d62469971897fa89b /doc
parenta6bc4f0c46a0b14fc52b73299cea4c5355eec161 (diff)
parentbb9ec71127965fc92f98a7f0aeacf666424861c8 (diff)
downloadgitlab-ce-7611ce72b97da690317a1adb2a0bdf17bddb1b8c.tar.gz
Merge branch 'doc/ldap' into 'master'
Explain LDAP activation for existing users
Diffstat (limited to 'doc')
-rw-r--r--doc/integration/ldap.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/integration/ldap.md b/doc/integration/ldap.md
new file mode 100644
index 00000000000..b52c4a4b5e4
--- /dev/null
+++ b/doc/integration/ldap.md
@@ -0,0 +1,14 @@
+# GitLab LDAP integration
+
+GitLab can be configured to allow your users to sign with their LDAP credentials to integrate with e.g. Active Directory.
+The first time a user signs in with LDAP credentials, GitLab will create a new GitLab user associated with the LDAP Distinguished Name (DN) of the LDAP user.
+GitLab user attributes such as nickname and email will be copied from the LDAP user entry.
+
+## Enabling LDAP sign-in for existing GitLab users
+
+When a user signs in to GitLab with LDAP for the first time, and their LDAP email address is the primary email address of an existing GitLab user, then the LDAP DN will be associated with the existing user.
+If the LDAP email attribute is not found in GitLab's database, a new user is created.
+
+In other words, if an existing GitLab user wants to enable LDAP sign-in for themselves, they should check that their GitLab email address matches their LDAP email address, and then sign into GitLab via their LDAP credentials.
+GitLab recognizes the following LDAP attributes as email addresses: `mail`, `email` and `userPrincipalName`.
+If multiple LDAP email attributes are present, e.g. `mail: foo@bar.com` and `email: foo@example.com`, then the first attribute found wins -- in this case `foo@bar.com`.