]> pere.pagekite.me Git - homepage.git/blob - blog/index.rss
New entry about LDAP.
[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>Idea for storing LTSP configuration in LDAP</title>
11 <link>http://people.skolelinux.org/pere/blog/Idea_for_storing_LTSP_configuration_in_LDAP.html</link>
12 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Idea_for_storing_LTSP_configuration_in_LDAP.html</guid>
13 <pubDate>Sun, 11 Jul 2010 22:00:00 +0200</pubDate>
14 <description>
15 &lt;p&gt;Vagrant mentioned on IRC today that ltsp_config now support
16 sourcing files from /usr/share/ltsp/ltsp_config.d/ on the thin
17 clients, and that this can be used to fetch configuration from LDAP if
18 Debian Edu choose to store configuration there.&lt;/p&gt;
19
20 &lt;p&gt;Armed with this information, I got inspired and wrote a test module
21 to get configuration from LDAP. The idea is to look up the MAC
22 address of the client in LDAP, and look for attributes on the form
23 ltspconfigsetting=value, and use this to export SETTING=value to the
24 LTSP clients.&lt;/p&gt;
25
26 &lt;p&gt;The goal is to be able to store the LTSP configuration attributes
27 in a &quot;computer&quot; LDAP object used by both DNS and DHCP, and thus
28 allowing us to store all information about a computer in one place.&lt;/p&gt;
29
30 &lt;p&gt;This is a untested draft implementation, and I welcome feedback on
31 this approach. A real LDAP schema for the ltspClientAux objectclass
32 need to be written. Comments, suggestions, etc?&lt;/p&gt;
33
34 &lt;blockquote&gt;&lt;pre&gt;
35 # Store in /opt/ltsp/$arch/usr/share/ltsp/ltsp_config.d/ldap-config
36 #
37 # Fetch LTSP client settings from LDAP based on MAC address
38 #
39 # Uses ethernet address as stored in the dhcpHost objectclass using
40 # the dhcpHWAddress attribute or ethernet address stored in the
41 # ieee802Device objectclass with the macAddress attribute.
42 #
43 # This module is written to be schema agnostic, and only depend on the
44 # existence of attribute names.
45 #
46 # The LTSP configuration variables are saved directly using a
47 # ltspConfig prefix and uppercasing the rest of the attribute name.
48 # To set the SERVER variable, set the ltspConfigServer attribute.
49 #
50 # Some LDAP schema should be created with all the relevant
51 # configuration settings. Something like this should work:
52 #
53 # objectclass ( 1.1.2.2 NAME &#39;ltspClientAux&#39;
54 # SUP top
55 # AUXILIARY
56 # MAY ( ltspConfigServer $ ltsConfigSound $ ... )
57
58 LDAPSERVER=$(debian-edu-ldapserver)
59 if [ &quot;$LDAPSERVER&quot; ] ; then
60 LDAPBASE=$(debian-edu-ldapserver -b)
61 for MAC in $(LANG=C ifconfig |grep -i hwaddr| awk &#39;{print $5}&#39;|sort -u) ; do
62 filter=&quot;(|(dhcpHWAddress=ethernet $MAC)(macAddress=$MAC))&quot;
63 ldapsearch -h &quot;$LDAPSERVER&quot; -b &quot;$LDAPBASE&quot; -v -x &quot;$filter&quot; | \
64 grep &#39;^ltspConfig&#39; | while read attr value ; do
65 # Remove prefix and convert to upper case
66 attr=$(echo $attr | sed &#39;s/^ltspConfig//i&#39; | tr a-z A-Z)
67 # bass value on to clients
68 eval &quot;$attr=$value; export $attr&quot;
69 done
70 done
71 fi
72 &lt;/pre&gt;&lt;/blockquote&gt;
73
74 &lt;p&gt;I&#39;m not sure this shell construction will work, because I suspect
75 the while block might end up in a subshell causing the variables set
76 there to not show up in ltsp-config, but if that is the case I am sure
77 the code can be restructured to make sure the variables are passed on.
78 I expect that can be solved with some testing. :)&lt;/p&gt;
79
80 &lt;p&gt;If you want to help out with implementing this for Debian Edu,
81 please contact us on debian-edu@lists.debian.org.&lt;/p&gt;
82 </description>
83 </item>
84
85 <item>
86 <title>jXplorer, a very nice LDAP GUI</title>
87 <link>http://people.skolelinux.org/pere/blog/jXplorer__a_very_nice_LDAP_GUI.html</link>
88 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/jXplorer__a_very_nice_LDAP_GUI.html</guid>
89 <pubDate>Fri, 9 Jul 2010 12:55:00 +0200</pubDate>
90 <description>
91 &lt;p&gt;Since
92 &lt;a href=&quot;http://people.skolelinux.org/pere/blog/LUMA__a_very_nice_LDAP_GUI.html&quot;&gt;my
93 last post&lt;/a&gt; about available LDAP tools in Debian, I was told about a
94 LDAP GUI that is even better than luma. The java application
95 &lt;a href=&quot;http://jxplorer.org/&quot;&gt;jXplorer&lt;/a&gt; is claimed to be capable of
96 moving LDAP objects and subtrees using drag-and-drop, and can
97 authenticate using Kerberos. I have only tested the Kerberos
98 authentication, but do not have a LDAP setup allowing me to rewrite
99 LDAP with my test user yet. It is
100 &lt;a href=&quot;http://packages.qa.debian.org/j/jxplorer.html&quot;&gt;available in
101 Debian&lt;/a&gt; testing and unstable at the moment. The only problem I
102 have with it is how it handle errors. If something go wrong, its
103 non-intuitive behaviour require me to go through some query work list
104 and remove the failing query. Nothing big, but very annoying.&lt;/p&gt;
105 </description>
106 </item>
107
108 <item>
109 <title>MS Word krøller det til for politiet?</title>
110 <link>http://people.skolelinux.org/pere/blog/MS_Word_kr__ller_det_til_for_politiet_.html</link>
111 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/MS_Word_kr__ller_det_til_for_politiet_.html</guid>
112 <pubDate>Thu, 8 Jul 2010 14:00:00 +0200</pubDate>
113 <description>
114 &lt;p&gt;De siste dagene har Aftenposten
115 &lt;a href=&quot;http://www.aftenposten.no/nyheter/iriks/article3718597.ece&quot;&gt;fortalt&lt;/a&gt;
116 &lt;a href=&quot;http://www.aftenposten.no/nyheter/iriks/article3724249.ece&quot;&gt;hvordan&lt;/a&gt;
117 politet har brukt skriveverktøy som ikke håndterer arabisk tekst og
118 tekst som skal skrives fra høyre mot venstre når de har laget
119 løpeseddel for å be om informasjon fra publikum. Resultatet har vært
120 en uleselig arabisk-bit på løpeseddelen. Feilen har oppstått når
121 teksten har blitt &quot;kopiert inn i programvare som ikke har støtte for
122 språk som skrives fra høyre mot venstre&quot;, og jeg er ganske sikker på
123 at det er snakk om Microsoft Office i dette tilfellet. Er det slik at
124 MS Office i norsk språkdrakt ikke har støtte for tekst som skal
125 skrives fra høyre mot venstre? Jeg tror alle utgaver av
126 OpenOffice.org har slik støtte, og det er jo ikke veldig vanskelig å
127 la slik støtte finnes i alle utgaver av et program hvis støtten først
128 er utviklet. Aftenpostens melding får meg til å undre om problemet
129 ville vært unngått hvis politiet brukte OpenOffice.org i stedet for MS
130 Office.&lt;/p&gt;
131
132 &lt;p&gt;Mon tro om det er flere eksempler på at MS Office har ødelagt for
133 offentlig myndighet?&lt;/p&gt;
134 </description>
135 </item>
136
137 <item>
138 <title>Lenny-&gt;Squeeze upgrades, apt vs aptitude with the Gnome desktop</title>
139 <link>http://people.skolelinux.org/pere/blog/Lenny__Squeeze_upgrades__apt_vs_aptitude_with_the_Gnome_desktop.html</link>
140 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Lenny__Squeeze_upgrades__apt_vs_aptitude_with_the_Gnome_desktop.html</guid>
141 <pubDate>Sat, 3 Jul 2010 23:55:00 +0200</pubDate>
142 <description>
143 &lt;p&gt;Here is a short update on my &lt;a
144 href=&quot;http://people.skolelinux.org/~pere/debian-upgrade-testing/&quot;&gt;my
145 Debian Lenny-&gt;Squeeze upgrade testing&lt;/a&gt;. Here is a summary of the
146 difference for Gnome when it is upgraded by apt-get and aptitude. I&#39;m
147 not reporting the status for KDE, because the upgrade crashes when
148 aptitude try because of missing conflicts
149 (&lt;a href=&quot;http://bugs.debian.org/584861&quot;&gt;#584861&lt;/a&gt; and
150 &lt;a href=&quot;http://bugs.debian.org/585716&quot;&gt;#585716&lt;/a&gt;).&lt;/p&gt;
151
152 &lt;p&gt;At the end of the upgrade test script, dpkg -l is executed to get a
153 complete list of the installed packages. Based on this I see these
154 differences when I did a test run today. As usual, I do not really
155 know what the correct set of packages would be, but thought it best to
156 publish the difference.&lt;/p&gt;
157
158 &lt;p&gt;Installed using apt-get, missing with aptitude&lt;/p&gt;
159
160 &lt;blockquote&gt;&lt;p&gt;
161 at-spi cpp-4.3 finger gnome-spell gstreamer0.10-gnomevfs
162 libatspi1.0-0 libcupsys2 libeel2-data libgail-common libgdl-1-common
163 libgnomeprint2.2-data libgnomeprintui2.2-common libgnomevfs2-bin
164 libgtksourceview-common libpt-1.10.10-plugins-alsa
165 libpt-1.10.10-plugins-v4l libservlet2.4-java libxalan2-java
166 libxerces2-java openoffice.org-writer2latex openssl-blacklist p7zip
167 python-4suite-xml python-eggtrayicon python-gtkhtml2
168 python-gtkmozembed svgalibg1 xserver-xephyr zip
169 &lt;/p&gt;&lt;/blockquote&gt;
170
171 &lt;p&gt;Installed using apt-get, removed with aptitude&lt;/p&gt;
172
173 &lt;blockquote&gt;&lt;p&gt;
174 bluez-utils dhcdbd djvulibre-desktop epiphany-gecko
175 gnome-app-install gnome-mount gnome-vfs-obexftp gnome-volume-manager
176 libao2 libavahi-compat-libdnssd1 libavahi-core5 libbind9-50
177 libbluetooth2 libcamel1.2-11 libcdio7 libcucul0 libcurl3
178 libdirectfb-1.0-0 libdvdread3 libedata-cal1.2-6 libedataserver1.2-9
179 libeel2-2.20 libepc-1.0-1 libepc-ui-1.0-1 libexchange-storage1.2-3
180 libfaad0 libgd2-noxpm libgda3-3 libgda3-common libggz2 libggzcore9
181 libggzmod4 libgksu1.2-0 libgksuui1.0-1 libgmyth0 libgnome-desktop-2
182 libgnome-pilot2 libgnomecups1.0-1 libgnomeprint2.2-0
183 libgnomeprintui2.2-0 libgpod3 libgraphviz4 libgtkhtml2-0
184 libgtksourceview1.0-0 libgucharmap6 libhesiod0 libicu38 libisccc50
185 libisccfg50 libiw29 libkpathsea4 libltdl3 liblwres50 libmagick++10
186 libmagick10 libmalaga7 libmtp7 libmysqlclient15off libnautilus-burn4
187 libneon27 libnm-glib0 libnm-util0 libopal-2.2 libosp5
188 libparted1.8-10 libpisock9 libpisync1 libpoppler-glib3 libpoppler3
189 libpt-1.10.10 libraw1394-8 libsensors3 libsmbios2 libsoup2.2-8
190 libssh2-1 libsuitesparse-3.1.0 libswfdec-0.6-90 libtalloc1
191 libtotem-plparser10 libtrackerclient0 libvoikko1 libxalan2-java-gcj
192 libxerces2-java-gcj libxklavier12 libxtrap6 libxxf86misc1 libzephyr3
193 mysql-common swfdec-gnome totem-gstreamer wodim
194 &lt;/p&gt;&lt;/blockquote&gt;
195
196 &lt;p&gt;Installed using aptitude, missing with apt-get&lt;/p&gt;
197
198 &lt;blockquote&gt;&lt;p&gt;
199 gnome gnome-desktop-environment hamster-applet python-gnomeapplet
200 python-gnomekeyring python-wnck rhythmbox-plugins xorg
201 xserver-xorg-input-all xserver-xorg-input-evdev
202 xserver-xorg-input-kbd xserver-xorg-input-mouse
203 xserver-xorg-input-synaptics xserver-xorg-video-all
204 xserver-xorg-video-apm xserver-xorg-video-ark xserver-xorg-video-ati
205 xserver-xorg-video-chips xserver-xorg-video-cirrus
206 xserver-xorg-video-dummy xserver-xorg-video-fbdev
207 xserver-xorg-video-glint xserver-xorg-video-i128
208 xserver-xorg-video-i740 xserver-xorg-video-mach64
209 xserver-xorg-video-mga xserver-xorg-video-neomagic
210 xserver-xorg-video-nouveau xserver-xorg-video-nv
211 xserver-xorg-video-r128 xserver-xorg-video-radeon
212 xserver-xorg-video-radeonhd xserver-xorg-video-rendition
213 xserver-xorg-video-s3 xserver-xorg-video-s3virge
214 xserver-xorg-video-savage xserver-xorg-video-siliconmotion
215 xserver-xorg-video-sis xserver-xorg-video-sisusb
216 xserver-xorg-video-tdfx xserver-xorg-video-tga
217 xserver-xorg-video-trident xserver-xorg-video-tseng
218 xserver-xorg-video-vesa xserver-xorg-video-vmware
219 xserver-xorg-video-voodoo
220 &lt;/p&gt;&lt;/blockquote&gt;
221
222 &lt;p&gt;Installed using aptitude, removed with apt-get&lt;/p&gt;
223
224 &lt;blockquote&gt;&lt;p&gt;
225 deskbar-applet xserver-xorg xserver-xorg-core
226 xserver-xorg-input-wacom xserver-xorg-video-intel
227 xserver-xorg-video-openchrome
228 &lt;/p&gt;&lt;/blockquote&gt;
229
230 &lt;p&gt;I was told on IRC that the xorg-xserver package was
231 &lt;a href=&quot;http://git.debian.org/?p=pkg-xorg/xserver/xorg-server.git;a=commit;h=9c8080d06c457932d3bfec021c69ac000aa60120&quot;&gt;changed
232 in git&lt;/a&gt; today to try to get apt-get to not remove xorg completely.
233 No idea when it hits Squeeze, but when it does I hope it will reduce
234 the difference somewhat.
235 </description>
236 </item>
237
238 <item>
239 <title>Caching password, user and group on a roaming Debian laptop</title>
240 <link>http://people.skolelinux.org/pere/blog/Caching_password__user_and_group_on_a_roaming_Debian_laptop.html</link>
241 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Caching_password__user_and_group_on_a_roaming_Debian_laptop.html</guid>
242 <pubDate>Thu, 1 Jul 2010 11:40:00 +0200</pubDate>
243 <description>
244 &lt;p&gt;For a laptop, centralized user directories and password checking is
245 a bit troubling. Laptops are typically used also when not connected
246 to the network, and it is vital for a user to be able to log in or
247 unlock the screen saver also when a central server is unavailable.
248 This is possible by caching passwords and directory information (user
249 and group attributes) locally, and the packages to do so are available
250 in Debian. Here follow two recipes to set this up in Debian/Squeeze.
251 It is also possible to set up in Debian/Lenny, but require more manual
252 setup there because pam-auth-update is missing in Lenny.&lt;/p&gt;
253
254 &lt;h2&gt;LDAP/Kerberos + nscd + libpam-ccreds + libpam-mklocaluser/pam_mkhomedir&lt;/h2&gt;
255
256 This is the traditional method with a twist. The password caching is
257 provided by libpam-ccreds (version 10-4 or later is needed on
258 Squeeze), and the directory caching is done by nscd. The directory
259 lookup and password checking is done using LDAP. If one want to use
260 Kerberos for password checking the libpam-ldapd package can be
261 replaced with libpam-krb5 or libpam-heimdal. If one is happy having a
262 local home directory with the path listed in LDAP, one can use the
263 pam_mkhomedir module from pam-modules to make this happen instead of
264 using libpam-mklocaluser. A setup for pam-auth-update to enable
265 pam_mkhomedir will have to be written until a fix for
266 &lt;a href=&quot;http://bugs.debian.org/568577&quot;&gt;bug #568577&lt;/a&gt; is in the
267 archive. Because I believe it is a bad idea to have local home
268 directories using misleading paths like /site/server/partition/, I
269 prefer to create a local user with the home directory in /home/. This
270 is done using the libpam-mklocaluser package.&lt;/p&gt;
271
272 &lt;p&gt;These packages need to be installed and configured&lt;/p&gt;
273
274 &lt;blockquote&gt;&lt;pre&gt;
275 libnss-ldapd libpam-ldapd nscd libpam-ccreds libpam-mklocaluser
276 &lt;/pre&gt;&lt;/blockquote&gt;
277
278 &lt;p&gt;The ldapd packages will ask for LDAP connection information, and
279 one have to fill in the values that fits ones own site. Make sure the
280 PAM part uses encrypted connections, to make sure the password is not
281 sent in clear text to the LDAP server. I&#39;ve been unable to get TLS
282 certificate checking for a self signed certificate working, which make
283 LDAP authentication unsafe for Debian Edu (nslcd is not checking if it
284 is talking to the correct LDAP server), and very much welcome feedback
285 on how to get this working.&lt;/p&gt;
286
287 &lt;p&gt;Because nscd do not have a default configuration fit for offline
288 caching until &lt;a href=&quot;http://bugs.debian.org/485282&quot;&gt;bug #485282&lt;/a&gt;
289 is fixed, this configuration should be used instead of the one
290 currently in /etc/nscd.conf. The changes are in the fields
291 reload-count and positive-time-to-live, and is based on the
292 instructions I found in the
293 &lt;a href=&quot;http://www.flyn.org/laptopldap/&quot;&gt;LDAP for Mobile Laptops&lt;/a&gt;
294 instructions by Flyn Computing.&lt;/p&gt;
295
296 &lt;blockquote&gt;&lt;pre&gt;
297 debug-level 0
298 reload-count unlimited
299 paranoia no
300
301 enable-cache passwd yes
302 positive-time-to-live passwd 2592000
303 negative-time-to-live passwd 20
304 suggested-size passwd 211
305 check-files passwd yes
306 persistent passwd yes
307 shared passwd yes
308 max-db-size passwd 33554432
309 auto-propagate passwd yes
310
311 enable-cache group yes
312 positive-time-to-live group 2592000
313 negative-time-to-live group 20
314 suggested-size group 211
315 check-files group yes
316 persistent group yes
317 shared group yes
318 max-db-size group 33554432
319 auto-propagate group yes
320
321 enable-cache hosts no
322 positive-time-to-live hosts 2592000
323 negative-time-to-live hosts 20
324 suggested-size hosts 211
325 check-files hosts yes
326 persistent hosts yes
327 shared hosts yes
328 max-db-size hosts 33554432
329
330 enable-cache services yes
331 positive-time-to-live services 2592000
332 negative-time-to-live services 20
333 suggested-size services 211
334 check-files services yes
335 persistent services yes
336 shared services yes
337 max-db-size services 33554432
338 &lt;/pre&gt;&lt;/blockquote&gt;
339
340 &lt;p&gt;While we wait for a mechanism to update /etc/nsswitch.conf
341 automatically like the one provided in
342 &lt;a href=&quot;http://bugs.debian.org/496915&quot;&gt;bug #496915&lt;/a&gt;, the file
343 content need to be manually replaced to ensure LDAP is used as the
344 directory service on the machine. /etc/nsswitch.conf should normally
345 look like this:&lt;/p&gt;
346
347 &lt;blockquote&gt;&lt;pre&gt;
348 passwd: files ldap
349 group: files ldap
350 shadow: files ldap
351 hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
352 networks: files
353 protocols: files
354 services: files
355 ethers: files
356 rpc: files
357 netgroup: files ldap
358 &lt;/pre&gt;&lt;/blockquote&gt;
359
360 &lt;p&gt;The important parts are that ldap is listed last for passwd, group,
361 shadow and netgroup.&lt;/p&gt;
362
363 &lt;p&gt;With these changes in place, any user in LDAP will be able to log
364 in locally on the machine using for example kdm, get a local home
365 directory created and have the password as well as user and group
366 attributes cached.
367
368 &lt;h2&gt;LDAP/Kerberos + nss-updatedb + libpam-ccreds +
369 libpam-mklocaluser/pam_mkhomedir&lt;/h2&gt;
370
371 &lt;p&gt;Because nscd have had its share of problems, and seem to have
372 problems doing proper caching, I&#39;ve seen suggestions and recipes to
373 use nss-updatedb to copy parts of the LDAP database locally when the
374 LDAP database is available. I have not tested such setup, because I
375 discovered sssd.&lt;/p&gt;
376
377 &lt;h2&gt;LDAP/Kerberos + sssd + libpam-mklocaluser&lt;/h2&gt;
378
379 &lt;p&gt;A more flexible and robust setup than the nscd combination
380 mentioned earlier that has shown up recently, is the
381 &lt;a href=&quot;https://fedorahosted.org/sssd/&quot;&gt;sssd&lt;/a&gt; package from Redhat.
382 It is part of the &lt;a href=&quot;http://www.freeipa.org/&quot;&gt;FreeIPA&lt;/A&gt; project
383 to provide a Active Directory like directory service for Linux
384 machines. The sssd system combines the caching of passwords and user
385 information into one package, and remove the need for nscd and
386 libpam-ccreds. It support LDAP and Kerberos, but not NIS. Version
387 1.2 do not support netgroups, but it is said that it will support this
388 in version 1.5 expected to show up later in 2010. Because the
389 &lt;a href=&quot;http://packages.qa.debian.org/s/sssd.html&quot;&gt;sssd package&lt;/a&gt;
390 was missing in Debian, I ended up co-maintaining it with Werner, and
391 version 1.2 is now in testing.
392
393 &lt;p&gt;These packages need to be installed and configured to get the
394 roaming setup I want&lt;/p&gt;
395
396 &lt;blockquote&gt;&lt;pre&gt;
397 libpam-sss libnss-sss libpam-mklocaluser
398 &lt;/pre&gt;&lt;/blockquote&gt;
399
400 The complete setup of sssd is done by editing/creating
401 &lt;tt&gt;/etc/sssd/sssd.conf&lt;/tt&gt;.
402
403 &lt;blockquote&gt;&lt;pre&gt;
404 [sssd]
405 config_file_version = 2
406 reconnection_retries = 3
407 sbus_timeout = 30
408 services = nss, pam
409 domains = INTERN
410
411 [nss]
412 filter_groups = root
413 filter_users = root
414 reconnection_retries = 3
415
416 [pam]
417 reconnection_retries = 3
418
419 [domain/INTERN]
420 enumerate = false
421 cache_credentials = true
422
423 id_provider = ldap
424 auth_provider = ldap
425 chpass_provider = ldap
426
427 ldap_uri = ldap://ldap
428 ldap_search_base = dc=skole,dc=skolelinux,dc=no
429 ldap_tls_reqcert = never
430 ldap_tls_cacert = /etc/ssl/certs/ca-certificates.crt
431 &lt;/pre&gt;&lt;/blockquote&gt;
432
433 &lt;p&gt;I got the same problem here with certificate checking. Had to set
434 &quot;ldap_tls_reqcert = never&quot; to get it working.&lt;/p&gt;
435
436 &lt;p&gt;With the libnss-sss package in testing at the moment, the
437 nsswitch.conf file is update automatically, so there is no need to
438 modify it manually.&lt;/p&gt;
439
440 &lt;p&gt;If you want to help out with implementing this for Debian Edu,
441 please contact us on debian-edu@lists.debian.org.&lt;/p&gt;
442 </description>
443 </item>
444
445 <item>
446 <title>LUMA, a very nice LDAP GUI</title>
447 <link>http://people.skolelinux.org/pere/blog/LUMA__a_very_nice_LDAP_GUI.html</link>
448 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/LUMA__a_very_nice_LDAP_GUI.html</guid>
449 <pubDate>Mon, 28 Jun 2010 00:30:00 +0200</pubDate>
450 <description>
451 &lt;p&gt;The last few days I have been looking into the status of the LDAP
452 directory in Debian Edu, and in the process I started to miss a GUI
453 tool to browse the LDAP tree. The only one I was able to find in
454 Debian/Squeeze and Lenny is
455 &lt;a href=&quot;http://luma.sourceforge.net/&quot;&gt;LUMA&lt;/a&gt;, which has proved to
456 be a great tool to get a overview of the current LDAP directory
457 populated by default in Skolelinux. Thanks to it, I have been able to
458 find empty and obsolete subtrees, misplaced objects and duplicate
459 objects. It will be installed by default in Debian/Squeeze. If you
460 are working with LDAP, give it a go. :)&lt;/p&gt;
461
462 &lt;p&gt;I did notice one problem with it I have not had time to report to
463 the BTS yet. There is no .desktop file in the package, so the tool do
464 not show up in the Gnome and KDE menus, but only deep down in in the
465 Debian submenu in KDE. I hope that can be fixed before Squeeze is
466 released.&lt;/p&gt;
467
468 &lt;p&gt;I have not yet been able to get it to modify the tree yet. I would
469 like to move objects and remove subtrees directly in the GUI, but have
470 not found a way to do that with LUMA yet. So in the mean time, I use
471 &lt;a href=&quot;http://www.lichteblau.com/ldapvi/&quot;&gt;ldapvi&lt;/a&gt; for that.&lt;/p&gt;
472
473 &lt;p&gt;If you have tips on other GUI tools for LDAP that might be useful
474 in Debian Edu, please contact us on debian-edu@lists.debian.org.&lt;/p&gt;
475
476 &lt;p&gt;Update 2010-06-29: Ross Reedstrom tipped us about the
477 &lt;a href=&quot;http://packages.qa.debian.org/g/gq.html&quot;&gt;gq&lt;/a&gt; package as a
478 useful GUI alternative. It seem like a good tool, but is unmaintained
479 in Debian and got a RC bug keeping it out of Squeeze. Unless that
480 changes, it will not be an option for Debian Edu based on Squeeze.&lt;/p&gt;
481 </description>
482 </item>
483
484 <item>
485 <title>Idea for a change to LDAP schemas allowing DNS and DHCP info to be combined into one object</title>
486 <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>
487 <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>
488 <pubDate>Thu, 24 Jun 2010 00:35:00 +0200</pubDate>
489 <description>
490 &lt;p&gt;A while back, I
491 &lt;a href=&quot;http://people.skolelinux.org/pere/blog/Time_for_new__LDAP_schemas_replacing_RFC_2307_.html&quot;&gt;complained
492 about the fact&lt;/a&gt; that it is not possible with the provided schemas
493 for storing DNS and DHCP information in LDAP to combine the two sets
494 of information into one LDAP object representing a computer.&lt;/p&gt;
495
496 &lt;p&gt;In the mean time, I discovered that a simple fix would be to make
497 the dhcpHost object class auxiliary, to allow it to be combined with
498 the dNSDomain object class, and thus forming one object for one
499 computer when storing both DHCP and DNS information in LDAP.&lt;/p&gt;
500
501 &lt;p&gt;If I understand this correctly, it is not safe to do this change
502 without also changing the assigned number for the object class, and I
503 do not know enough about LDAP schema design to do that properly for
504 Debian Edu.&lt;/p&gt;
505
506 &lt;p&gt;Anyway, for future reference, this is how I believe we could change
507 the
508 &lt;a href=&quot;http://tools.ietf.org/html/draft-ietf-dhc-ldap-schema-00&quot;&gt;DHCP
509 schema&lt;/a&gt; to solve at least part of the problem with the LDAP schemas
510 available today from IETF.&lt;/p&gt;
511
512 &lt;pre&gt;
513 --- dhcp.schema (revision 65192)
514 +++ dhcp.schema (working copy)
515 @@ -376,7 +376,7 @@
516 objectclass ( 2.16.840.1.113719.1.203.6.6
517 NAME &#39;dhcpHost&#39;
518 DESC &#39;This represents information about a particular client&#39;
519 - SUP top
520 + SUP top AUXILIARY
521 MUST cn
522 MAY (dhcpLeaseDN $ dhcpHWAddress $ dhcpOptionsDN $ dhcpStatements $ dhcpComments $ dhcpOption)
523 X-NDS_CONTAINMENT (&#39;dhcpService&#39; &#39;dhcpSubnet&#39; &#39;dhcpGroup&#39;) )
524 &lt;/pre&gt;
525
526 &lt;p&gt;I very much welcome clues on how to do this properly for Debian
527 Edu/Squeeze. We provide the DHCP schema in our debian-edu-config
528 package, and should thus be free to rewrite it as we see fit.&lt;/p&gt;
529
530 &lt;p&gt;If you want to help out with implementing this for Debian Edu,
531 please contact us on debian-edu@lists.debian.org.&lt;/p&gt;
532 </description>
533 </item>
534
535 <item>
536 <title>Calling tasksel like the installer, while still getting useful output</title>
537 <link>http://people.skolelinux.org/pere/blog/Calling_tasksel_like_the_installer__while_still_getting_useful_output.html</link>
538 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Calling_tasksel_like_the_installer__while_still_getting_useful_output.html</guid>
539 <pubDate>Wed, 16 Jun 2010 14:55:00 +0200</pubDate>
540 <description>
541 &lt;p&gt;A few times I have had the need to simulate the way tasksel
542 installs packages during the normal debian-installer run. Until now,
543 I have ended up letting tasksel do the work, with the annoying problem
544 of not getting any feedback at all when something fails (like a
545 conffile question from dpkg or a download that fails), using code like
546 this:
547
548 &lt;blockquote&gt;&lt;pre&gt;
549 export DEBIAN_FRONTEND=noninteractive
550 tasksel --new-install
551 &lt;/pre&gt;&lt;/blockquote&gt;
552
553 This would invoke tasksel, let its automatic task selection pick the
554 tasks to install, and continue to install the requested tasks without
555 any output what so ever.
556
557 Recently I revisited this problem while working on the automatic
558 package upgrade testing, because tasksel would some times hang without
559 any useful feedback, and I want to see what is going on when it
560 happen. Then it occured to me, I can parse the output from tasksel
561 when asked to run in test mode, and use that aptitude command line
562 printed by tasksel then to simulate the tasksel run. I ended up using
563 code like this:
564
565 &lt;blockquote&gt;&lt;pre&gt;
566 export DEBIAN_FRONTEND=noninteractive
567 cmd=&quot;$(in_target tasksel -t --new-install | sed &#39;s/debconf-apt-progress -- //&#39;)&quot;
568 $cmd
569 &lt;/pre&gt;&lt;/blockquote&gt;
570
571 &lt;p&gt;The content of $cmd is typically something like &quot;&lt;tt&gt;aptitude -q
572 --without-recommends -o APT::Install-Recommends=no -y install
573 ~t^desktop$ ~t^gnome-desktop$ ~t^laptop$ ~pstandard ~prequired
574 ~pimportant&lt;/tt&gt;&quot;, which will install the gnome desktop task, the
575 laptop task and all packages with priority standard , required and
576 important, just like tasksel would have done it during
577 installation.&lt;/p&gt;
578
579 &lt;p&gt;A better approach is probably to extend tasksel to be able to
580 install packages without using debconf-apt-progress, for use cases
581 like this.&lt;/p&gt;
582 </description>
583 </item>
584
585 <item>
586 <title>Vinmonopolet bryter loven åpenlyst - og flere planlegger å gjøre det samme</title>
587 <link>http://people.skolelinux.org/pere/blog/Vinmonopolet_bryter_loven___penlyst___og_flere_planlegger____gj__re_det_samme.html</link>
588 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Vinmonopolet_bryter_loven___penlyst___og_flere_planlegger____gj__re_det_samme.html</guid>
589 <pubDate>Wed, 16 Jun 2010 11:00:00 +0200</pubDate>
590 <description>
591 &lt;p&gt;&lt;a href=&quot;http://www.dagbladet.no/2010/06/16/nyheter/innenriks/streik/arbeidsliv/12157858/&quot;&gt;Dagbladet
592 melder&lt;/a&gt; at Vinmonopolet med bakgrunn i vekterstreiken som pågår i
593 Norge for tiden, har bestemt seg for med vitende og vilje å bryte
594 sentralbanklovens paragraf 14 ved å nekte folk å betale med
595 kontanter, og at flere butikker planlegger å følge deres eksempel.
596 Jeg synes det er hårreisende hvis de slipper unna med et slikt
597 soleklart lovbrudd, og lurer på hva slags muligheter jeg vil ha hvis
598 jeg blir nektet å handle med kontanter. Jeg handler i hovedsak med
599 kontanter selv, da jeg anser det som en borgerrett å kunne handle
600 anonymt uten at det blir registrert. For meg er det et angrep på mitt
601 personvern å nekte å ta imot kontant betaling.&lt;/p&gt;
602
603 &lt;p&gt;&lt;a href=&quot;http://www.lovdata.no/all/tl-19850524-028-003.html#14&quot;&gt;Paragrafen
604 i sentralbankloven&lt;/a&gt; lyder:&lt;/p&gt;
605
606 &lt;blockquote&gt;
607 &lt;p&gt;§ 14. Tvungent betalingsmiddel&lt;/p&gt;
608
609 &lt;p&gt;Bankens sedler og mynter er tvungent betalingsmiddel i Norge. Ingen
610 er pliktig til i én betaling å ta imot mer enn femogtyve mynter av
611 hver enhet.&lt;/p&gt;
612
613 &lt;p&gt;Sterkt skadde sedler og mynter er ikke tvungent
614 betalingsmiddel. Banken gir nærmere forskrifter om erstatning for
615 bortkomne, brente eller skadde sedler og mynter.&lt;/p&gt;
616
617 &lt;p&gt;Selv om en avtale inneholder klausul om betaling av en
618 pengeforpliktelse i gullverdi, kan skyldneren frigjøre seg med tvungne
619 betalingsmidler uten hensyn til denne klausul.&lt;/p&gt;
620 &lt;/blockquote&gt;
621
622 &lt;p&gt;Det er med bakgrunn i denne lovet ikke tillatt å nekte å ta imot
623 kontakt betaling. Det er en lov jeg har sans for, og som jeg mener må
624 håndheves strengt.&lt;/p&gt;
625 </description>
626 </item>
627
628 <item>
629 <title>Officeshots taking shape</title>
630 <link>http://people.skolelinux.org/pere/blog/Officeshots_taking_shape.html</link>
631 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Officeshots_taking_shape.html</guid>
632 <pubDate>Sun, 13 Jun 2010 11:40:00 +0200</pubDate>
633 <description>
634 &lt;p&gt;For those of us caring about document exchange and
635 interoperability, &lt;a href=&quot;http://www.officeshots.org/&quot;&gt;OfficeShots&lt;/a&gt;
636 is a great service. It is to ODF documents what
637 &lt;a href=&quot;http://browsershots.org/&quot;&gt;BrowserShots&lt;/a&gt; is for web
638 pages.&lt;/p&gt;
639
640 &lt;p&gt;A while back, I was contacted by Knut Yrvin at the part of Nokia
641 that used to be Trolltech, who wanted to help the OfficeShots project
642 and wondered if the University of Oslo where I work would be
643 interested in supporting the project. I helped him to navigate his
644 request to the right people at work, and his request was answered with
645 a spot in the machine room with power and network connected, and Knut
646 arranged funding for a machine to fill the spot. The machine is
647 administrated by the OfficeShots people, so I do not have daily
648 contact with its progress, and thus from time to time check back to
649 see how the project is doing.&lt;/p&gt;
650
651 &lt;p&gt;Today I had a look, and was happy to see that the Dell box in our
652 machine room now is the host for several virtual machines running as
653 OfficeShots factories, and the project is able to render ODF documents
654 in 17 different document processing implementation on Linux and
655 Windows. This is great.&lt;/p&gt;
656 </description>
657 </item>
658
659 </channel>
660 </rss>