Skip to content

Commit 9eb9472

Browse files
committed
docs(controller_settings): Documentation to use the LDAP Auth
1 parent e32d008 commit 9eb9472

2 files changed

Lines changed: 49 additions & 1 deletion

File tree

docs/customizing_deis/controller_settings.rst

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,51 @@ server
105105

106106
Changes to ``/deis/controller/unitHostname`` requires either pushing a new build to
107107
every application or scaling them down and up.
108-
The change is only detected when a container unit is deployed.
108+
The change is only detected when a container unit is deployed.
109+
110+
Using a LDAP Auth
111+
-----------------
112+
Deis Controller supports Single Sign On access control, for now Deis is able to authenticate using LDAP or Active Directory.
113+
114+
Settings used by LDAP
115+
^^^^^^^^^^^^^^^^^^^^^
116+
========================================= =================================================================================
117+
setting description
118+
========================================= =================================================================================
119+
/deis/controller/auth/ldap/endpoint The full LDAP endpoint. (Ex.: ldap://ldap.company.com)
120+
/deis/controller/auth/ldap/bind/dn Full user for bind. (Ex.: user@company.com. For Anonymous bind leave blank)
121+
/deis/controller/auth/ldap/bind/password Password of the user for bind. (For anonymous bind leave blank)
122+
/deis/controller/auth/ldap/user/basedn The BASE DN where your LDAP Users are placed. (Ex.: OU=TeamX,DC=Company,DC=com)
123+
/deis/controller/auth/ldap/user/filter The field that we will match with username of Deis. (In most cases is uuid, AD uses sAMAccountName)
124+
/deis/controller/auth/ldap/group/basedn The BASE DN where the groups of your LDAP are are located. (Ex.: OU=Groups,OU=TeamX,DC=Company,DC=com)
125+
/deis/controller/auth/ldap/group/filter The field that we will locate your groups with LDAPSearch. (In most cases is objectClass)
126+
/deis/controller/auth/ldap/group/type The Groups type of LDAP. (Use groupOfNames if you don't know)
127+
========================================= =================================================================================
128+
129+
Configuring LDAP on Controller
130+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
131+
132+
.. important::
133+
134+
It's important that you register the first user of the default auth in order to have an admin ( see :ref:`Register a User <register-user>` ) without this you don't have any deis admin because LDAP users haven't this permission, you will need to set this later.
135+
After this you need to disable the registration ( see :ref:`disable_user_registration` ) avoiding that "ghost" users register and access your Deis. The auth model of controller by default allows multiple source auths so LDAP and non-LDAP users will be able to login.
136+
137+
138+
.. code-block:: console
139+
140+
$ deisctl config controller set auth/ldap/endpoint=<ldap-endpoint>
141+
$ deisctl config controller set auth/ldap/bind/dn=<bind-dn-full-user>
142+
$ deisctl config controller set auth/ldap/bind/password=<bind-dn-user-password>
143+
$ deisctl config controller set auth/ldap/user/basedn=<user-base-dn>
144+
$ deisctl config controller set auth/ldap/user/filter=<user-filter>
145+
$ deisctl config controller set auth/ldap/group/basedn=<group-base-dn>
146+
$ deisctl config controller set auth/ldap/group/filter=<group-filter>
147+
$ deisctl config controller set auth/ldap/group/type=<group-type>
148+
149+
.. note::
150+
151+
You can set a LDAP user as admin by using ``deis perms:create <LDAP User> --admin`` with the admin created before.
152+
153+
.. note::
154+
155+
LDAP support was contributed by community member Pedro Spagiari (`@phspagiari <http://github.com/phspagiari/>`_) and is unsupported by the Deis core team.

docs/using_deis/register-user.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
:title: Register a new Deis user using the client
22
:description: First steps for developers using Deis to deploy and scale applications.
33

4+
.. _register-user:
45

56
Register a User
67
===============

0 commit comments

Comments
 (0)