Skip to content

Commit 46f75e3

Browse files
mkutouskitinova
authored andcommitted
M #-: Enable LDAP users auto-creation (#3327)
Signed-off-by: Mikalai Kutouski <[email protected]> (cherry picked from commit d7e6a3a)
1 parent 9c7d9db commit 46f75e3

File tree

1 file changed

+18
-1
lines changed
  • source/installation_and_configuration/authentication

1 file changed

+18
-1
lines changed

source/installation_and_configuration/authentication/ldap.rst

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,23 @@ This authentication mechanism is enabled by default. If it doesn't work, make su
2323
AUTHN = "ssh,x509,ldap,server_cipher,server_x509"
2424
]
2525
26+
If you want to enable LDAP users auto-creation in the OpenNebula then you need to add ``default`` method in the ``AUTHN`` attribute of the ``AUTH_MAD`` section as shown below:
27+
28+
.. code-block:: bash
29+
30+
AUTH_MAD = [
31+
EXECUTABLE = "one_auth_mad",
32+
AUTHN = "default,ssh,x509,ldap,server_cipher,server_x509"
33+
]
34+
35+
and create a symlink as `root` user on the OpenNebula front-end node:
36+
37+
.. code-block:: bash
38+
39+
ln -s /var/lib/one/remotes/auth/ldap /var/lib/one/remotes/auth/default
40+
41+
42+
2643
Authentication driver ``ldap`` can be customized in ``/etc/one/auth/ldap_auth.conf``. This is the default configuration:
2744

2845
.. code-block:: yaml
@@ -188,7 +205,7 @@ To enable ``ldap`` authentication the described parameters should be configured.
188205
User Management
189206
===============
190207

191-
Using the LDAP authentication module, the administrator doesn't need to create users with the ``oneuser`` command, as this will be done automatically.
208+
Enabling LDAP users auto-creation in the OpenNebula as described above eliminates the need for the administrator to create users with the ``oneuser`` command manually.
192209

193210
Users can store their credentials into a file referenced by environment variable ``$ONE_AUTH`` (usually ``$HOME/.one/one_auth``) in this fashion:
194211

0 commit comments

Comments
 (0)