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