blob: 734df3558b7e492475370a74ed69251ba671b2e3 [file] [log] [blame]
Pavel Cizinskyaf0e8c32018-12-12 12:02:52 +01001=====
OlgaGusarenkobb5f3242018-07-31 00:51:44 +03002Usage
Pavel Cizinskyaf0e8c32018-12-12 12:02:52 +01003=====
Filip Pytlounc26dc362017-03-27 23:03:58 +02004
5Sample pillars
6==============
7
8Client
9------
10
11.. code-block:: yaml
12
13 openldap:
14 client:
15 server:
16 basedn: dc=example,dc=local
17 host: ldap.example.local
18 tls: true
19 port: 389
20 auth:
21 user: cn=admin,dc=example,dc=local
22 password: dummypass
23 entry:
24 people:
25 type: ou
26 classes:
27 - top
28 - organizationalUnit
29 entry:
30 jdoe:
31 type: cn
32 # Change attributes that already exists with different content
33 action: replace
34 # Delete all other attributes
35 purge: true
36 attr:
37 uid: jdoe
38 uidNumber: 20001
39 gidNumber: 20001
40 gecos: John Doe
41 givenName: John
42 sn: Doe
43 homeDirectory: /home/jdoe
44 loginShell: /bin/bash
45 classes:
46 - posixAccount
47 - inetOrgPerson
48 - top
49 - ldapPublicKey
50 - shadowAccount
51 karel:
52 # Simply remove cn=karel
53 type: cn
54 enabled: false
55
56Read more
57=========
58
59- https://docs.saltstack.com/en/latest/ref/states/all/salt.states.ldap.html#manage-entries-in-an-ldap-database