Pavel Cizinsky | af0e8c3 | 2018-12-12 12:02:52 +0100 | [diff] [blame] | 1 | ===== |
OlgaGusarenko | bb5f324 | 2018-07-31 00:51:44 +0300 | [diff] [blame] | 2 | Usage |
Pavel Cizinsky | af0e8c3 | 2018-12-12 12:02:52 +0100 | [diff] [blame] | 3 | ===== |
Filip Pytloun | c26dc36 | 2017-03-27 23:03:58 +0200 | [diff] [blame] | 4 | |
| 5 | Sample pillars |
| 6 | ============== |
| 7 | |
| 8 | Client |
| 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 | |
| 56 | Read more |
| 57 | ========= |
| 58 | |
| 59 | - https://docs.saltstack.com/en/latest/ref/states/all/salt.states.ldap.html#manage-entries-in-an-ldap-database |