]> pere.pagekite.me Git - homepage.git/blob - blog/index.rss
Ny oppføring.
[homepage.git] / blog / index.rss
1 <?xml version="1.0" encoding="utf-8"?>
2 <rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/' xmlns:atom="http://www.w3.org/2005/Atom">
3 <channel>
4 <title>Petter Reinholdtsen</title>
5 <description></description>
6 <link>http://people.skolelinux.org/pere/blog/</link>
7 <atom:link href="http://people.skolelinux.org/pere/blog/index.rss" rel="self" type="application/rss+xml" />
8
9 <item>
10 <title>OpenStreetmap one step closer to having routing on its front page</title>
11 <link>http://people.skolelinux.org/pere/blog/OpenStreetmap_one_step_closer_to_having_routing_on_its_front_page.html</link>
12 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/OpenStreetmap_one_step_closer_to_having_routing_on_its_front_page.html</guid>
13 <pubDate>Sun, 18 Jul 2010 16:45:00 +0200</pubDate>
14 <description>
15 &lt;p&gt;Thanks to
16 &lt;a href=&quot;http://feedproxy.google.com/~r/Opengeodata/~3/wUTCzDZk3lc/project-of-the-week-which-way-home&quot;&gt;todays
17 opengeodata blog entry&lt;/a&gt;, I just discovered that the
18 OpenStreetmap.org site have gotten
19 &lt;a href=&quot;http://nroets.dev.openstreetmap.org/demo/index.html?layers=B000FTFTT&quot;&gt;support
20 for calculating routes&lt;/a&gt;. The support is still experimental and
21 only available from the development server, until more experience is
22 gathered on the user interface and any scalability issues.&lt;/p&gt;
23
24 &lt;p&gt;Earlier, the routing I knew about using the OpenStreetmap.org data
25 was provided by &lt;a href=&quot;http://maps.cloudmade.com/&quot;&gt;Cloudmade&lt;/a&gt;,
26 but having it on the main page is required to make everyone aware of
27 the issue. I&#39;ve had people reject Openstreetmap.org as a viable
28 alternative for them because the front page lacked routing support,
29 and I hope their needs will be catered for when routing show up on the
30 www.openstreetmap.org front page.&lt;/p&gt;
31 </description>
32 </item>
33
34 <item>
35 <title>What are they searching for - PowerDNS and ISC DHCP in LDAP</title>
36 <link>http://people.skolelinux.org/pere/blog/What_are_they_searching_for___PowerDNS_and_ISC_DHCP_in_LDAP.html</link>
37 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/What_are_they_searching_for___PowerDNS_and_ISC_DHCP_in_LDAP.html</guid>
38 <pubDate>Sat, 17 Jul 2010 21:00:00 +0200</pubDate>
39 <description>
40 &lt;p&gt;This is a
41 &lt;a href=&quot;http://people.skolelinux.org/pere/blog/Time_for_new__LDAP_schemas_replacing_RFC_2307_.html&quot;&gt;followup&lt;/a&gt;
42 on my
43 &lt;a href=&quot;http://people.skolelinux.org/pere/blog/Idea_for_a_change_to_LDAP_schemas_allowing_DNS_and_DHCP_info_to_be_combined_into_one_object.html&quot;&gt;previous
44 work&lt;/a&gt; on
45 &lt;a href=&quot;http://people.skolelinux.org/pere/blog/Combining_PowerDNS_and_ISC_DHCP_LDAP_objects.html&quot;&gt;merging
46 all&lt;/a&gt; the computer related LDAP objects in Debian Edu.&lt;/p&gt;
47
48 &lt;p&gt;As a step to try to see if it possible to merge the DNS and DHCP
49 LDAP objects, I have had a look at how the packages pdns-backend-ldap
50 and dhcp3-server-ldap in Debian use the LDAP server. The two
51 implementations are quite different in how they use LDAP.&lt;/p&gt;
52
53 To get this information, I started slapd with debugging enabled and
54 dumped the debug output to a file to get the LDAP searches performed
55 on a Debian Edu main-server. Here is a summary.
56
57 &lt;p&gt;&lt;strong&gt;powerdns&lt;/strong&gt;&lt;/p&gt;
58
59 &lt;a href=&quot;http://www.linuxnetworks.de/doc/index.php/PowerDNS_LDAP_Backend&quot;&gt;Clues
60 on how to&lt;/a&gt; set up PowerDNS to use a LDAP backend is available on
61 the web.
62
63 &lt;p&gt;PowerDNS have two modes of operation using LDAP as its backend.
64 One &quot;strict&quot; mode where the forward and reverse DNS lookups are done
65 using the same LDAP objects, and a &quot;tree&quot; mode where the forward and
66 reverse entries are in two different subtrees in LDAP with a structure
67 based on the DNS names, as in tjener.intern and
68 2.2.0.10.in-addr.arpa.&lt;/p&gt;
69
70 &lt;p&gt;In tree mode, the server is set up to use a LDAP subtree as its
71 base, and uses a &quot;base&quot; scoped search for the DNS name by adding
72 &quot;dc=tjener,dc=intern,&quot; to the base with a filter for
73 &quot;(associateddomain=tjener.intern)&quot; for the forward entry and
74 &quot;dc=2,dc=2,dc=0,dc=10,dc=in-addr,dc=arpa,&quot; with a filter for
75 &quot;(associateddomain=2.2.0.10.in-addr.arpa)&quot; for the reverse entry. For
76 forward entries, it is looking for attributes named dnsttl, arecord,
77 nsrecord, cnamerecord, soarecord, ptrrecord, hinforecord, mxrecord,
78 txtrecord, rprecord, afsdbrecord, keyrecord, aaaarecord, locrecord,
79 srvrecord, naptrrecord, kxrecord, certrecord, dsrecord, sshfprecord,
80 ipseckeyrecord, rrsigrecord, nsecrecord, dnskeyrecord, dhcidrecord,
81 spfrecord and modifytimestamp. For reverse entries it is looking for
82 the attributes dnsttl, arecord, nsrecord, cnamerecord, soarecord,
83 ptrrecord, hinforecord, mxrecord, txtrecord, rprecord, aaaarecord,
84 locrecord, srvrecord, naptrrecord and modifytimestamp. The equivalent
85 ldapsearch commands could look like this:&lt;/p&gt;
86
87 &lt;blockquote&gt;&lt;pre&gt;
88 ldapsearch -h ldap \
89 -b dc=tjener,dc=intern,ou=hosts,dc=skole,dc=skolelinux,dc=no \
90 -s base -x &#39;(associateddomain=tjener.intern)&#39; dNSTTL aRecord nSRecord \
91 cNAMERecord sOARecord pTRRecord hInfoRecord mXRecord tXTRecord \
92 rPRecord aFSDBRecord KeyRecord aAAARecord lOCRecord sRVRecord \
93 nAPTRRecord kXRecord certRecord dSRecord sSHFPRecord iPSecKeyRecord \
94 rRSIGRecord nSECRecord dNSKeyRecord dHCIDRecord sPFRecord modifyTimestamp
95
96 ldapsearch -h ldap \
97 -b dc=2,dc=2,dc=0,dc=10,dc=in-addr,dc=arpa,ou=hosts,dc=skole,dc=skolelinux,dc=no \
98 -s base -x &#39;(associateddomain=2.2.0.10.in-addr.arpa)&#39;
99 dnsttl, arecord, nsrecord, cnamerecord soarecord ptrrecord \
100 hinforecord mxrecord txtrecord rprecord aaaarecord locrecord \
101 srvrecord naptrrecord modifytimestamp
102 &lt;/pre&gt;&lt;/blockquote&gt;
103
104 &lt;p&gt;In Debian Edu/Lenny, the PowerDNS tree mode is used with
105 ou=hosts,dc=skole,dc=skolelinux,dc=no as the base, and these are two
106 example LDAP objects used there. In addition to these objects, the
107 parent objects all th way up to ou=hosts,dc=skole,dc=skolelinux,dc=no
108 also exist.&lt;/p&gt;
109
110 &lt;blockquote&gt;&lt;pre&gt;
111 dn: dc=tjener,dc=intern,ou=hosts,dc=skole,dc=skolelinux,dc=no
112 objectclass: top
113 objectclass: dnsdomain
114 objectclass: domainrelatedobject
115 dc: tjener
116 arecord: 10.0.2.2
117 associateddomain: tjener.intern
118
119 dn: dc=2,dc=2,dc=0,dc=10,dc=in-addr,dc=arpa,ou=hosts,dc=skole,dc=skolelinux,dc=no
120 objectclass: top
121 objectclass: dnsdomain2
122 objectclass: domainrelatedobject
123 dc: 2
124 ptrrecord: tjener.intern
125 associateddomain: 2.2.0.10.in-addr.arpa
126 &lt;/pre&gt;&lt;/blockquote&gt;
127
128 &lt;p&gt;In strict mode, the server behaves differently. When looking for
129 forward DNS entries, it is doing a &quot;subtree&quot; scoped search with the
130 same base as in the tree mode for a object with filter
131 &quot;(associateddomain=tjener.intern)&quot; and requests the attributes dnsttl,
132 arecord, nsrecord, cnamerecord, soarecord, ptrrecord, hinforecord,
133 mxrecord, txtrecord, rprecord, aaaarecord, locrecord, srvrecord,
134 naptrrecord and modifytimestamp. For reverse entires it also do a
135 subtree scoped search but this time the filter is &quot;(arecord=10.0.2.2)&quot;
136 and the requested attributes are associateddomain, dnsttl and
137 modifytimestamp. In short, in strict mode the objects with ptrrecord
138 go away, and the arecord attribute in the forward object is used
139 instead.&lt;/p&gt;
140
141 &lt;p&gt;The forward and reverse searches can be simulated using ldapsearch
142 like this:&lt;/p&gt;
143
144 &lt;blockquote&gt;&lt;pre&gt;
145 ldapsearch -h ldap -b ou=hosts,dc=skole,dc=skolelinux,dc=no -s sub -x \
146 &#39;(associateddomain=tjener.intern)&#39; dNSTTL aRecord nSRecord \
147 cNAMERecord sOARecord pTRRecord hInfoRecord mXRecord tXTRecord \
148 rPRecord aFSDBRecord KeyRecord aAAARecord lOCRecord sRVRecord \
149 nAPTRRecord kXRecord certRecord dSRecord sSHFPRecord iPSecKeyRecord \
150 rRSIGRecord nSECRecord dNSKeyRecord dHCIDRecord sPFRecord modifyTimestamp
151
152 ldapsearch -h ldap -b ou=hosts,dc=skole,dc=skolelinux,dc=no -s sub -x \
153 &#39;(arecord=10.0.2.2)&#39; associateddomain dnsttl modifytimestamp
154 &lt;/pre&gt;&lt;/blockquote&gt;
155
156 &lt;p&gt;In addition to the forward and reverse searches , there is also a
157 search for SOA records, which behave similar to the forward and
158 reverse lookups.&lt;/p&gt;
159
160 &lt;p&gt;A thing to note with the PowerDNS behaviour is that it do not
161 specify any objectclass names, and instead look for the attributes it
162 need to generate a DNS reply. This make it able to work with any
163 objectclass that provide the needed attributes.&lt;/p&gt;
164
165 &lt;p&gt;The attributes are normally provided in the cosine (RFC 1274) and
166 dnsdomain2 schemas. The latter is used for reverse entries like
167 ptrrecord and recent DNS additions like aaaarecord and srvrecord.&lt;/p&gt;
168
169 &lt;p&gt;In Debian Edu, we have created DNS objects using the object classes
170 dcobject (for dc), dnsdomain or dnsdomain2 (structural, for the DNS
171 attributes) and domainrelatedobject (for associatedDomain). The use
172 of structural object classes make it impossible to combine these
173 classes with the object classes used by DHCP.&lt;/p&gt;
174
175 &lt;p&gt;There are other schemas that could be used too, for example the
176 dnszone structural object class used by Gosa and bind-sdb for the DNS
177 attributes combined with the domainrelatedobject object class, but in
178 this case some unused attributes would have to be included as well
179 (zonename and relativedomainname).&lt;/p&gt;
180
181 &lt;p&gt;My proposal for Debian Edu would be to switch PowerDNS to strict
182 mode and not use any of the existing objectclasses (dnsdomain,
183 dnsdomain2 and dnszone) when one want to combine the DNS information
184 with DHCP information, and instead create a auxiliary object class
185 defined something like this (using the attributes defined for
186 dnsdomain and dnsdomain2 or dnszone):&lt;/p&gt;
187
188 &lt;blockquote&gt;&lt;pre&gt;
189 objectclass ( some-oid NAME &#39;dnsDomainAux&#39;
190 SUP top
191 AUXILIARY
192 MAY ( ARecord $ MDRecord $ MXRecord $ NSRecord $ SOARecord $ CNAMERecord $
193 DNSTTL $ DNSClass $ PTRRecord $ HINFORecord $ MINFORecord $
194 TXTRecord $ SIGRecord $ KEYRecord $ AAAARecord $ LOCRecord $
195 NXTRecord $ SRVRecord $ NAPTRRecord $ KXRecord $ CERTRecord $
196 A6Record $ DNAMERecord
197 ))
198 &lt;/pre&gt;&lt;/blockquote&gt;
199
200 &lt;p&gt;This will allow any object to become a DNS entry when combined with
201 the domainrelatedobject object class, and allow any entity to include
202 all the attributes PowerDNS wants. I&#39;ve sent an email to the PowerDNS
203 developers asking for their view on this schema and if they are
204 interested in providing such schema with PowerDNS, and I hope my
205 message will be accepted into their mailing list soon.&lt;/p&gt;
206
207 &lt;p&gt;&lt;strong&gt;ISC dhcp&lt;/strong&gt;&lt;/p&gt;
208
209 &lt;p&gt;The DHCP server searches for specific objectclass and requests all
210 the object attributes, and then uses the attributes it want. This
211 make it harder to figure out exactly what attributes are used, but
212 thanks to the working example in Debian Edu I can at least get an idea
213 what is needed without having to read the source code.&lt;/p&gt;
214
215 &lt;p&gt;In the DHCP server configuration, the LDAP base to use and the
216 search filter to use to locate the correct dhcpServer entity is
217 stored. These are the relevant entries from
218 /etc/dhcp3/dhcpd.conf:&lt;/p&gt;
219
220 &lt;blockquote&gt;&lt;pre&gt;
221 ldap-base-dn &quot;dc=skole,dc=skolelinux,dc=no&quot;;
222 ldap-dhcp-server-cn &quot;dhcp&quot;;
223 &lt;/pre&gt;&lt;/blockquote&gt;
224
225 &lt;p&gt;The DHCP server uses this information to nest all the DHCP
226 configuration it need. The cn &quot;dhcp&quot; is located using the given LDAP
227 base and the filter &quot;(&amp;(objectClass=dhcpServer)(cn=dhcp))&quot;. The
228 search result is this entry:&lt;/p&gt;
229
230 &lt;blockquote&gt;&lt;pre&gt;
231 dn: cn=dhcp,dc=skole,dc=skolelinux,dc=no
232 cn: dhcp
233 objectClass: top
234 objectClass: dhcpServer
235 dhcpServiceDN: cn=DHCP Config,dc=skole,dc=skolelinux,dc=no
236 &lt;/pre&gt;&lt;/blockquote&gt;
237
238 &lt;p&gt;The content of the dhcpServiceDN attribute is next used to locate the
239 subtree with DHCP configuration. The DHCP configuration subtree base
240 is located using a base scope search with base &quot;cn=DHCP
241 Config,dc=skole,dc=skolelinux,dc=no&quot; and filter
242 &quot;(&amp;(objectClass=dhcpService)(|(dhcpPrimaryDN=cn=dhcp,dc=skole,dc=skolelinux,dc=no)(dhcpSecondaryDN=cn=dhcp,dc=skole,dc=skolelinux,dc=no)))&quot;.
243 The search result is this entry:&lt;/p&gt;
244
245 &lt;blockquote&gt;&lt;pre&gt;
246 dn: cn=DHCP Config,dc=skole,dc=skolelinux,dc=no
247 cn: DHCP Config
248 objectClass: top
249 objectClass: dhcpService
250 objectClass: dhcpOptions
251 dhcpPrimaryDN: cn=dhcp, dc=skole,dc=skolelinux,dc=no
252 dhcpStatements: ddns-update-style none
253 dhcpStatements: authoritative
254 dhcpOption: smtp-server code 69 = array of ip-address
255 dhcpOption: www-server code 72 = array of ip-address
256 dhcpOption: wpad-url code 252 = text
257 &lt;/pre&gt;&lt;/blockquote&gt;
258
259 &lt;p&gt;Next, the entire subtree is processed, one level at the time. When
260 all the DHCP configuration is loaded, it is ready to receive requests.
261 The subtree in Debian Edu contain objects with object classes
262 top/dhcpService/dhcpOptions, top/dhcpSharedNetwork/dhcpOptions,
263 top/dhcpSubnet, top/dhcpGroup and top/dhcpHost. These provide options
264 and information about netmasks, dynamic range etc. Leaving out the
265 details here because it is not relevant for the focus of my
266 investigation, which is to see if it is possible to merge dns and dhcp
267 related computer objects.&lt;/p&gt;
268
269 &lt;p&gt;When a DHCP request come in, LDAP is searched for the MAC address
270 of the client (00:00:00:00:00:00 in this example), using a subtree
271 scoped search with &quot;cn=DHCP Config,dc=skole,dc=skolelinux,dc=no&quot; as
272 the base and &quot;(&amp;(objectClass=dhcpHost)(dhcpHWAddress=ethernet
273 00:00:00:00:00:00))&quot; as the filter. This is what a host object look
274 like:&lt;/p&gt;
275
276 &lt;blockquote&gt;&lt;pre&gt;
277 dn: cn=hostname,cn=group1,cn=THINCLIENTS,cn=DHCP Config,dc=skole,dc=skolelinux,dc=no
278 cn: hostname
279 objectClass: top
280 objectClass: dhcpHost
281 dhcpHWAddress: ethernet 00:00:00:00:00:00
282 dhcpStatements: fixed-address hostname
283 &lt;/pre&gt;&lt;/blockquote&gt;
284
285 &lt;p&gt;There is less flexiblity in the way LDAP searches are done here.
286 The object classes need to have fixed names, and the configuration
287 need to be stored in a fairly specific LDAP structure. On the
288 positive side, the invidiual dhcpHost entires can be anywhere without
289 the DN pointed to by the dhcpServer entries. The latter should make
290 it possible to group all host entries in a subtree next to the
291 configuration entries, and this subtree can also be shared with the
292 DNS server if the schema proposed above is combined with the dhcpHost
293 structural object class.
294
295 &lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/p&gt;
296
297 &lt;p&gt;The PowerDNS implementation seem to be very flexible when it come
298 to which LDAP schemas to use. While its &quot;tree&quot; mode is rigid when it
299 come to the the LDAP structure, the &quot;strict&quot; mode is very flexible,
300 allowing DNS objects to be stored anywhere under the base cn specified
301 in the configuration.&lt;/p&gt;
302
303 &lt;p&gt;The DHCP implementation on the other hand is very inflexible, both
304 regarding which LDAP schemas to use and which LDAP structure to use.
305 I guess one could implement ones own schema, as long as the
306 objectclasses and attributes have the names used, but this do not
307 really help when the DHCP subtree need to have a fairly fixed
308 structure.&lt;/p&gt;
309
310 &lt;p&gt;Based on the observed behaviour, I suspect a LDAP structure like
311 this might work for Debian Edu:&lt;/p&gt;
312
313 &lt;blockquote&gt;&lt;pre&gt;
314 ou=services
315 cn=machine-info (dhcpService) - dhcpServiceDN points here
316 cn=dhcp (dhcpServer)
317 cn=dhcp-internal (dhcpSharedNetwork/dhcpOptions)
318 cn=10.0.2.0 (dhcpSubnet)
319 cn=group1 (dhcpGroup/dhcpOptions)
320 cn=dhcp-thinclients (dhcpSharedNetwork/dhcpOptions)
321 cn=192.168.0.0 (dhcpSubnet)
322 cn=group1 (dhcpGroup/dhcpOptions)
323 ou=machines - PowerDNS base points here
324 cn=hostname (dhcpHost/domainrelatedobject/dnsDomainAux)
325 &lt;/pre&gt;&lt;/blockquote&gt;
326
327 &lt;P&gt;This is not tested yet. If the DHCP server require the dhcpHost
328 entries to be in the dhcpGroup subtrees, the entries can be stored
329 there instead of a common machines subtree, and the PowerDNS base
330 would have to be moved one level up to the machine-info subtree.&lt;/p&gt;
331
332 &lt;p&gt;The combined object under the machines subtree would look something
333 like this:&lt;/p&gt;
334
335 &lt;blockquote&gt;&lt;pre&gt;
336 dn: dc=hostname,ou=machines,cn=machine-info,dc=skole,dc=skolelinux,dc=no
337 dc: hostname
338 objectClass: top
339 objectClass: dhcpHost
340 objectclass: domainrelatedobject
341 objectclass: dnsDomainAux
342 associateddomain: hostname.intern
343 arecord: 10.11.12.13
344 dhcpHWAddress: ethernet 00:00:00:00:00:00
345 dhcpStatements: fixed-address hostname.intern
346 &lt;/pre&gt;&lt;/blockquote&gt;
347
348 &lt;/p&gt;One could even add the LTSP configuration associated with a given
349 machine, as long as the required attributes are available in a
350 auxiliary object class.&lt;/p&gt;
351 </description>
352 </item>
353
354 <item>
355 <title>Combining PowerDNS and ISC DHCP LDAP objects</title>
356 <link>http://people.skolelinux.org/pere/blog/Combining_PowerDNS_and_ISC_DHCP_LDAP_objects.html</link>
357 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Combining_PowerDNS_and_ISC_DHCP_LDAP_objects.html</guid>
358 <pubDate>Wed, 14 Jul 2010 23:45:00 +0200</pubDate>
359 <description>
360 &lt;p&gt;For a while now, I have wanted to find a way to change the DNS and
361 DHCP services in Debian Edu to use the same LDAP objects for a given
362 computer, to avoid the possibility of having a inconsistent state for
363 a computer in LDAP (as in DHCP but no DNS entry or the other way
364 around) and make it easier to add computers to LDAP.&lt;/p&gt;
365
366 &lt;p&gt;I&#39;ve looked at how powerdns and dhcpd is using LDAP, and using this
367 information finally found a solution that seem to work.&lt;/p&gt;
368
369 &lt;p&gt;The old setup required three LDAP objects for a given computer.
370 One forward DNS entry, one reverse DNS entry and one DHCP entry. If
371 we switch powerdns to use its strict LDAP method (ldap-method=strict
372 in pdns-debian-edu.conf), the forward and reverse DNS entries are
373 merged into one while making it impossible to transfer the reverse map
374 to a slave DNS server.&lt;/p&gt;
375
376 &lt;p&gt;If we also replace the object class used to get the DNS related
377 attributes to one allowing these attributes to be combined with the
378 dhcphost object class, we can merge the DNS and DHCP entries into one.
379 I&#39;ve written such object class in the dnsdomainaux.schema file (need
380 proper OIDs, but that is a minor issue), and tested the setup. It
381 seem to work.&lt;/p&gt;
382
383 &lt;p&gt;With this test setup in place, we can get away with one LDAP object
384 for both DNS and DHCP, and even the LTSP configuration I suggested in
385 an earlier email. The combined LDAP object will look something like
386 this:&lt;/p&gt;
387
388 &lt;blockquote&gt;&lt;pre&gt;
389 dn: cn=hostname,cn=group1,cn=THINCLIENTS,cn=DHCP Config,dc=skole,dc=skolelinux,dc=no
390 cn: hostname
391 objectClass: dhcphost
392 objectclass: domainrelatedobject
393 objectclass: dnsdomainaux
394 associateddomain: hostname.intern
395 arecord: 10.11.12.13
396 dhcphwaddress: ethernet 00:00:00:00:00:00
397 dhcpstatements: fixed-address hostname
398 ldapconfigsound: Y
399 &lt;/pre&gt;&lt;/blockquote&gt;
400
401 &lt;p&gt;The DNS server uses the associateddomain and arecord entries, while
402 the DHCP server uses the dhcphwaddress and dhcpstatements entries
403 before asking DNS to resolve the fixed-adddress. LTSP will use
404 dhcphwaddress or associateddomain and the ldapconfig* attributes.&lt;/p&gt;
405
406 &lt;p&gt;I am not yet sure if I can get the DHCP server to look for its
407 dhcphost in a different location, to allow us to put the objects
408 outside the &quot;DHCP Config&quot; subtree, but hope to figure out a way to do
409 that. If I can&#39;t figure out a way to do that, we can still get rid of
410 the hosts subtree and move all its content into the DHCP Config tree
411 (which probably should be renamed to be more related to the new
412 content. I suspect cn=dnsdhcp,ou=services or something like that
413 might be a good place to put it.&lt;/p&gt;
414
415 &lt;p&gt;If you want to help out with implementing this for Debian Edu,
416 please contact us on debian-edu@lists.debian.org.&lt;/p&gt;
417 </description>
418 </item>
419
420 <item>
421 <title>Idea for storing LTSP configuration in LDAP</title>
422 <link>http://people.skolelinux.org/pere/blog/Idea_for_storing_LTSP_configuration_in_LDAP.html</link>
423 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Idea_for_storing_LTSP_configuration_in_LDAP.html</guid>
424 <pubDate>Sun, 11 Jul 2010 22:00:00 +0200</pubDate>
425 <description>
426 &lt;p&gt;Vagrant mentioned on IRC today that ltsp_config now support
427 sourcing files from /usr/share/ltsp/ltsp_config.d/ on the thin
428 clients, and that this can be used to fetch configuration from LDAP if
429 Debian Edu choose to store configuration there.&lt;/p&gt;
430
431 &lt;p&gt;Armed with this information, I got inspired and wrote a test module
432 to get configuration from LDAP. The idea is to look up the MAC
433 address of the client in LDAP, and look for attributes on the form
434 ltspconfigsetting=value, and use this to export SETTING=value to the
435 LTSP clients.&lt;/p&gt;
436
437 &lt;p&gt;The goal is to be able to store the LTSP configuration attributes
438 in a &quot;computer&quot; LDAP object used by both DNS and DHCP, and thus
439 allowing us to store all information about a computer in one place.&lt;/p&gt;
440
441 &lt;p&gt;This is a untested draft implementation, and I welcome feedback on
442 this approach. A real LDAP schema for the ltspClientAux objectclass
443 need to be written. Comments, suggestions, etc?&lt;/p&gt;
444
445 &lt;blockquote&gt;&lt;pre&gt;
446 # Store in /opt/ltsp/$arch/usr/share/ltsp/ltsp_config.d/ldap-config
447 #
448 # Fetch LTSP client settings from LDAP based on MAC address
449 #
450 # Uses ethernet address as stored in the dhcpHost objectclass using
451 # the dhcpHWAddress attribute or ethernet address stored in the
452 # ieee802Device objectclass with the macAddress attribute.
453 #
454 # This module is written to be schema agnostic, and only depend on the
455 # existence of attribute names.
456 #
457 # The LTSP configuration variables are saved directly using a
458 # ltspConfig prefix and uppercasing the rest of the attribute name.
459 # To set the SERVER variable, set the ltspConfigServer attribute.
460 #
461 # Some LDAP schema should be created with all the relevant
462 # configuration settings. Something like this should work:
463 #
464 # objectclass ( 1.1.2.2 NAME &#39;ltspClientAux&#39;
465 # SUP top
466 # AUXILIARY
467 # MAY ( ltspConfigServer $ ltsConfigSound $ ... )
468
469 LDAPSERVER=$(debian-edu-ldapserver)
470 if [ &quot;$LDAPSERVER&quot; ] ; then
471 LDAPBASE=$(debian-edu-ldapserver -b)
472 for MAC in $(LANG=C ifconfig |grep -i hwaddr| awk &#39;{print $5}&#39;|sort -u) ; do
473 filter=&quot;(|(dhcpHWAddress=ethernet $MAC)(macAddress=$MAC))&quot;
474 ldapsearch -h &quot;$LDAPSERVER&quot; -b &quot;$LDAPBASE&quot; -v -x &quot;$filter&quot; | \
475 grep &#39;^ltspConfig&#39; | while read attr value ; do
476 # Remove prefix and convert to upper case
477 attr=$(echo $attr | sed &#39;s/^ltspConfig//i&#39; | tr a-z A-Z)
478 # bass value on to clients
479 eval &quot;$attr=$value; export $attr&quot;
480 done
481 done
482 fi
483 &lt;/pre&gt;&lt;/blockquote&gt;
484
485 &lt;p&gt;I&#39;m not sure this shell construction will work, because I suspect
486 the while block might end up in a subshell causing the variables set
487 there to not show up in ltsp-config, but if that is the case I am sure
488 the code can be restructured to make sure the variables are passed on.
489 I expect that can be solved with some testing. :)&lt;/p&gt;
490
491 &lt;p&gt;If you want to help out with implementing this for Debian Edu,
492 please contact us on debian-edu@lists.debian.org.&lt;/p&gt;
493
494 &lt;p&gt;Update 2010-07-17: I am aware of another effort to store LTSP
495 configuration in LDAP that was created around year 2000 by
496 &lt;a href=&quot;http://www.pcxperience.com/thinclient/documentation/ldap.html&quot;&gt;PC
497 Xperience, Inc., 2000&lt;/a&gt;. I found its
498 &lt;a href=&quot;http://people.redhat.com/alikins/ltsp/ldap/&quot;&gt;files&lt;/a&gt; on a
499 personal home page over at redhat.com.&lt;/p&gt;
500 </description>
501 </item>
502
503 <item>
504 <title>jXplorer, a very nice LDAP GUI</title>
505 <link>http://people.skolelinux.org/pere/blog/jXplorer__a_very_nice_LDAP_GUI.html</link>
506 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/jXplorer__a_very_nice_LDAP_GUI.html</guid>
507 <pubDate>Fri, 9 Jul 2010 12:55:00 +0200</pubDate>
508 <description>
509 &lt;p&gt;Since
510 &lt;a href=&quot;http://people.skolelinux.org/pere/blog/LUMA__a_very_nice_LDAP_GUI.html&quot;&gt;my
511 last post&lt;/a&gt; about available LDAP tools in Debian, I was told about a
512 LDAP GUI that is even better than luma. The java application
513 &lt;a href=&quot;http://jxplorer.org/&quot;&gt;jXplorer&lt;/a&gt; is claimed to be capable of
514 moving LDAP objects and subtrees using drag-and-drop, and can
515 authenticate using Kerberos. I have only tested the Kerberos
516 authentication, but do not have a LDAP setup allowing me to rewrite
517 LDAP with my test user yet. It is
518 &lt;a href=&quot;http://packages.qa.debian.org/j/jxplorer.html&quot;&gt;available in
519 Debian&lt;/a&gt; testing and unstable at the moment. The only problem I
520 have with it is how it handle errors. If something go wrong, its
521 non-intuitive behaviour require me to go through some query work list
522 and remove the failing query. Nothing big, but very annoying.&lt;/p&gt;
523 </description>
524 </item>
525
526 <item>
527 <title>MS Word krøller det til for politiet?</title>
528 <link>http://people.skolelinux.org/pere/blog/MS_Word_kr__ller_det_til_for_politiet_.html</link>
529 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/MS_Word_kr__ller_det_til_for_politiet_.html</guid>
530 <pubDate>Thu, 8 Jul 2010 14:00:00 +0200</pubDate>
531 <description>
532 &lt;p&gt;De siste dagene har Aftenposten
533 &lt;a href=&quot;http://www.aftenposten.no/nyheter/iriks/article3718597.ece&quot;&gt;fortalt&lt;/a&gt;
534 &lt;a href=&quot;http://www.aftenposten.no/nyheter/iriks/article3724249.ece&quot;&gt;hvordan&lt;/a&gt;
535 politet har brukt skriveverktøy som ikke håndterer arabisk tekst og
536 tekst som skal skrives fra høyre mot venstre når de har laget
537 løpeseddel for å be om informasjon fra publikum. Resultatet har vært
538 en uleselig arabisk-bit på løpeseddelen. Feilen har oppstått når
539 teksten har blitt &quot;kopiert inn i programvare som ikke har støtte for
540 språk som skrives fra høyre mot venstre&quot;, og jeg er ganske sikker på
541 at det er snakk om Microsoft Office i dette tilfellet. Er det slik at
542 MS Office i norsk språkdrakt ikke har støtte for tekst som skal
543 skrives fra høyre mot venstre? Jeg tror alle utgaver av
544 OpenOffice.org har slik støtte, og det er jo ikke veldig vanskelig å
545 la slik støtte finnes i alle utgaver av et program hvis støtten først
546 er utviklet. Aftenpostens melding får meg til å undre om problemet
547 ville vært unngått hvis politiet brukte OpenOffice.org i stedet for MS
548 Office.&lt;/p&gt;
549
550 &lt;p&gt;Mon tro om det er flere eksempler på at MS Office har ødelagt for
551 offentlig myndighet?&lt;/p&gt;
552 </description>
553 </item>
554
555 <item>
556 <title>Lenny-&gt;Squeeze upgrades, apt vs aptitude with the Gnome desktop</title>
557 <link>http://people.skolelinux.org/pere/blog/Lenny__Squeeze_upgrades__apt_vs_aptitude_with_the_Gnome_desktop.html</link>
558 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Lenny__Squeeze_upgrades__apt_vs_aptitude_with_the_Gnome_desktop.html</guid>
559 <pubDate>Sat, 3 Jul 2010 23:55:00 +0200</pubDate>
560 <description>
561 &lt;p&gt;Here is a short update on my &lt;a
562 href=&quot;http://people.skolelinux.org/~pere/debian-upgrade-testing/&quot;&gt;my
563 Debian Lenny-&gt;Squeeze upgrade testing&lt;/a&gt;. Here is a summary of the
564 difference for Gnome when it is upgraded by apt-get and aptitude. I&#39;m
565 not reporting the status for KDE, because the upgrade crashes when
566 aptitude try because of missing conflicts
567 (&lt;a href=&quot;http://bugs.debian.org/584861&quot;&gt;#584861&lt;/a&gt; and
568 &lt;a href=&quot;http://bugs.debian.org/585716&quot;&gt;#585716&lt;/a&gt;).&lt;/p&gt;
569
570 &lt;p&gt;At the end of the upgrade test script, dpkg -l is executed to get a
571 complete list of the installed packages. Based on this I see these
572 differences when I did a test run today. As usual, I do not really
573 know what the correct set of packages would be, but thought it best to
574 publish the difference.&lt;/p&gt;
575
576 &lt;p&gt;Installed using apt-get, missing with aptitude&lt;/p&gt;
577
578 &lt;blockquote&gt;&lt;p&gt;
579 at-spi cpp-4.3 finger gnome-spell gstreamer0.10-gnomevfs
580 libatspi1.0-0 libcupsys2 libeel2-data libgail-common libgdl-1-common
581 libgnomeprint2.2-data libgnomeprintui2.2-common libgnomevfs2-bin
582 libgtksourceview-common libpt-1.10.10-plugins-alsa
583 libpt-1.10.10-plugins-v4l libservlet2.4-java libxalan2-java
584 libxerces2-java openoffice.org-writer2latex openssl-blacklist p7zip
585 python-4suite-xml python-eggtrayicon python-gtkhtml2
586 python-gtkmozembed svgalibg1 xserver-xephyr zip
587 &lt;/p&gt;&lt;/blockquote&gt;
588
589 &lt;p&gt;Installed using apt-get, removed with aptitude&lt;/p&gt;
590
591 &lt;blockquote&gt;&lt;p&gt;
592 bluez-utils dhcdbd djvulibre-desktop epiphany-gecko
593 gnome-app-install gnome-mount gnome-vfs-obexftp gnome-volume-manager
594 libao2 libavahi-compat-libdnssd1 libavahi-core5 libbind9-50
595 libbluetooth2 libcamel1.2-11 libcdio7 libcucul0 libcurl3
596 libdirectfb-1.0-0 libdvdread3 libedata-cal1.2-6 libedataserver1.2-9
597 libeel2-2.20 libepc-1.0-1 libepc-ui-1.0-1 libexchange-storage1.2-3
598 libfaad0 libgd2-noxpm libgda3-3 libgda3-common libggz2 libggzcore9
599 libggzmod4 libgksu1.2-0 libgksuui1.0-1 libgmyth0 libgnome-desktop-2
600 libgnome-pilot2 libgnomecups1.0-1 libgnomeprint2.2-0
601 libgnomeprintui2.2-0 libgpod3 libgraphviz4 libgtkhtml2-0
602 libgtksourceview1.0-0 libgucharmap6 libhesiod0 libicu38 libisccc50
603 libisccfg50 libiw29 libkpathsea4 libltdl3 liblwres50 libmagick++10
604 libmagick10 libmalaga7 libmtp7 libmysqlclient15off libnautilus-burn4
605 libneon27 libnm-glib0 libnm-util0 libopal-2.2 libosp5
606 libparted1.8-10 libpisock9 libpisync1 libpoppler-glib3 libpoppler3
607 libpt-1.10.10 libraw1394-8 libsensors3 libsmbios2 libsoup2.2-8
608 libssh2-1 libsuitesparse-3.1.0 libswfdec-0.6-90 libtalloc1
609 libtotem-plparser10 libtrackerclient0 libvoikko1 libxalan2-java-gcj
610 libxerces2-java-gcj libxklavier12 libxtrap6 libxxf86misc1 libzephyr3
611 mysql-common swfdec-gnome totem-gstreamer wodim
612 &lt;/p&gt;&lt;/blockquote&gt;
613
614 &lt;p&gt;Installed using aptitude, missing with apt-get&lt;/p&gt;
615
616 &lt;blockquote&gt;&lt;p&gt;
617 gnome gnome-desktop-environment hamster-applet python-gnomeapplet
618 python-gnomekeyring python-wnck rhythmbox-plugins xorg
619 xserver-xorg-input-all xserver-xorg-input-evdev
620 xserver-xorg-input-kbd xserver-xorg-input-mouse
621 xserver-xorg-input-synaptics xserver-xorg-video-all
622 xserver-xorg-video-apm xserver-xorg-video-ark xserver-xorg-video-ati
623 xserver-xorg-video-chips xserver-xorg-video-cirrus
624 xserver-xorg-video-dummy xserver-xorg-video-fbdev
625 xserver-xorg-video-glint xserver-xorg-video-i128
626 xserver-xorg-video-i740 xserver-xorg-video-mach64
627 xserver-xorg-video-mga xserver-xorg-video-neomagic
628 xserver-xorg-video-nouveau xserver-xorg-video-nv
629 xserver-xorg-video-r128 xserver-xorg-video-radeon
630 xserver-xorg-video-radeonhd xserver-xorg-video-rendition
631 xserver-xorg-video-s3 xserver-xorg-video-s3virge
632 xserver-xorg-video-savage xserver-xorg-video-siliconmotion
633 xserver-xorg-video-sis xserver-xorg-video-sisusb
634 xserver-xorg-video-tdfx xserver-xorg-video-tga
635 xserver-xorg-video-trident xserver-xorg-video-tseng
636 xserver-xorg-video-vesa xserver-xorg-video-vmware
637 xserver-xorg-video-voodoo
638 &lt;/p&gt;&lt;/blockquote&gt;
639
640 &lt;p&gt;Installed using aptitude, removed with apt-get&lt;/p&gt;
641
642 &lt;blockquote&gt;&lt;p&gt;
643 deskbar-applet xserver-xorg xserver-xorg-core
644 xserver-xorg-input-wacom xserver-xorg-video-intel
645 xserver-xorg-video-openchrome
646 &lt;/p&gt;&lt;/blockquote&gt;
647
648 &lt;p&gt;I was told on IRC that the xorg-xserver package was
649 &lt;a href=&quot;http://git.debian.org/?p=pkg-xorg/xserver/xorg-server.git;a=commit;h=9c8080d06c457932d3bfec021c69ac000aa60120&quot;&gt;changed
650 in git&lt;/a&gt; today to try to get apt-get to not remove xorg completely.
651 No idea when it hits Squeeze, but when it does I hope it will reduce
652 the difference somewhat.
653 </description>
654 </item>
655
656 <item>
657 <title>Caching password, user and group on a roaming Debian laptop</title>
658 <link>http://people.skolelinux.org/pere/blog/Caching_password__user_and_group_on_a_roaming_Debian_laptop.html</link>
659 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Caching_password__user_and_group_on_a_roaming_Debian_laptop.html</guid>
660 <pubDate>Thu, 1 Jul 2010 11:40:00 +0200</pubDate>
661 <description>
662 &lt;p&gt;For a laptop, centralized user directories and password checking is
663 a bit troubling. Laptops are typically used also when not connected
664 to the network, and it is vital for a user to be able to log in or
665 unlock the screen saver also when a central server is unavailable.
666 This is possible by caching passwords and directory information (user
667 and group attributes) locally, and the packages to do so are available
668 in Debian. Here follow two recipes to set this up in Debian/Squeeze.
669 It is also possible to set up in Debian/Lenny, but require more manual
670 setup there because pam-auth-update is missing in Lenny.&lt;/p&gt;
671
672 &lt;h2&gt;LDAP/Kerberos + nscd + libpam-ccreds + libpam-mklocaluser/pam_mkhomedir&lt;/h2&gt;
673
674 This is the traditional method with a twist. The password caching is
675 provided by libpam-ccreds (version 10-4 or later is needed on
676 Squeeze), and the directory caching is done by nscd. The directory
677 lookup and password checking is done using LDAP. If one want to use
678 Kerberos for password checking the libpam-ldapd package can be
679 replaced with libpam-krb5 or libpam-heimdal. If one is happy having a
680 local home directory with the path listed in LDAP, one can use the
681 pam_mkhomedir module from pam-modules to make this happen instead of
682 using libpam-mklocaluser. A setup for pam-auth-update to enable
683 pam_mkhomedir will have to be written until a fix for
684 &lt;a href=&quot;http://bugs.debian.org/568577&quot;&gt;bug #568577&lt;/a&gt; is in the
685 archive. Because I believe it is a bad idea to have local home
686 directories using misleading paths like /site/server/partition/, I
687 prefer to create a local user with the home directory in /home/. This
688 is done using the libpam-mklocaluser package.&lt;/p&gt;
689
690 &lt;p&gt;These packages need to be installed and configured&lt;/p&gt;
691
692 &lt;blockquote&gt;&lt;pre&gt;
693 libnss-ldapd libpam-ldapd nscd libpam-ccreds libpam-mklocaluser
694 &lt;/pre&gt;&lt;/blockquote&gt;
695
696 &lt;p&gt;The ldapd packages will ask for LDAP connection information, and
697 one have to fill in the values that fits ones own site. Make sure the
698 PAM part uses encrypted connections, to make sure the password is not
699 sent in clear text to the LDAP server. I&#39;ve been unable to get TLS
700 certificate checking for a self signed certificate working, which make
701 LDAP authentication unsafe for Debian Edu (nslcd is not checking if it
702 is talking to the correct LDAP server), and very much welcome feedback
703 on how to get this working.&lt;/p&gt;
704
705 &lt;p&gt;Because nscd do not have a default configuration fit for offline
706 caching until &lt;a href=&quot;http://bugs.debian.org/485282&quot;&gt;bug #485282&lt;/a&gt;
707 is fixed, this configuration should be used instead of the one
708 currently in /etc/nscd.conf. The changes are in the fields
709 reload-count and positive-time-to-live, and is based on the
710 instructions I found in the
711 &lt;a href=&quot;http://www.flyn.org/laptopldap/&quot;&gt;LDAP for Mobile Laptops&lt;/a&gt;
712 instructions by Flyn Computing.&lt;/p&gt;
713
714 &lt;blockquote&gt;&lt;pre&gt;
715 debug-level 0
716 reload-count unlimited
717 paranoia no
718
719 enable-cache passwd yes
720 positive-time-to-live passwd 2592000
721 negative-time-to-live passwd 20
722 suggested-size passwd 211
723 check-files passwd yes
724 persistent passwd yes
725 shared passwd yes
726 max-db-size passwd 33554432
727 auto-propagate passwd yes
728
729 enable-cache group yes
730 positive-time-to-live group 2592000
731 negative-time-to-live group 20
732 suggested-size group 211
733 check-files group yes
734 persistent group yes
735 shared group yes
736 max-db-size group 33554432
737 auto-propagate group yes
738
739 enable-cache hosts no
740 positive-time-to-live hosts 2592000
741 negative-time-to-live hosts 20
742 suggested-size hosts 211
743 check-files hosts yes
744 persistent hosts yes
745 shared hosts yes
746 max-db-size hosts 33554432
747
748 enable-cache services yes
749 positive-time-to-live services 2592000
750 negative-time-to-live services 20
751 suggested-size services 211
752 check-files services yes
753 persistent services yes
754 shared services yes
755 max-db-size services 33554432
756 &lt;/pre&gt;&lt;/blockquote&gt;
757
758 &lt;p&gt;While we wait for a mechanism to update /etc/nsswitch.conf
759 automatically like the one provided in
760 &lt;a href=&quot;http://bugs.debian.org/496915&quot;&gt;bug #496915&lt;/a&gt;, the file
761 content need to be manually replaced to ensure LDAP is used as the
762 directory service on the machine. /etc/nsswitch.conf should normally
763 look like this:&lt;/p&gt;
764
765 &lt;blockquote&gt;&lt;pre&gt;
766 passwd: files ldap
767 group: files ldap
768 shadow: files ldap
769 hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
770 networks: files
771 protocols: files
772 services: files
773 ethers: files
774 rpc: files
775 netgroup: files ldap
776 &lt;/pre&gt;&lt;/blockquote&gt;
777
778 &lt;p&gt;The important parts are that ldap is listed last for passwd, group,
779 shadow and netgroup.&lt;/p&gt;
780
781 &lt;p&gt;With these changes in place, any user in LDAP will be able to log
782 in locally on the machine using for example kdm, get a local home
783 directory created and have the password as well as user and group
784 attributes cached.
785
786 &lt;h2&gt;LDAP/Kerberos + nss-updatedb + libpam-ccreds +
787 libpam-mklocaluser/pam_mkhomedir&lt;/h2&gt;
788
789 &lt;p&gt;Because nscd have had its share of problems, and seem to have
790 problems doing proper caching, I&#39;ve seen suggestions and recipes to
791 use nss-updatedb to copy parts of the LDAP database locally when the
792 LDAP database is available. I have not tested such setup, because I
793 discovered sssd.&lt;/p&gt;
794
795 &lt;h2&gt;LDAP/Kerberos + sssd + libpam-mklocaluser&lt;/h2&gt;
796
797 &lt;p&gt;A more flexible and robust setup than the nscd combination
798 mentioned earlier that has shown up recently, is the
799 &lt;a href=&quot;https://fedorahosted.org/sssd/&quot;&gt;sssd&lt;/a&gt; package from Redhat.
800 It is part of the &lt;a href=&quot;http://www.freeipa.org/&quot;&gt;FreeIPA&lt;/A&gt; project
801 to provide a Active Directory like directory service for Linux
802 machines. The sssd system combines the caching of passwords and user
803 information into one package, and remove the need for nscd and
804 libpam-ccreds. It support LDAP and Kerberos, but not NIS. Version
805 1.2 do not support netgroups, but it is said that it will support this
806 in version 1.5 expected to show up later in 2010. Because the
807 &lt;a href=&quot;http://packages.qa.debian.org/s/sssd.html&quot;&gt;sssd package&lt;/a&gt;
808 was missing in Debian, I ended up co-maintaining it with Werner, and
809 version 1.2 is now in testing.
810
811 &lt;p&gt;These packages need to be installed and configured to get the
812 roaming setup I want&lt;/p&gt;
813
814 &lt;blockquote&gt;&lt;pre&gt;
815 libpam-sss libnss-sss libpam-mklocaluser
816 &lt;/pre&gt;&lt;/blockquote&gt;
817
818 The complete setup of sssd is done by editing/creating
819 &lt;tt&gt;/etc/sssd/sssd.conf&lt;/tt&gt;.
820
821 &lt;blockquote&gt;&lt;pre&gt;
822 [sssd]
823 config_file_version = 2
824 reconnection_retries = 3
825 sbus_timeout = 30
826 services = nss, pam
827 domains = INTERN
828
829 [nss]
830 filter_groups = root
831 filter_users = root
832 reconnection_retries = 3
833
834 [pam]
835 reconnection_retries = 3
836
837 [domain/INTERN]
838 enumerate = false
839 cache_credentials = true
840
841 id_provider = ldap
842 auth_provider = ldap
843 chpass_provider = ldap
844
845 ldap_uri = ldap://ldap
846 ldap_search_base = dc=skole,dc=skolelinux,dc=no
847 ldap_tls_reqcert = never
848 ldap_tls_cacert = /etc/ssl/certs/ca-certificates.crt
849 &lt;/pre&gt;&lt;/blockquote&gt;
850
851 &lt;p&gt;I got the same problem here with certificate checking. Had to set
852 &quot;ldap_tls_reqcert = never&quot; to get it working.&lt;/p&gt;
853
854 &lt;p&gt;With the libnss-sss package in testing at the moment, the
855 nsswitch.conf file is update automatically, so there is no need to
856 modify it manually.&lt;/p&gt;
857
858 &lt;p&gt;If you want to help out with implementing this for Debian Edu,
859 please contact us on debian-edu@lists.debian.org.&lt;/p&gt;
860 </description>
861 </item>
862
863 <item>
864 <title>LUMA, a very nice LDAP GUI</title>
865 <link>http://people.skolelinux.org/pere/blog/LUMA__a_very_nice_LDAP_GUI.html</link>
866 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/LUMA__a_very_nice_LDAP_GUI.html</guid>
867 <pubDate>Mon, 28 Jun 2010 00:30:00 +0200</pubDate>
868 <description>
869 &lt;p&gt;The last few days I have been looking into the status of the LDAP
870 directory in Debian Edu, and in the process I started to miss a GUI
871 tool to browse the LDAP tree. The only one I was able to find in
872 Debian/Squeeze and Lenny is
873 &lt;a href=&quot;http://luma.sourceforge.net/&quot;&gt;LUMA&lt;/a&gt;, which has proved to
874 be a great tool to get a overview of the current LDAP directory
875 populated by default in Skolelinux. Thanks to it, I have been able to
876 find empty and obsolete subtrees, misplaced objects and duplicate
877 objects. It will be installed by default in Debian/Squeeze. If you
878 are working with LDAP, give it a go. :)&lt;/p&gt;
879
880 &lt;p&gt;I did notice one problem with it I have not had time to report to
881 the BTS yet. There is no .desktop file in the package, so the tool do
882 not show up in the Gnome and KDE menus, but only deep down in in the
883 Debian submenu in KDE. I hope that can be fixed before Squeeze is
884 released.&lt;/p&gt;
885
886 &lt;p&gt;I have not yet been able to get it to modify the tree yet. I would
887 like to move objects and remove subtrees directly in the GUI, but have
888 not found a way to do that with LUMA yet. So in the mean time, I use
889 &lt;a href=&quot;http://www.lichteblau.com/ldapvi/&quot;&gt;ldapvi&lt;/a&gt; for that.&lt;/p&gt;
890
891 &lt;p&gt;If you have tips on other GUI tools for LDAP that might be useful
892 in Debian Edu, please contact us on debian-edu@lists.debian.org.&lt;/p&gt;
893
894 &lt;p&gt;Update 2010-06-29: Ross Reedstrom tipped us about the
895 &lt;a href=&quot;http://packages.qa.debian.org/g/gq.html&quot;&gt;gq&lt;/a&gt; package as a
896 useful GUI alternative. It seem like a good tool, but is unmaintained
897 in Debian and got a RC bug keeping it out of Squeeze. Unless that
898 changes, it will not be an option for Debian Edu based on Squeeze.&lt;/p&gt;
899 </description>
900 </item>
901
902 <item>
903 <title>Idea for a change to LDAP schemas allowing DNS and DHCP info to be combined into one object</title>
904 <link>http://people.skolelinux.org/pere/blog/Idea_for_a_change_to_LDAP_schemas_allowing_DNS_and_DHCP_info_to_be_combined_into_one_object.html</link>
905 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Idea_for_a_change_to_LDAP_schemas_allowing_DNS_and_DHCP_info_to_be_combined_into_one_object.html</guid>
906 <pubDate>Thu, 24 Jun 2010 00:35:00 +0200</pubDate>
907 <description>
908 &lt;p&gt;A while back, I
909 &lt;a href=&quot;http://people.skolelinux.org/pere/blog/Time_for_new__LDAP_schemas_replacing_RFC_2307_.html&quot;&gt;complained
910 about the fact&lt;/a&gt; that it is not possible with the provided schemas
911 for storing DNS and DHCP information in LDAP to combine the two sets
912 of information into one LDAP object representing a computer.&lt;/p&gt;
913
914 &lt;p&gt;In the mean time, I discovered that a simple fix would be to make
915 the dhcpHost object class auxiliary, to allow it to be combined with
916 the dNSDomain object class, and thus forming one object for one
917 computer when storing both DHCP and DNS information in LDAP.&lt;/p&gt;
918
919 &lt;p&gt;If I understand this correctly, it is not safe to do this change
920 without also changing the assigned number for the object class, and I
921 do not know enough about LDAP schema design to do that properly for
922 Debian Edu.&lt;/p&gt;
923
924 &lt;p&gt;Anyway, for future reference, this is how I believe we could change
925 the
926 &lt;a href=&quot;http://tools.ietf.org/html/draft-ietf-dhc-ldap-schema-00&quot;&gt;DHCP
927 schema&lt;/a&gt; to solve at least part of the problem with the LDAP schemas
928 available today from IETF.&lt;/p&gt;
929
930 &lt;pre&gt;
931 --- dhcp.schema (revision 65192)
932 +++ dhcp.schema (working copy)
933 @@ -376,7 +376,7 @@
934 objectclass ( 2.16.840.1.113719.1.203.6.6
935 NAME &#39;dhcpHost&#39;
936 DESC &#39;This represents information about a particular client&#39;
937 - SUP top
938 + SUP top AUXILIARY
939 MUST cn
940 MAY (dhcpLeaseDN $ dhcpHWAddress $ dhcpOptionsDN $ dhcpStatements $ dhcpComments $ dhcpOption)
941 X-NDS_CONTAINMENT (&#39;dhcpService&#39; &#39;dhcpSubnet&#39; &#39;dhcpGroup&#39;) )
942 &lt;/pre&gt;
943
944 &lt;p&gt;I very much welcome clues on how to do this properly for Debian
945 Edu/Squeeze. We provide the DHCP schema in our debian-edu-config
946 package, and should thus be free to rewrite it as we see fit.&lt;/p&gt;
947
948 &lt;p&gt;If you want to help out with implementing this for Debian Edu,
949 please contact us on debian-edu@lists.debian.org.&lt;/p&gt;
950 </description>
951 </item>
952
953 </channel>
954 </rss>