1 <samba:parameter name="ldapsam:editposix"
4 xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
8 Editposix is an option that leverages ldapsam:trusted to make it simpler to manage a domain controller
9 eliminating the need to set up custom scripts to add and manage the posix users and groups. This option
10 will instead directly manipulate the ldap tree to create, remove and modify user and group entries.
11 This option also requires a running winbindd as it is used to allocate new uids/gids on user/group
12 creation. The allocation range must be therefore configured.
16 To use this option, a basic ldap tree must be provided and the ldap suffix parameters must be properly
17 configured. On virgin servers the default users and groups (Administrator, Guest, Domain Users,
18 Domain Admins, Domain Guests) can be precreated with the command <command moreinfo="none">net sam
19 provision</command>. To run this command the ldap server must be running, Winbindd must be running and
20 the smb.conf ldap options must be properly configured.
22 The typical ldap setup used with the <smbconfoption name="ldapsam:trusted">yes</smbconfoption> option
23 is usually sufficient to use <smbconfoption name="ldapsam:editposix">yes</smbconfoption> as well.
27 An example configuration can be the following:
30 encrypt passwords = true
31 passdb backend = ldapsam
36 ldap admin dn = cn=admin,dc=samba,dc=org
38 ldap group suffix = ou=groups
39 ldap idmap suffix = ou=idmap
40 ldap machine suffix = ou=computers
41 ldap user suffix = ou=users
42 ldap suffix = dc=samba,dc=org
44 idmap backend = ldap:"ldap://localhost"
46 idmap uid = 5000-50000
47 idmap gid = 5000-50000
50 This configuration assumes a directory layout like described in the following ldif:
56 objectClass: organization
60 dn: cn=admin,dc=samba,dc=org
61 objectClass: simpleSecurityObject
62 objectClass: organizationalRole
64 description: LDAP administrator
67 dn: ou=users,dc=samba,dc=org
69 objectClass: organizationalUnit
72 dn: ou=groups,dc=samba,dc=org
74 objectClass: organizationalUnit
77 dn: ou=idmap,dc=samba,dc=org
79 objectClass: organizationalUnit
82 dn: ou=computers,dc=samba,dc=org
84 objectClass: organizationalUnit
90 <value type="default">no</value>