]> 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>No hardcoded config on Debian Edu clients</title>
11 <link>http://people.skolelinux.org/pere/blog/No_hardcoded_config_on_Debian_Edu_clients.html</link>
12 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/No_hardcoded_config_on_Debian_Edu_clients.html</guid>
13 <pubDate>Mon, 9 Aug 2010 20:15:00 +0200</pubDate>
14 <description>
15 &lt;p&gt;As reported earlier, the last few days I have looked at how Debian
16 Edu clients are configured, and tried to get rid of all hardcoded
17 configuration settings on the clients. I believe the work to be
18 mostly done, and the clients seem to work just fine with dynamically
19 generated configuration.&lt;/p&gt;
20
21 &lt;p&gt;What is the point, you might ask? The point is to allow a Debian
22 Edu desktop to integrate into an existing network infrastructure
23 without any manual configuration.&lt;/p&gt;
24
25 &lt;p&gt;This is what happens when installing a Debian Edu client here at
26 the University of Oslo using PXE. With the PXE installation, I am
27 asked for language (Norwegian Bokmål), locality (Norway) and keyboard
28 layout (no-latin1), Debian Edu profile (Roaming Workstation), if I
29 accept to reformat the hard drive (yes), if I want to submit info to
30 popcon.debian.org (no) and root password (secret). After answering
31 these questions, the installer goes ahead and does its thing, and
32 after around 50 minutes it is done. I press enter to finish the
33 installation, and the machine reboots into KDE. When the machine is
34 ready and kdm asks for login information, I enter my university
35 username and password, am told by kdm that a local home directory has
36 been created and that I must log in again, and finally log in with the
37 same username and password to the KDE 4.4 desktop. At no point during
38 this process did it ask for university specific settings, and all the
39 required configuration was dynamically detected using information
40 fetched via DHCP and DNS. The roaming workstation is now ready for
41 use.&lt;/p&gt;
42
43 &lt;p&gt;How was this done, you might wonder? First of all, here is the
44 list of things that need to be configured on the client to get it
45 working properly out of the box:&lt;/p&gt;
46
47 &lt;ul&gt;
48 &lt;li&gt;IP address/netmask and DNS server.&lt;/li&gt;
49 &lt;li&gt;Web proxy URL.&lt;/li&gt;
50 &lt;li&gt;LDAP server for NSS directory information (user, group, etc).&lt;/li&gt;
51 &lt;li&gt;Kerberos server for PAM password checking.&lt;/li&gt;
52 &lt;li&gt;SMB mount point to access the network home directory. (*)&lt;/li&gt;
53 &lt;li&gt;Central syslog server to send syslog messages to. (*)&lt;/li&gt;
54 &lt;li&gt;Sitesummary collector URL to submit info to central server. (*)&lt;/li&gt;
55 &lt;/ul&gt;
56
57 &lt;p&gt;(Hm, did I forget anything? Let me knew if I did.)&lt;/p&gt;
58
59 &lt;p&gt;The points marked (*) are not required to be able to use the
60 machine, but needed to provide central storage and allowing system
61 administrators to track their machines. Since yesterday, everything
62 but the sitesummary collector URL is dynamically discovered at boot
63 and installation time in the svn version of Debian Edu.&lt;/p&gt;
64
65 &lt;p&gt;The IP and DNS setup is fetched during boot using DHCP as usual.
66 When a DHCP update arrives, the proxy setup is updated by looking for
67 http://wpat/wpad.dat and using the content of this WPAD file to
68 configure the http and ftp proxy in /etc/environment and
69 /etc/apt/apt.conf. I decided to update the proxy setup using a DHCP
70 hook to ensure that the client stops using the Debian Edu proxy when
71 it is moved outside the Debian Edu network, and instead uses any local
72 proxy present on the new network when it moves around.&lt;/p&gt;
73
74 &lt;p&gt;The DNS names of the LDAP, Kerberos and syslog server and related
75 configuration are generated using DNS information at boot. First the
76 installer looks for a host named ldap in the current DNS domain. If
77 not found, it looks for _ldap._tcp SRV records in DNS instead. If an
78 LDAP server is found, its root DSE entry is requested and the
79 attributes namingContexts and defaultNamingContext are used to
80 determine which LDAP base to use for NSS. If there are several
81 namingContexts attibutes and the defaultNamingContext is present, that
82 LDAP subtree is used as the base. If defaultNamingContext is missing,
83 the subtrees listed as namingContexts are searched in sequence for any
84 object with class posixAccount or posixGroup, and the first one with
85 such an object is used as the LDAP base. For Kerberos, a similar
86 search is done by first looking for a host named kerberos, and then
87 for the _kerberos._tcp SRV record. I&#39;ve been unable to find a way to
88 look up the Kerberos realm, so for this the upper case string of the
89 current DNS domain is used.&lt;/p&gt;
90
91 &lt;p&gt;For the syslog server, the hosts syslog and loghost are searched
92 for, and the _syslog._udp SRV record is consulted if no such host is
93 found. This algorithm works for both Debian Edu and the University of
94 Oslo. A similar strategy would work for locating the sitesummary
95 server, but have not been implemented yet. I decided to fetch and
96 save these settings during installation, to make sure moving to a
97 different network does not change the set of users being allowed to
98 log in nor the passwords required to log in. Usernames and passwords
99 will be cached by sssd when the user logs in on the Debian Edu
100 network, and will not change as the laptop move around. For a
101 non-roaming machine, there is no caching, but given that it is
102 supposed to stay in place it should not matter much. Perhaps we
103 should switch those to use sssd too?&lt;/p&gt;
104
105 &lt;p&gt;The user&#39;s SMB mount point for the network home directory is
106 located when the user logs in for the first time. The LDAP server is
107 consulted to look for the user&#39;s LDAP object and the sambaHomePath
108 attribute is used if found. If it isn&#39;t found, the home directory
109 path fetched from NSS is used instead. Assuming the path is of the
110 form /site/server/directory/username, the second part is looked up in
111 DNS and used to generate a SMB URL of the form
112 smb://server.domain/username. This algorithm works for both Debian
113 edu and the University of Oslo. Perhaps there are better attributes
114 to use or a better algorithm that works for more sites, but this will
115 do for now. :)&lt;/p&gt;
116
117 &lt;p&gt;This work should make it easier to integrate the Debian Edu clients
118 into any LDAP/Kerberos infrastructure, and make the current setup even
119 more flexible than before. I suspect it will also work for thin
120 client servers, allowing one to easily set up LTSP and hook it into a
121 existing network infrastructure, but I have not had time to test this
122 yet.&lt;/p&gt;
123
124 &lt;p&gt;If you want to help out with implementing these things for Debian
125 Edu, please contact us on debian-edu@lists.debian.org.&lt;/p&gt;
126 </description>
127 </item>
128
129 <item>
130 <title>Testing if a file system can be used for home directories...</title>
131 <link>http://people.skolelinux.org/pere/blog/Testing_if_a_file_system_can_be_used_for_home_directories___.html</link>
132 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Testing_if_a_file_system_can_be_used_for_home_directories___.html</guid>
133 <pubDate>Sun, 8 Aug 2010 21:20:00 +0200</pubDate>
134 <description>
135 &lt;p&gt;A few years ago, I was involved in a project planning to use
136 Windows file servers as home directory servers for Debian
137 Edu/Skolelinux machines. This was thought to be no problem, as the
138 access would be through the SMB network file system protocol, and we
139 knew other sites used SMB with unix and samba as the file server to
140 mount home directories without any problems. But, after months of
141 struggling, we had to conclude that our goal was impossible.&lt;/p&gt;
142
143 &lt;p&gt;The reason is simply that while SMB can be used for home
144 directories when the file server is Samba running on Unix, this only
145 work because of Samba have some extensions and the fact that the
146 underlying file system is a unix file system. When using a Windows
147 file server, the underlying file system do not have POSIX semantics,
148 and several programs will fail if the users home directory where they
149 want to store their configuration lack POSIX semantics.&lt;/p&gt;
150
151 &lt;p&gt;As part of this work, I wrote a small C program I want to share
152 with you all, to replicate a few of the problematic applications (like
153 OpenOffice.org and GCompris) and see if the file system was working as
154 it should. If you find yourself in spooky file system land, it might
155 help you find your way out again. This is the fs-test.c source:&lt;/p&gt;
156
157 &lt;pre&gt;
158 /*
159 * Some tests to check the file system sematics. Used to verify that
160 * CIFS from a windows server do not work properly as a linux home
161 * directory.
162 * License: GPL v2 or later
163 *
164 * needs libsqlite3-dev and build-essential installed
165 * compile with: gcc -Wall -lsqlite3 -DTEST_SQLITE fs-test.c -o fs-test
166 */
167
168 #define _FILE_OFFSET_BITS 64
169 #define _LARGEFILE_SOURCE 1
170 #define _LARGEFILE64_SOURCE 1
171
172 #define _GNU_SOURCE /* for asprintf() */
173
174 #include &amp;lt;errno.h&gt;
175 #include &amp;lt;fcntl.h&gt;
176 #include &amp;lt;stdio.h&gt;
177 #include &amp;lt;string.h&gt;
178 #include &amp;lt;stdlib.h&gt;
179 #include &amp;lt;sys/file.h&gt;
180 #include &amp;lt;sys/stat.h&gt;
181 #include &amp;lt;sys/types.h&gt;
182 #include &amp;lt;unistd.h&gt;
183
184 #ifdef TEST_SQLITE
185 /*
186 * Test sqlite open, as done by gcompris require the libsqlite3-dev
187 * package and linking with -lsqlite3. A more low level test is
188 * below.
189 * See also &amp;lt;URL: http://www.sqlite.org./faq.html#q5 &gt;.
190 */
191 #include &amp;lt;sqlite3.h&gt;
192 #define CREATE_TABLE_USERS \
193 &quot;CREATE TABLE users (user_id INT UNIQUE, login TEXT, lastname TEXT, firstname TEXT, birthdate TEXT, class_id INT ); &quot;
194 int test_sqlite_open(void) {
195 char *zErrMsg;
196 char *name = &quot;testsqlite.db&quot;;
197 sqlite3 *db=NULL;
198 unlink(name);
199 int rc = sqlite3_open(name, &amp;db);
200 if( rc ){
201 printf(&quot;error: sqlite open of %s failed: %s\n&quot;, name, sqlite3_errmsg(db));
202 sqlite3_close(db);
203 return -1;
204 }
205
206 /* create tables */
207 rc = sqlite3_exec(db,CREATE_TABLE_USERS, NULL, 0, &amp;zErrMsg);
208 if( rc != SQLITE_OK ){
209 printf(&quot;error: sqlite table create failed: %s\n&quot;, zErrMsg);
210 sqlite3_close(db);
211 return -1;
212 }
213 printf(&quot;info: sqlite worked\n&quot;);
214 sqlite3_close(db);
215 return 0;
216 }
217 #endif /* TEST_SQLITE */
218
219 /*
220 * Demonstrate locking issue found in gcompris using sqlite3. This
221 * work with ext3, but not with cifs server on Windows 2003. This is
222 * done in the sqlite3 library.
223 * See also
224 * &amp;lt;URL:http://www.cygwin.com/ml/cygwin/2001-08/msg00854.html&gt; and the
225 * POSIX specification
226 * &amp;lt;URL:http://www.opengroup.org/onlinepubs/009695399/functions/fcntl.html&gt;.
227 */
228 int test_gcompris_locking(void) {
229 struct flock fl;
230 char *name = &quot;testsqlite.db&quot;;
231 unlink(name);
232 int fd = open(name, O_RDWR|O_CREAT|O_LARGEFILE, 0644);
233 printf(&quot;info: testing fcntl locking\n&quot;);
234
235 fl.l_whence = SEEK_SET;
236 fl.l_pid = getpid();
237 printf(&quot; Read-locking 1 byte from 1073741824&quot;);
238 fl.l_start = 1073741824;
239 fl.l_len = 1;
240 fl.l_type = F_RDLCK;
241 if (0 != fcntl(fd, F_SETLK, &amp;fl) ) printf(&quot; - error!\n&quot;); else printf(&quot;\n&quot;);
242
243 printf(&quot; Read-locking 510 byte from 1073741826&quot;);
244 fl.l_start = 1073741826;
245 fl.l_len = 510;
246 fl.l_type = F_RDLCK;
247 if (0 != fcntl(fd, F_SETLK, &amp;fl) ) printf(&quot; - error!\n&quot;); else printf(&quot;\n&quot;);
248
249 printf(&quot; Unlocking 1 byte from 1073741824&quot;);
250 fl.l_start = 1073741824;
251 fl.l_len = 1;
252 fl.l_type = F_UNLCK;
253 if (0 != fcntl(fd, F_SETLK, &amp;fl) ) printf(&quot; - error!\n&quot;); else printf(&quot;\n&quot;);
254
255 printf(&quot; Write-locking 1 byte from 1073741824&quot;);
256 fl.l_start = 1073741824;
257 fl.l_len = 1;
258 fl.l_type = F_WRLCK;
259 if (0 != fcntl(fd, F_SETLK, &amp;fl) ) printf(&quot; - error!\n&quot;); else printf(&quot;\n&quot;);
260
261 printf(&quot; Write-locking 510 byte from 1073741826&quot;);
262 fl.l_start = 1073741826;
263 fl.l_len = 510;
264 if (0 != fcntl(fd, F_SETLK, &amp;fl) ) printf(&quot; - error!\n&quot;); else printf(&quot;\n&quot;);
265
266 printf(&quot; Unlocking 2 byte from 1073741824&quot;);
267 fl.l_start = 1073741824;
268 fl.l_len = 2;
269 fl.l_type = F_UNLCK;
270 if (0 != fcntl(fd, F_SETLK, &amp;fl) ) printf(&quot; - error!\n&quot;); else printf(&quot;\n&quot;);
271
272 close(fd);
273 return 0;
274 }
275
276 /*
277 * Test if permissions of freshly created directories allow entries
278 * below them. This was a problem with OpenOffice.org and gcompris.
279 * Mounting with option &#39;sync&#39; seem to solve this problem while
280 * slowing down file operations.
281 */
282 int test_subdirectory_creation(void) {
283 #define LEVELS 5
284 char *path = strdup(&quot;test&quot;);
285 char *dirs[LEVELS];
286 int level;
287 printf(&quot;info: testing subdirectory creation\n&quot;);
288 for (level = 0; level &amp;lt; LEVELS; level++) {
289 char *newpath = NULL;
290 if (-1 == mkdir(path, 0777)) {
291 printf(&quot; error: Unable to create directory &#39;%s&#39;: %s\n&quot;,
292 path, strerror(errno));
293 break;
294 }
295 asprintf(&amp;newpath, &quot;%s/%s&quot;, path, &quot;test&quot;);
296 free(path);
297 path = newpath;
298 }
299 return 0;
300 }
301
302 /*
303 * Test if symlinks can be created. This was a problem detected with
304 * KDE.
305 */
306 int test_symlinks(void) {
307 printf(&quot;info: testing symlink creation\n&quot;);
308 unlink(&quot;symlink&quot;);
309 if (-1 == symlink(&quot;file&quot;, &quot;symlink&quot;))
310 printf(&quot; error: Unable to create symlink\n&quot;);
311 return 0;
312 }
313
314 int main(int argc, char **argv) {
315 printf(&quot;Testing POSIX/Unix sematics on file system\n&quot;);
316 test_symlinks();
317 test_subdirectory_creation();
318 #ifdef TEST_SQLITE
319 test_sqlite_open();
320 #endif /* TEST_SQLITE */
321 test_gcompris_locking();
322 return 0;
323 }
324 &lt;/pre&gt;
325
326 &lt;p&gt;When everything is working, it should print something like
327 this:&lt;/p&gt;
328
329 &lt;pre&gt;
330 Testing POSIX/Unix sematics on file system
331 info: testing symlink creation
332 info: testing subdirectory creation
333 info: sqlite worked
334 info: testing fcntl locking
335 Read-locking 1 byte from 1073741824
336 Read-locking 510 byte from 1073741826
337 Unlocking 1 byte from 1073741824
338 Write-locking 1 byte from 1073741824
339 Write-locking 510 byte from 1073741826
340 Unlocking 2 byte from 1073741824
341 &lt;/pre&gt;
342
343 &lt;p&gt;I do not remember the exact details of the problems we saw, but one
344 of them was with locking, where if I remember correctly, POSIX allow a
345 read-only lock to be upgraded to a read-write lock without unlocking
346 the read-only lock (while Windows do not). Another was a bug in the
347 CIFS/SMB client implementation in the Linux kernel where directory
348 meta information would be wrong for a fraction of a second, making
349 OpenOffice.org fail to create its deep directory tree because it was
350 not allowed to create files in its freshly created directory.&lt;/p&gt;
351
352 &lt;p&gt;Anyway, here is a nice tool for your tool box, might you never need
353 it. :)&lt;/p&gt;
354 </description>
355 </item>
356
357 <item>
358 <title>Autodetecting Client setup for roaming workstations in Debian Edu</title>
359 <link>http://people.skolelinux.org/pere/blog/Autodetecting_Client_setup_for_roaming_workstations_in_Debian_Edu.html</link>
360 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Autodetecting_Client_setup_for_roaming_workstations_in_Debian_Edu.html</guid>
361 <pubDate>Sat, 7 Aug 2010 14:45:00 +0200</pubDate>
362 <description>
363 &lt;p&gt;A few days ago, I
364 &lt;a href=&quot;http://people.skolelinux.org/pere/blog/Debian_Edu_roaming_workstation___at_the_university_of_Oslo.html&quot;&gt;tried
365 to install&lt;/a&gt; a Roaming workation profile from Debian Edu/Squeeze
366 while on the university network here at the University of Oslo, and
367 noticed how much had to change to get it operational using the
368 university infrastructure. It was fairly easy, but it occured to me
369 that Debian Edu would improve a lot if I could get the client to
370 connect without any changes at all, and thus let the client configure
371 itself during installation and first boot to use the infrastructure
372 around it. Now I am a huge step further along that road.&lt;/p&gt;
373
374 &lt;p&gt;With our current squeeze-test packages, I can select the roaming
375 workstation profile and get a working laptop connecting to the
376 university LDAP server for user and group and our active directory
377 servers for Kerberos authentication. All this without any
378 configuration at all during installation. My users home directory got
379 a bookmark in the KDE menu to mount it via SMB, with the correct URL.
380 In short, openldap and sssd is correctly configured. In addition to
381 this, the client look for http://wpad/wpad.dat to configure a web
382 proxy, and when it fail to find it no proxy settings are stored in
383 /etc/environment and /etc/apt/apt.conf. Iceweasel and KDE is
384 configured to look for the same wpad configuration and also do not use
385 a proxy when at the university network. If the machine is moved to a
386 network with such wpad setup, it would automatically use it when DHCP
387 gave it a IP address.&lt;/p&gt;
388
389 &lt;p&gt;The LDAP server is located using DNS, by first looking for the DNS
390 entry ldap.$domain. If this do not exist, it look for the
391 _ldap._tcp.$domain SRV records and use the first one as the LDAP
392 server. Next, it connects to the LDAP server and search all
393 namingContexts entries for posixAccount or posixGroup objects, and
394 pick the first one as the LDAP base. For Kerberos, a similar
395 algorithm is used to locate the LDAP server, and the realm is the
396 uppercase version of $domain.&lt;/p&gt;
397
398 &lt;p&gt;So, what is not working, you might ask. SMB mounting my home
399 directory do not work. No idea why, but suspected the incorrect
400 Kerberos settings in /etc/krb5.conf and /etc/samba/smb.conf might be
401 the cause. These are not properly configured during installation, and
402 had to be hand-edited to get the correct Kerberos realm and server,
403 but SMB mounting still do not work. :(&lt;/p&gt;
404
405 &lt;p&gt;With this automatic configuration in place, I expect a Debian Edu
406 roaming profile installation would be able to automatically detect and
407 connect to any site using LDAP and Kerberos for NSS directory and PAM
408 authentication. It should also work out of the box in a Active
409 Directory environment providing posixAccount and posixGroup objects
410 with UID and GID values.&lt;/p&gt;
411
412 &lt;p&gt;If you want to help out with implementing these things for Debian
413 Edu, please contact us on debian-edu@lists.debian.org.&lt;/p&gt;
414 </description>
415 </item>
416
417 <item>
418 <title>Debian Edu roaming workstation - at the university of Oslo</title>
419 <link>http://people.skolelinux.org/pere/blog/Debian_Edu_roaming_workstation___at_the_university_of_Oslo.html</link>
420 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Debian_Edu_roaming_workstation___at_the_university_of_Oslo.html</guid>
421 <pubDate>Tue, 3 Aug 2010 23:30:00 +0200</pubDate>
422 <description>
423 &lt;p&gt;The new roaming workstation profile in Debian Edu/Squeeze is fairly
424 similar to the laptop setup am I working on using Ubuntu for the
425 University of Oslo, and just for the heck of it, I tested today how
426 hard it would be to integrate that profile into the university
427 infrastructure. In this case, it is the university LDAP server,
428 Active Directory Kerberos server and SMB mounting from the Netapp file
429 servers.&lt;/p&gt;
430
431 &lt;p&gt;I was pleasantly surprised that the only three files needed to be
432 changed (/etc/sssd/sssd.conf, /etc/ldap.conf and
433 /etc/mklocaluser.d/20-debian-edu-config) and one file had to be added
434 (/usr/share/perl5/Debian/Edu_Local.pm), to get the client working.
435 Most of the changes were to get the client to use the university LDAP
436 for NSS and Kerberos server for PAM, but one was to change a hard
437 coded DNS domain name in the mklocaluser hook from .intern to
438 .uio.no.&lt;/p&gt;
439
440 &lt;p&gt;This testing was so encouraging, that I went ahead and adjusted the
441 Debian Edu scripts and setup in subversion to centralise the roaming
442 workstation setup a bit more and avoid the hardcoded DNS domain name,
443 so that when I test this tomorrow, I expect to get away with modifying
444 only /etc/sssd/sssd.conf and /etc/ldap.conf to get it to use the
445 university servers.&lt;/p&gt;
446
447 &lt;p&gt;My goal is to get the clients to have no hardcoded settings and
448 fetch all their initial setup during installation and first boot, to
449 allow them to be inserted also into environments where the default
450 setup in Debian Edu has been changed or as with the university, where
451 the environment is different but provides the protocols Debian Edu
452 uses.&lt;/p&gt;
453 </description>
454 </item>
455
456 <item>
457 <title>Circular package dependencies harms apt recovery</title>
458 <link>http://people.skolelinux.org/pere/blog/Circular_package_dependencies_harms_apt_recovery.html</link>
459 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Circular_package_dependencies_harms_apt_recovery.html</guid>
460 <pubDate>Tue, 27 Jul 2010 23:50:00 +0200</pubDate>
461 <description>
462 &lt;p&gt;I discovered this while doing
463 &lt;a href=&quot;http://people.skolelinux.org/pere/blog/Automatic_upgrade_testing_from_Lenny_to_Squeeze.html&quot;&gt;automated
464 testing of upgrades from Debian Lenny to Squeeze&lt;/a&gt;. A few packages
465 in Debian still got circular dependencies, and it is often claimed
466 that apt and aptitude should be able to handle this just fine, but
467 some times these dependency loops causes apt to fail.&lt;/p&gt;
468
469 &lt;p&gt;An example is from todays
470 &lt;a href=&quot;http://people.skolelinux.org/~pere/debian-upgrade-testing//test-20100727-lenny-squeeze-kde-aptitude.txt&quot;&gt;upgrade
471 of KDE using aptitude&lt;/a&gt;. In it, a bug in kdebase-workspace-data
472 causes perl-modules to fail to upgrade. The cause is simple. If a
473 package fail to unpack, then only part of packages with the circular
474 dependency might end up being unpacked when unpacking aborts, and the
475 ones already unpacked will fail to configure in the recovery phase
476 because its dependencies are unavailable.&lt;/p&gt;
477
478 &lt;p&gt;In this log, the problem manifest itself with this error:&lt;/p&gt;
479
480 &lt;blockquote&gt;&lt;pre&gt;
481 dpkg: dependency problems prevent configuration of perl-modules:
482 perl-modules depends on perl (&gt;= 5.10.1-1); however:
483 Version of perl on system is 5.10.0-19lenny2.
484 dpkg: error processing perl-modules (--configure):
485 dependency problems - leaving unconfigured
486 &lt;/pre&gt;&lt;/blockquote&gt;
487
488 &lt;p&gt;The perl/perl-modules circular dependency is already
489 &lt;a href=&quot;http://bugs.debian.org/527917&quot;&gt;reported as a bug&lt;/a&gt;, and will
490 hopefully be solved as soon as possible, but it is not the only one,
491 and each one of these loops in the dependency tree can cause similar
492 failures. Of course, they only occur when there are bugs in other
493 packages causing the unpacking to fail, but it is rather nasty when
494 the failure of one package causes the problem to become worse because
495 of dependency loops.&lt;/p&gt;
496
497 &lt;p&gt;Thanks to
498 &lt;a href=&quot;http://lists.debian.org/debian-devel/2010/06/msg00116.html&quot;&gt;the
499 tireless effort by Bill Allombert&lt;/a&gt;, the number of circular
500 dependencies
501 &lt;a href=&quot;http://debian.semistable.com/debgraph.out.html&quot;&gt;left in Debian
502 is dropping&lt;/a&gt;, and perhaps it will reach zero one day. :)&lt;/p&gt;
503
504 &lt;p&gt;Todays testing also exposed a bug in
505 &lt;a href=&quot;http://bugs.debian.org/590605&quot;&gt;update-notifier&lt;/a&gt; and
506 &lt;a href=&quot;http://bugs.debian.org/590604&quot;&gt;different behaviour&lt;/a&gt; between
507 apt-get and aptitude, the latter possibly caused by some circular
508 dependency. Reported both to BTS to try to get someone to look at
509 it.&lt;/p&gt;
510 </description>
511 </item>
512
513 <item>
514 <title>First Debian Edu test release (alpha0) based on Squeeze is released</title>
515 <link>http://people.skolelinux.org/pere/blog/First_Debian_Edu_test_release__alpha0__based_on_Squeeze_is_released.html</link>
516 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/First_Debian_Edu_test_release__alpha0__based_on_Squeeze_is_released.html</guid>
517 <pubDate>Tue, 27 Jul 2010 17:45:00 +0200</pubDate>
518 <description>
519 &lt;p&gt;I just posted this announcement culminating several months of work
520 with the next Debian Edu release. Not nearly done, but one major step
521 completed.&lt;/p&gt;
522
523 &lt;blockquote&gt;
524 &lt;p&gt;This is the first test release based on Squeeze. The focus of this
525 release is to test the user application selection. To have a look,
526 install the standalone profile and let the developers know if the set
527 of installed packages i.e. applications should be modified. If some
528 user application is missing, or if there are some applications that no
529 longer make sense to be included in Debian Edu, please let us know.
530 Also, if a useful application is missing the translation for your
531 language of choice, please let us know too.&lt;/p&gt;
532
533 &lt;p&gt;In addition, feedback and help to polish the desktop (menus,
534 artwork, starters, etc.) is appreciated. We would like to ship a nice
535 and handy KDE4 desktop targeted for schools out of the box.&lt;/p&gt;
536
537 &lt;p&gt;The other profiles should be installable, but there is a lot more
538 work left to be done before they are ready, so do not expect to
539 much.&lt;/p&gt;
540
541 &lt;p&gt;Changes compared to the lenny based version&lt;/p&gt;
542
543 &lt;ul&gt;
544 &lt;li&gt;Everything from Debian Squeeze
545 &lt;ul&gt;
546 &lt;li&gt;Desktop environment KDE 4.4 =&gt; the new KDE desktop in
547 combination with some new artwork
548 &lt;li&gt;Web browser Iceweasel 3.5
549 &lt;li&gt;OpenOffice.org 3.2
550 &lt;li&gt;Educational toolbox GCompris 9.3
551 &lt;li&gt;Music creator Rosegarden 10.04.2
552 &lt;li&gt;Image editor Gimp 2.6.10
553 &lt;li&gt;Virtual universe Celestia 1.6.0
554 &lt;li&gt;Virtual stargazer Stellarium 0.10.4
555 &lt;li&gt;3D modeler Blender 2.49.2 (new application)
556 &lt;li&gt;Video editor Kdenlive 0.7.7 (new application)
557 &lt;/ul&gt;&lt;/li&gt;
558 &lt;li&gt;Now using Kerberos for password checking (migration not finished).
559 Enabled for:
560 &lt;ul&gt;
561 &lt;li&gt;PAM
562 &lt;li&gt;LDAP
563 &lt;li&gt;IMAP
564 &lt;li&gt;SMTP (sender verification)
565 &lt;/ul&gt;
566 &lt;/li&gt;
567 &lt;li&gt;New experimental roaming workstation profile for laptops.&lt;/li&gt;
568 &lt;li&gt;Show welcome page to users when they first log in. The URL is
569 fetched from LDAP.&lt;/li&gt;
570 &lt;li&gt;New LXDE desktop option, in addition to KDE (default) and Gnome.&lt;/li&gt;
571 &lt;li&gt;General cleanup (not finished)&lt;/li&gt;
572 &lt;/ul&gt;
573 &lt;p&gt;The following features are not working as they should&lt;/p&gt;
574
575 &lt;ul&gt;
576 &lt;li&gt;No web based administration tool for creating users and groups. The
577 scripts ldap-createuser-krb and ldap-add-user-to-group can be used
578 for testing.&lt;/li&gt;
579 &lt;li&gt;DVD installs are missing debian-installer images for the PXE boot,
580 and do not set up the PXE menu on eth0 because of this. LTSP
581 clients should still boot from eth1 on thin client servers.&lt;/li&gt;
582 &lt;li&gt;The restructured KDE menu is not implemented.&lt;/li&gt;
583 &lt;li&gt;The LDAP server setup need to be reviewed for security.&lt;/li&gt;
584 &lt;li&gt;The LDAP directory structure need to be reworked.&lt;/li&gt;
585 &lt;li&gt;Different sets of packages are installed when using the DVD and the
586 netinst CD. More packages are installed using the netinst CD.&lt;/li&gt;
587 &lt;li&gt;The jackd package fail to install. This is believed to be caused by
588 some ongoing transition, and hopefully should be solved soon. The
589 jackd1 package can be installed manually for those that need it.&lt;/li&gt;
590 &lt;li&gt;Some packages lack translations. See
591 http://wiki.debian.org/DebianEdu/Status/Squeeze for updated status,
592 and help out with translations.&lt;/li&gt;
593 &lt;/ul&gt;
594
595 &lt;p&gt;To download this multiarch netinstall release you can use&lt;/p&gt;
596
597 &lt;ul&gt;
598 &lt;li&gt;&lt;a href=&quot;ftp://ftp.skolelinux.org/skolelinux-cd/squeeze-alpha/debian-edu-6.0.0+edua0-CD.iso&quot;&gt;ftp://ftp.skolelinux.org/skolelinux-cd/squeeze-alpha/debian-edu-6.0.0+edua0-CD.iso&lt;/a&gt;&lt;/li&gt;
599 &lt;li&gt;&lt;a href=&quot;http://ftp.skolelinux.org/skolelinux-cd/squeeze-alpha/debian-edu-6.0.0+edua0-CD.iso&quot;&gt;http://ftp.skolelinux.org/skolelinux-cd/squeeze-alpha/debian-edu-6.0.0+edua0-CD.iso&lt;/a&gt;&lt;/li&gt;
600 &lt;li&gt;rsync -avzP ftp.skolelinux.org::skolelinux-cd/squeeze-alpha/debian-edu-6.0.0+edua0-CD.iso&lt;/li&gt;
601 &lt;/ul&gt;
602 &lt;p&gt;To download this multiarch dvd release you can use&lt;/p&gt;
603
604 &lt;ul&gt;
605 &lt;li&gt;&lt;a href=&quot;ftp://ftp.skolelinux.org/skolelinux-cd/squeeze-alpha/debian-edu-6.0.0+edua0-DVD.iso&quot;&gt;ftp://ftp.skolelinux.org/skolelinux-cd/squeeze-alpha/debian-edu-6.0.0+edua0-DVD.iso&lt;/a&gt;&lt;/li&gt;
606 &lt;li&gt;&lt;a href=&quot;http://ftp.skolelinux.org/skolelinux-cd/squeeze-alpha/debian-edu-6.0.0+edua0-DVD.iso&quot;&gt;http://ftp.skolelinux.org/skolelinux-cd/squeeze-alpha/debian-edu-6.0.0+edua0-DVD.iso&lt;/a&gt;&lt;/li&gt;
607 &lt;li&gt;rsync -avzP ftp.skolelinux.org::skolelinux-cd/squeeze-alpha/debian-edu-6.0.0+edua0-DVD.iso&lt;/li&gt;
608 &lt;/ul&gt;
609
610 &lt;p&gt;There is no source DVD available yet. It will be prepared when we
611 get closer to the final release.&lt;/p&gt;
612
613 &lt;p&gt;The MD5SUM of these images are&lt;/p&gt;
614
615 &lt;ul&gt;
616 &lt;li&gt;3dbf45d59f42a53518b6e3c9ec3b5eb6 debian-edu-6.0.0+edua0-CD.iso&lt;/li&gt;
617 &lt;li&gt;22f2cbfce281d1c6e478be452638675d debian-edu-6.0.0+edua0-DVD.iso&lt;/li&gt;
618 &lt;/ul&gt;
619
620 &lt;p&gt;The SHA1SUM of these images are&lt;/p&gt;
621 &lt;ul&gt;
622 &lt;li&gt;c53d1b69b40cf37cd27aefaf33f6f6a3821bedf0 debian-edu-6.0.0+edua0-CD.iso&lt;/li&gt;
623 &lt;li&gt;2ec29d7db676d59d32197b05c277ffe16348376c debian-edu-6.0.0+edua0-DVD.iso&lt;/li&gt;
624 &lt;/ul&gt;
625 &lt;p&gt;How to report bugs:
626 http://wiki.debian.org/DebianEdu/HowTo/ReportBugsInBugzilla&lt;/p&gt;
627
628 &lt;p&gt;Please direct replies to debian-edu@lists.debian.org&lt;/p&gt;
629 &lt;/blockquote&gt;
630 </description>
631 </item>
632
633 <item>
634 <title>One step closer to single signon in Debian Edu</title>
635 <link>http://people.skolelinux.org/pere/blog/One_step_closer_to_single_signon_in_Debian_Edu.html</link>
636 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/One_step_closer_to_single_signon_in_Debian_Edu.html</guid>
637 <pubDate>Sun, 25 Jul 2010 10:00:00 +0200</pubDate>
638 <description>
639 &lt;p&gt;The last few months me and the other Debian Edu developers have
640 been working hard to get the Debian/Squeeze based version of Debian
641 Edu/Skolelinux into shape. This future version will use Kerberos for
642 authentication, and services are slowly migrated to single signon,
643 getting rid of password questions one at the time.&lt;/p&gt;
644
645 &lt;p&gt;It will also feature a roaming workstation profile with local home
646 directory, for laptops that are only some times on the Skolelinux
647 network, and for this profile a shortcut is created in Gnome and KDE
648 to gain access to the users home directory on the file server. This
649 shortcut uses SMB at the moment, and yesterday I had time to test if
650 SMB mounting had started working in KDE after we added the cifs-utils
651 package. I was pleasantly surprised how well it worked.&lt;/p&gt;
652
653 &lt;p&gt;Thanks to the recent changes to our samba configuration to get it
654 to use Kerberos for authentication, there were no question about user
655 password when mounting the SMB volume. A simple click on the shortcut
656 in the KDE menu, and a window with the home directory popped
657 up. :)&lt;/p&gt;
658
659 &lt;p&gt;One step closer to a single signon solution out of the box in
660 Debian Edu. We already had PAM, LDAP, IMAP and SMTP in place, and now
661 also Samba. Next step is Cups and hopefully also NFS.&lt;/p&gt;
662
663 &lt;p&gt;We had planned a alpha0 release of Debian Edu for today, but thanks
664 to the autobuilder administrators for some architectures being slow to
665 sign packages, we are still missing the fixed LTSP package we need for
666 the release. It was uploaded three days ago with urgency=high, and if
667 it had entered testing yesterday we would have been able to test it in
668 time for a alpha0 release today. As the binaries for ia64 and powerpc
669 still not uploaded to the Debian archive, we need to delay the alpha
670 release another day.&lt;/p&gt;
671
672 &lt;p&gt;If you want to help out with implementing Kerberos for Debian Edu,
673 please contact us on debian-edu@lists.debian.org.&lt;/p&gt;
674 </description>
675 </item>
676
677 <item>
678 <title>Digitale restriksjonsmekanismer fikk meg til å slutte å kjøpe musikk</title>
679 <link>http://people.skolelinux.org/pere/blog/Digitale_restriksjonsmekanismer_fikk_meg_til____slutte____kj__pe_musikk.html</link>
680 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Digitale_restriksjonsmekanismer_fikk_meg_til____slutte____kj__pe_musikk.html</guid>
681 <pubDate>Thu, 22 Jul 2010 23:50:00 +0200</pubDate>
682 <description>
683 &lt;p&gt;For mange år siden slutte jeg å kjøpe musikk-CDer. Årsaken var at
684 musikkbransjen var godt i gang med å selge platene sine med DRM som
685 gjorde at jeg ikke fikk spilt av musikken jeg kjøpte på utstyret jeg
686 hadde tilgjengelig, dvs. min datamaskin. Det var umulig å se på en
687 plate om den var ødelagt eller ikke, og jeg hadde jo allerede en
688 anseelig samling med plater, så jeg bestemme meg for å slutte å gi
689 penger til en bransje som åpenbart ikke respekterte meg.&lt;/p&gt;
690
691 &lt;p&gt;Jeg har mange titalls dager med musikk på CD i dag. Det meste er
692 lagt i et stort arkiv som kan spilles av fra husets datamaskiner (har
693 ikke rukket rippe alt). Jeg ser dermed ikke behovet for å skaffe mer
694 musikk. De fleste av mine favoritter er i hus, og jeg er dermed godt
695 fornøyd.&lt;/p&gt;
696
697 &lt;p&gt;Hvis musikkbransjen ønsker mine penger, så må de demonstrere at de
698 setter pris på meg som kunde, og ikke skremme meg bort med DRM og
699 antydninger om at kundene er kriminelle.&lt;/p&gt;
700
701 &lt;p&gt;Filmbransjen er like ille, men mens musikk gjerne varer lenge, er
702 filmer mer ferskvare. Har dermed ikke helt sluttet å kjøpe filmer, men
703 holder meg til DVD-filmer som kan spilles av på mine Linuxbokser.
704 Kommer neppe til å ta i bruk Blueray, og ei heller de nye DRM-greiene
705 «Ultraviolet» som be annonsert her om dagen.&lt;/p&gt;
706 </description>
707 </item>
708
709 <item>
710 <title>OpenStreetmap one step closer to having routing on its front page</title>
711 <link>http://people.skolelinux.org/pere/blog/OpenStreetmap_one_step_closer_to_having_routing_on_its_front_page.html</link>
712 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/OpenStreetmap_one_step_closer_to_having_routing_on_its_front_page.html</guid>
713 <pubDate>Sun, 18 Jul 2010 16:45:00 +0200</pubDate>
714 <description>
715 &lt;p&gt;Thanks to
716 &lt;a href=&quot;http://feedproxy.google.com/~r/Opengeodata/~3/wUTCzDZk3lc/project-of-the-week-which-way-home&quot;&gt;todays
717 opengeodata blog entry&lt;/a&gt;, I just discovered that the
718 OpenStreetmap.org site have gotten
719 &lt;a href=&quot;http://nroets.dev.openstreetmap.org/demo/index.html?layers=B000FTFTT&quot;&gt;support
720 for calculating routes&lt;/a&gt;. The support is still experimental and
721 only available from the development server, until more experience is
722 gathered on the user interface and any scalability issues.&lt;/p&gt;
723
724 &lt;p&gt;Earlier, the routing I knew about using the OpenStreetmap.org data
725 was provided by &lt;a href=&quot;http://maps.cloudmade.com/&quot;&gt;Cloudmade&lt;/a&gt;,
726 but having it on the main page is required to make everyone aware of
727 the issue. I&#39;ve had people reject Openstreetmap.org as a viable
728 alternative for them because the front page lacked routing support,
729 and I hope their needs will be catered for when routing show up on the
730 www.openstreetmap.org front page.&lt;/p&gt;
731 </description>
732 </item>
733
734 <item>
735 <title>What are they searching for - PowerDNS and ISC DHCP in LDAP</title>
736 <link>http://people.skolelinux.org/pere/blog/What_are_they_searching_for___PowerDNS_and_ISC_DHCP_in_LDAP.html</link>
737 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/What_are_they_searching_for___PowerDNS_and_ISC_DHCP_in_LDAP.html</guid>
738 <pubDate>Sat, 17 Jul 2010 21:00:00 +0200</pubDate>
739 <description>
740 &lt;p&gt;This is a
741 &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;
742 on my
743 &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
744 work&lt;/a&gt; on
745 &lt;a href=&quot;http://people.skolelinux.org/pere/blog/Combining_PowerDNS_and_ISC_DHCP_LDAP_objects.html&quot;&gt;merging
746 all&lt;/a&gt; the computer related LDAP objects in Debian Edu.&lt;/p&gt;
747
748 &lt;p&gt;As a step to try to see if it possible to merge the DNS and DHCP
749 LDAP objects, I have had a look at how the packages pdns-backend-ldap
750 and dhcp3-server-ldap in Debian use the LDAP server. The two
751 implementations are quite different in how they use LDAP.&lt;/p&gt;
752
753 To get this information, I started slapd with debugging enabled and
754 dumped the debug output to a file to get the LDAP searches performed
755 on a Debian Edu main-server. Here is a summary.
756
757 &lt;p&gt;&lt;strong&gt;powerdns&lt;/strong&gt;&lt;/p&gt;
758
759 &lt;a href=&quot;http://www.linuxnetworks.de/doc/index.php/PowerDNS_LDAP_Backend&quot;&gt;Clues
760 on how to&lt;/a&gt; set up PowerDNS to use a LDAP backend is available on
761 the web.
762
763 &lt;p&gt;PowerDNS have two modes of operation using LDAP as its backend.
764 One &quot;strict&quot; mode where the forward and reverse DNS lookups are done
765 using the same LDAP objects, and a &quot;tree&quot; mode where the forward and
766 reverse entries are in two different subtrees in LDAP with a structure
767 based on the DNS names, as in tjener.intern and
768 2.2.0.10.in-addr.arpa.&lt;/p&gt;
769
770 &lt;p&gt;In tree mode, the server is set up to use a LDAP subtree as its
771 base, and uses a &quot;base&quot; scoped search for the DNS name by adding
772 &quot;dc=tjener,dc=intern,&quot; to the base with a filter for
773 &quot;(associateddomain=tjener.intern)&quot; for the forward entry and
774 &quot;dc=2,dc=2,dc=0,dc=10,dc=in-addr,dc=arpa,&quot; with a filter for
775 &quot;(associateddomain=2.2.0.10.in-addr.arpa)&quot; for the reverse entry. For
776 forward entries, it is looking for attributes named dnsttl, arecord,
777 nsrecord, cnamerecord, soarecord, ptrrecord, hinforecord, mxrecord,
778 txtrecord, rprecord, afsdbrecord, keyrecord, aaaarecord, locrecord,
779 srvrecord, naptrrecord, kxrecord, certrecord, dsrecord, sshfprecord,
780 ipseckeyrecord, rrsigrecord, nsecrecord, dnskeyrecord, dhcidrecord,
781 spfrecord and modifytimestamp. For reverse entries it is looking for
782 the attributes dnsttl, arecord, nsrecord, cnamerecord, soarecord,
783 ptrrecord, hinforecord, mxrecord, txtrecord, rprecord, aaaarecord,
784 locrecord, srvrecord, naptrrecord and modifytimestamp. The equivalent
785 ldapsearch commands could look like this:&lt;/p&gt;
786
787 &lt;blockquote&gt;&lt;pre&gt;
788 ldapsearch -h ldap \
789 -b dc=tjener,dc=intern,ou=hosts,dc=skole,dc=skolelinux,dc=no \
790 -s base -x &#39;(associateddomain=tjener.intern)&#39; dNSTTL aRecord nSRecord \
791 cNAMERecord sOARecord pTRRecord hInfoRecord mXRecord tXTRecord \
792 rPRecord aFSDBRecord KeyRecord aAAARecord lOCRecord sRVRecord \
793 nAPTRRecord kXRecord certRecord dSRecord sSHFPRecord iPSecKeyRecord \
794 rRSIGRecord nSECRecord dNSKeyRecord dHCIDRecord sPFRecord modifyTimestamp
795
796 ldapsearch -h ldap \
797 -b dc=2,dc=2,dc=0,dc=10,dc=in-addr,dc=arpa,ou=hosts,dc=skole,dc=skolelinux,dc=no \
798 -s base -x &#39;(associateddomain=2.2.0.10.in-addr.arpa)&#39;
799 dnsttl, arecord, nsrecord, cnamerecord soarecord ptrrecord \
800 hinforecord mxrecord txtrecord rprecord aaaarecord locrecord \
801 srvrecord naptrrecord modifytimestamp
802 &lt;/pre&gt;&lt;/blockquote&gt;
803
804 &lt;p&gt;In Debian Edu/Lenny, the PowerDNS tree mode is used with
805 ou=hosts,dc=skole,dc=skolelinux,dc=no as the base, and these are two
806 example LDAP objects used there. In addition to these objects, the
807 parent objects all th way up to ou=hosts,dc=skole,dc=skolelinux,dc=no
808 also exist.&lt;/p&gt;
809
810 &lt;blockquote&gt;&lt;pre&gt;
811 dn: dc=tjener,dc=intern,ou=hosts,dc=skole,dc=skolelinux,dc=no
812 objectclass: top
813 objectclass: dnsdomain
814 objectclass: domainrelatedobject
815 dc: tjener
816 arecord: 10.0.2.2
817 associateddomain: tjener.intern
818
819 dn: dc=2,dc=2,dc=0,dc=10,dc=in-addr,dc=arpa,ou=hosts,dc=skole,dc=skolelinux,dc=no
820 objectclass: top
821 objectclass: dnsdomain2
822 objectclass: domainrelatedobject
823 dc: 2
824 ptrrecord: tjener.intern
825 associateddomain: 2.2.0.10.in-addr.arpa
826 &lt;/pre&gt;&lt;/blockquote&gt;
827
828 &lt;p&gt;In strict mode, the server behaves differently. When looking for
829 forward DNS entries, it is doing a &quot;subtree&quot; scoped search with the
830 same base as in the tree mode for a object with filter
831 &quot;(associateddomain=tjener.intern)&quot; and requests the attributes dnsttl,
832 arecord, nsrecord, cnamerecord, soarecord, ptrrecord, hinforecord,
833 mxrecord, txtrecord, rprecord, aaaarecord, locrecord, srvrecord,
834 naptrrecord and modifytimestamp. For reverse entires it also do a
835 subtree scoped search but this time the filter is &quot;(arecord=10.0.2.2)&quot;
836 and the requested attributes are associateddomain, dnsttl and
837 modifytimestamp. In short, in strict mode the objects with ptrrecord
838 go away, and the arecord attribute in the forward object is used
839 instead.&lt;/p&gt;
840
841 &lt;p&gt;The forward and reverse searches can be simulated using ldapsearch
842 like this:&lt;/p&gt;
843
844 &lt;blockquote&gt;&lt;pre&gt;
845 ldapsearch -h ldap -b ou=hosts,dc=skole,dc=skolelinux,dc=no -s sub -x \
846 &#39;(associateddomain=tjener.intern)&#39; dNSTTL aRecord nSRecord \
847 cNAMERecord sOARecord pTRRecord hInfoRecord mXRecord tXTRecord \
848 rPRecord aFSDBRecord KeyRecord aAAARecord lOCRecord sRVRecord \
849 nAPTRRecord kXRecord certRecord dSRecord sSHFPRecord iPSecKeyRecord \
850 rRSIGRecord nSECRecord dNSKeyRecord dHCIDRecord sPFRecord modifyTimestamp
851
852 ldapsearch -h ldap -b ou=hosts,dc=skole,dc=skolelinux,dc=no -s sub -x \
853 &#39;(arecord=10.0.2.2)&#39; associateddomain dnsttl modifytimestamp
854 &lt;/pre&gt;&lt;/blockquote&gt;
855
856 &lt;p&gt;In addition to the forward and reverse searches , there is also a
857 search for SOA records, which behave similar to the forward and
858 reverse lookups.&lt;/p&gt;
859
860 &lt;p&gt;A thing to note with the PowerDNS behaviour is that it do not
861 specify any objectclass names, and instead look for the attributes it
862 need to generate a DNS reply. This make it able to work with any
863 objectclass that provide the needed attributes.&lt;/p&gt;
864
865 &lt;p&gt;The attributes are normally provided in the cosine (RFC 1274) and
866 dnsdomain2 schemas. The latter is used for reverse entries like
867 ptrrecord and recent DNS additions like aaaarecord and srvrecord.&lt;/p&gt;
868
869 &lt;p&gt;In Debian Edu, we have created DNS objects using the object classes
870 dcobject (for dc), dnsdomain or dnsdomain2 (structural, for the DNS
871 attributes) and domainrelatedobject (for associatedDomain). The use
872 of structural object classes make it impossible to combine these
873 classes with the object classes used by DHCP.&lt;/p&gt;
874
875 &lt;p&gt;There are other schemas that could be used too, for example the
876 dnszone structural object class used by Gosa and bind-sdb for the DNS
877 attributes combined with the domainrelatedobject object class, but in
878 this case some unused attributes would have to be included as well
879 (zonename and relativedomainname).&lt;/p&gt;
880
881 &lt;p&gt;My proposal for Debian Edu would be to switch PowerDNS to strict
882 mode and not use any of the existing objectclasses (dnsdomain,
883 dnsdomain2 and dnszone) when one want to combine the DNS information
884 with DHCP information, and instead create a auxiliary object class
885 defined something like this (using the attributes defined for
886 dnsdomain and dnsdomain2 or dnszone):&lt;/p&gt;
887
888 &lt;blockquote&gt;&lt;pre&gt;
889 objectclass ( some-oid NAME &#39;dnsDomainAux&#39;
890 SUP top
891 AUXILIARY
892 MAY ( ARecord $ MDRecord $ MXRecord $ NSRecord $ SOARecord $ CNAMERecord $
893 DNSTTL $ DNSClass $ PTRRecord $ HINFORecord $ MINFORecord $
894 TXTRecord $ SIGRecord $ KEYRecord $ AAAARecord $ LOCRecord $
895 NXTRecord $ SRVRecord $ NAPTRRecord $ KXRecord $ CERTRecord $
896 A6Record $ DNAMERecord
897 ))
898 &lt;/pre&gt;&lt;/blockquote&gt;
899
900 &lt;p&gt;This will allow any object to become a DNS entry when combined with
901 the domainrelatedobject object class, and allow any entity to include
902 all the attributes PowerDNS wants. I&#39;ve sent an email to the PowerDNS
903 developers asking for their view on this schema and if they are
904 interested in providing such schema with PowerDNS, and I hope my
905 message will be accepted into their mailing list soon.&lt;/p&gt;
906
907 &lt;p&gt;&lt;strong&gt;ISC dhcp&lt;/strong&gt;&lt;/p&gt;
908
909 &lt;p&gt;The DHCP server searches for specific objectclass and requests all
910 the object attributes, and then uses the attributes it want. This
911 make it harder to figure out exactly what attributes are used, but
912 thanks to the working example in Debian Edu I can at least get an idea
913 what is needed without having to read the source code.&lt;/p&gt;
914
915 &lt;p&gt;In the DHCP server configuration, the LDAP base to use and the
916 search filter to use to locate the correct dhcpServer entity is
917 stored. These are the relevant entries from
918 /etc/dhcp3/dhcpd.conf:&lt;/p&gt;
919
920 &lt;blockquote&gt;&lt;pre&gt;
921 ldap-base-dn &quot;dc=skole,dc=skolelinux,dc=no&quot;;
922 ldap-dhcp-server-cn &quot;dhcp&quot;;
923 &lt;/pre&gt;&lt;/blockquote&gt;
924
925 &lt;p&gt;The DHCP server uses this information to nest all the DHCP
926 configuration it need. The cn &quot;dhcp&quot; is located using the given LDAP
927 base and the filter &quot;(&amp;(objectClass=dhcpServer)(cn=dhcp))&quot;. The
928 search result is this entry:&lt;/p&gt;
929
930 &lt;blockquote&gt;&lt;pre&gt;
931 dn: cn=dhcp,dc=skole,dc=skolelinux,dc=no
932 cn: dhcp
933 objectClass: top
934 objectClass: dhcpServer
935 dhcpServiceDN: cn=DHCP Config,dc=skole,dc=skolelinux,dc=no
936 &lt;/pre&gt;&lt;/blockquote&gt;
937
938 &lt;p&gt;The content of the dhcpServiceDN attribute is next used to locate the
939 subtree with DHCP configuration. The DHCP configuration subtree base
940 is located using a base scope search with base &quot;cn=DHCP
941 Config,dc=skole,dc=skolelinux,dc=no&quot; and filter
942 &quot;(&amp;(objectClass=dhcpService)(|(dhcpPrimaryDN=cn=dhcp,dc=skole,dc=skolelinux,dc=no)(dhcpSecondaryDN=cn=dhcp,dc=skole,dc=skolelinux,dc=no)))&quot;.
943 The search result is this entry:&lt;/p&gt;
944
945 &lt;blockquote&gt;&lt;pre&gt;
946 dn: cn=DHCP Config,dc=skole,dc=skolelinux,dc=no
947 cn: DHCP Config
948 objectClass: top
949 objectClass: dhcpService
950 objectClass: dhcpOptions
951 dhcpPrimaryDN: cn=dhcp, dc=skole,dc=skolelinux,dc=no
952 dhcpStatements: ddns-update-style none
953 dhcpStatements: authoritative
954 dhcpOption: smtp-server code 69 = array of ip-address
955 dhcpOption: www-server code 72 = array of ip-address
956 dhcpOption: wpad-url code 252 = text
957 &lt;/pre&gt;&lt;/blockquote&gt;
958
959 &lt;p&gt;Next, the entire subtree is processed, one level at the time. When
960 all the DHCP configuration is loaded, it is ready to receive requests.
961 The subtree in Debian Edu contain objects with object classes
962 top/dhcpService/dhcpOptions, top/dhcpSharedNetwork/dhcpOptions,
963 top/dhcpSubnet, top/dhcpGroup and top/dhcpHost. These provide options
964 and information about netmasks, dynamic range etc. Leaving out the
965 details here because it is not relevant for the focus of my
966 investigation, which is to see if it is possible to merge dns and dhcp
967 related computer objects.&lt;/p&gt;
968
969 &lt;p&gt;When a DHCP request come in, LDAP is searched for the MAC address
970 of the client (00:00:00:00:00:00 in this example), using a subtree
971 scoped search with &quot;cn=DHCP Config,dc=skole,dc=skolelinux,dc=no&quot; as
972 the base and &quot;(&amp;(objectClass=dhcpHost)(dhcpHWAddress=ethernet
973 00:00:00:00:00:00))&quot; as the filter. This is what a host object look
974 like:&lt;/p&gt;
975
976 &lt;blockquote&gt;&lt;pre&gt;
977 dn: cn=hostname,cn=group1,cn=THINCLIENTS,cn=DHCP Config,dc=skole,dc=skolelinux,dc=no
978 cn: hostname
979 objectClass: top
980 objectClass: dhcpHost
981 dhcpHWAddress: ethernet 00:00:00:00:00:00
982 dhcpStatements: fixed-address hostname
983 &lt;/pre&gt;&lt;/blockquote&gt;
984
985 &lt;p&gt;There is less flexiblity in the way LDAP searches are done here.
986 The object classes need to have fixed names, and the configuration
987 need to be stored in a fairly specific LDAP structure. On the
988 positive side, the invidiual dhcpHost entires can be anywhere without
989 the DN pointed to by the dhcpServer entries. The latter should make
990 it possible to group all host entries in a subtree next to the
991 configuration entries, and this subtree can also be shared with the
992 DNS server if the schema proposed above is combined with the dhcpHost
993 structural object class.
994
995 &lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/p&gt;
996
997 &lt;p&gt;The PowerDNS implementation seem to be very flexible when it come
998 to which LDAP schemas to use. While its &quot;tree&quot; mode is rigid when it
999 come to the the LDAP structure, the &quot;strict&quot; mode is very flexible,
1000 allowing DNS objects to be stored anywhere under the base cn specified
1001 in the configuration.&lt;/p&gt;
1002
1003 &lt;p&gt;The DHCP implementation on the other hand is very inflexible, both
1004 regarding which LDAP schemas to use and which LDAP structure to use.
1005 I guess one could implement ones own schema, as long as the
1006 objectclasses and attributes have the names used, but this do not
1007 really help when the DHCP subtree need to have a fairly fixed
1008 structure.&lt;/p&gt;
1009
1010 &lt;p&gt;Based on the observed behaviour, I suspect a LDAP structure like
1011 this might work for Debian Edu:&lt;/p&gt;
1012
1013 &lt;blockquote&gt;&lt;pre&gt;
1014 ou=services
1015 cn=machine-info (dhcpService) - dhcpServiceDN points here
1016 cn=dhcp (dhcpServer)
1017 cn=dhcp-internal (dhcpSharedNetwork/dhcpOptions)
1018 cn=10.0.2.0 (dhcpSubnet)
1019 cn=group1 (dhcpGroup/dhcpOptions)
1020 cn=dhcp-thinclients (dhcpSharedNetwork/dhcpOptions)
1021 cn=192.168.0.0 (dhcpSubnet)
1022 cn=group1 (dhcpGroup/dhcpOptions)
1023 ou=machines - PowerDNS base points here
1024 cn=hostname (dhcpHost/domainrelatedobject/dnsDomainAux)
1025 &lt;/pre&gt;&lt;/blockquote&gt;
1026
1027 &lt;P&gt;This is not tested yet. If the DHCP server require the dhcpHost
1028 entries to be in the dhcpGroup subtrees, the entries can be stored
1029 there instead of a common machines subtree, and the PowerDNS base
1030 would have to be moved one level up to the machine-info subtree.&lt;/p&gt;
1031
1032 &lt;p&gt;The combined object under the machines subtree would look something
1033 like this:&lt;/p&gt;
1034
1035 &lt;blockquote&gt;&lt;pre&gt;
1036 dn: dc=hostname,ou=machines,cn=machine-info,dc=skole,dc=skolelinux,dc=no
1037 dc: hostname
1038 objectClass: top
1039 objectClass: dhcpHost
1040 objectclass: domainrelatedobject
1041 objectclass: dnsDomainAux
1042 associateddomain: hostname.intern
1043 arecord: 10.11.12.13
1044 dhcpHWAddress: ethernet 00:00:00:00:00:00
1045 dhcpStatements: fixed-address hostname.intern
1046 &lt;/pre&gt;&lt;/blockquote&gt;
1047
1048 &lt;/p&gt;One could even add the LTSP configuration associated with a given
1049 machine, as long as the required attributes are available in a
1050 auxiliary object class.&lt;/p&gt;
1051 </description>
1052 </item>
1053
1054 </channel>
1055 </rss>