1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE refentry PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc">
3 <refentry id="idmap_ldap.8">
6 <refentrytitle>idmap_ldap</refentrytitle>
7 <manvolnum>8</manvolnum>
12 <refname>idmap_ldap</refname>
13 <refpurpose>Samba's idmap_ldap Backend for Winbind</refpurpose>
17 <title>DESCRIPTION</title>
19 <para>The idmap_ldap plugin provides a means for Winbind to
20 store and retrieve SID/uid/gid mapping tables in an LDAP directory
21 service. The module implements both the "idmap" and
22 "idmap alloc" APIs.
27 <title>IDMAP OPTIONS</title>
31 <term>ldap_base_dn = DN</term>
33 Defines the directory base suffix to use when searching for
34 SID/uid/gid mapping entries. If not defined, idmap_ldap will default
35 to using the "ldap idmap suffix" option from smb.conf.
40 <term>ldap_user_dn = DN</term>
42 Defines the user DN to be used for authentication. If absent an
43 anonymous bind will be performed.
48 <term>ldap_url = ldap://server/</term>
50 Specifies the LDAP server to use when searching for existing
51 SID/uid/gid map entries. If not defined, idmap_ldap will
52 assume that ldap://localhost/ should be used.
57 <term>range = low - high</term>
59 Defines the available matching uid and gid range for which the
60 backend is authoritative. Note that the range commonly matches
61 the allocation range due to the fact that the same backend will
62 store and retrieve SID/uid/gid mapping entries. If the parameter
63 is absent, Winbind fail over to use the "idmap uid" and
64 "idmap gid" options from smb.conf.
71 <title>IDMAP ALLOC OPTIONS</title>
75 <term>ldap_base_dn = DN</term>
77 Defines the directory base suffix under which new SID/uid/gid mapping
78 entries should be stored. If not defined, idmap_ldap will default
79 to using the "ldap idmap suffix" option from smb.conf.
84 <term>ldap_user_dn = DN</term>
86 Defines the user DN to be used for authentication. If absent an
87 anonymous bind will be performed.
92 <term>ldap_url = ldap://server/</term>
94 Specifies the LDAP server to which modify/add/delete requests should
95 be sent. If not defined, idmap_ldap will assume that ldap://localhost/
101 <term>range = low - high</term>
103 Defines the available matching uid and gid range from which
104 winbindd can allocate for users and groups. If the parameter
105 is absent, Winbind fail over to use the "idmap uid"
106 and "idmap gid" options from smb.conf.
113 <title>EXAMPLES</title>
116 The follow sets of a LDAP configuration which uses a slave server
117 running on localhost for fast fetching SID/gid/uid mappings, it
118 implies correct configuration of referrals.
119 The idmap alloc backend is pointed directly to the master to skip
120 the referral (and consequent reconnection to the master) that the
121 slave would return as allocation requires writing on the master.
126 idmap domains = ALLDOMAINS
127 idmap config ALLDOMAINS:default = yes
128 idmap config ALLDOMAINS:backend = ldap
129 idmap config ALLDOMAINS:ldap_base_dn = ou=idmap,dc=example,dc=com
130 idmap config ALLDOMAINS:ldap_url = ldap://localhost/
131 idmap config ALLDOMAINS:range = 10000 - 50000
133 idmap alloc backend = ldap
134 idmap alloc config:ldap_base_dn = ou=idmap,dc=example,dc=com
135 idmap alloc config:ldap_url = ldap://master.example.com/
136 idmap alloc config:range = 10000 - 50000
143 <para>In order to use authentication against ldap servers you may
144 need to provide a DN and a password. To avoid exposing the password
145 in plain text in the configuration file we store it into a security
146 store. The "net idmap " command is used to store a secret
147 for the DN specified in a specific idmap domain.
152 <title>AUTHOR</title>
155 The original Samba software and related utilities
156 were created by Andrew Tridgell. Samba is now developed
157 by the Samba Team as an Open Source project similar
158 to the way the Linux kernel is developed.