1IDMAP_LDAP(8) System Administration tools IDMAP_LDAP(8)
2
3
4
6 idmap_ldap - Samba's idmap_ldap Backend for Winbind
7
9 The idmap_ldap plugin provides a means for Winbind to store and
10 retrieve SID/uid/gid mapping tables in an LDAP directory service.
11
12 In contrast to read only backends like idmap_rid, it is an allocating
13 backend: This means that it needs to allocate new user and group IDs in
14 order to create new mappings.
15
17 ldap_base_dn = DN
18 Defines the directory base suffix to use for SID/uid/gid mapping
19 entries. If not defined, idmap_ldap will default to using the "ldap
20 idmap suffix" option from smb.conf.
21
22 ldap_user_dn = DN
23 Defines the user DN to be used for authentication. The secret for
24 authenticating this user should be stored with net idmap secret
25 (see net(8)). If absent, the ldap credentials from the ldap passdb
26 configuration are used, and if these are also absent, an anonymous
27 bind will be performed as last fallback.
28
29 ldap_url = ldap://server/
30 Specifies the LDAP server to use for SID/uid/gid map entries. If
31 not defined, idmap_ldap will assume that ldap://localhost/ should
32 be used.
33
34 range = low - high
35 Defines the available matching uid and gid range for which the
36 backend is authoritative.
37
39 The following example shows how an ldap directory is used as the
40 default idmap backend. It also configures the idmap range and base
41 directory suffix. The secret for the ldap_user_dn has to be set with
42 "net idmap secret '*' password".
43
44 [global]
45 idmap config * : backend = ldap
46 idmap config * : range = 1000000-1999999
47 idmap config * : ldap_url = ldap://localhost/
48 idmap config * : ldap_base_dn = ou=idmap,dc=example,dc=com
49 idmap config * : ldap_user_dn = cn=idmap_admin,dc=example,dc=com
50
51
52 This example shows how ldap can be used as a readonly backend while tdb
53 is the default backend used to store the mappings. It adds an explicit
54 configuration for some domain DOM1, that uses the ldap idmap backend.
55 Note that a range disjoint from the default range is used.
56
57 [global]
58 # "backend = tdb" is redundant here since it is the default
59 idmap config * : backend = tdb
60 idmap config * : range = 1000000-1999999
61
62 idmap config DOM1 : backend = ldap
63 idmap config DOM1 : range = 2000000-2999999
64 idmap config DOM1 : read only = yes
65 idmap config DOM1 : ldap_url = ldap://server/
66 idmap config DOM1 : ldap_base_dn = ou=idmap,dc=dom1,dc=example,dc=com
67 idmap config DOM1 : ldap_user_dn = cn=idmap_admin,dc=dom1,dc=example,dc=com
68
69
71 In order to use authentication against ldap servers you may need to
72 provide a DN and a password. To avoid exposing the password in plain
73 text in the configuration file we store it into a security store. The
74 "net idmap " command is used to store a secret for the DN specified in
75 a specific idmap domain.
76
78 The original Samba software and related utilities were created by
79 Andrew Tridgell. Samba is now developed by the Samba Team as an Open
80 Source project similar to the way the Linux kernel is developed.
81
82
83
84Samba 3.6 04/11/2016 IDMAP_LDAP(8)