configuration-templates – Diff between revs 95 and 97
?pathlinks?
Rev 95 | Rev 97 | |||
---|---|---|---|---|
Line 8... | Line 8... | |||
8 | ## Ideal for: ## |
8 | ## Ideal for: ## |
|
9 | ## * Virtual machine file sharing ## |
9 | ## * Virtual machine file sharing ## |
|
10 | ## ## |
10 | ## ## |
|
11 | ## Requirements: ## |
11 | ## Requirements: ## |
|
12 | ## * Samba 4.x ## |
12 | ## * Samba 4.x ## |
|
- | 13 | ## * smbldap-tools ## |
||
13 | ## ## |
14 | ## ## |
|
14 | ## File placement layout: ## |
15 | ## File placement layout: ## |
|
15 | ## / ## |
16 | ## / ## |
|
16 | ## `-- etc ## |
17 | ## `-- etc ## |
|
17 | ## `-- samba ## |
18 | ## `-- samba ## |
|
Line 29... | Line 30... | |||
29 | |
30 | |
|
30 | [global] |
31 | [global] |
|
31 | # Configuration for LDAP authentication backend. |
32 | # Configuration for LDAP authentication backend. |
|
32 | # The setup assumes that all samba entries are children of the "samba" |
33 | # The setup assumes that all samba entries are children of the "samba" |
|
- | 34 | # organizational unit. |
||
33 | # organizational unit. |
35 | server role = classic primary domain controller |
|
34 | passdb backend = ldapsam:ldap://example.com |
36 | passdb backend = ldapsam:ldap://example.com |
|
35 | ldap suffix = ou=samba,dc=example,dc=com |
37 | ldap suffix = ou=samba,dc=example,dc=com |
|
36 | ldap admin dn = cn=admin,dc=example,dc=com |
38 | ldap admin dn = cn=admin,dc=example,dc=com |
|
37 | ldap ssl = off |
39 | ldap ssl = off |
|
38 | ldap user suffix = ou=People |
40 | ldap user suffix = ou=People |
|
39 | ldap group suffix = ou=Groups |
41 | ldap group suffix = ou=Groups |
|
40 | ldap machine suffix = ou=Computers |
42 | ldap machine suffix = ou=Computers |
|
41 | ldap idmap suffix = ou=Idmap |
- | ||
42 | ldap password sync = yes |
43 | ldap idmap suffix = ou=Idmap |
|
- | 44 | ldap password sync = yes |
||
- | 45 | # Scripts - requires smbldap-tools to be installed. |
||
- | 46 | add user script = /usr/sbin/smbldap-useradd -m '%u' -t 1 |
||
- | 47 | rename user script = /usr/sbin/smbldap-usermod -r '%unew' '%uold' |
||
- | 48 | delete user script = /usr/sbin/smbldap-userdel '%u' |
||
- | 49 | set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%u' |
||
- | 50 | add group script = /usr/sbin/smbldap-groupadd -p '%g' |
||
- | 51 | delete group script = /usr/sbin/smbldap-groupdel '%g' |
||
- | 52 | add user to group script = /usr/sbin/smbldap-groupmod -m '%u' '%g' |
||
- | 53 | delete user from group script = /usr/sbin/smbldap-groupmod -x '%u' '%g' |
||
- | 54 | add machine script = /usr/sbin/smbldap-useradd -w '%u' -t 1 |