[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Recent lwat changes



I've been doing some work on lwat over the past week.

Last sunday I commited a change to lwat svn which makes it possible to
have separate first name and last name in LDAP. This is useful e.g. for
Moodle's LDAP support, which expects separate first and last names.

The LDAP setup in Skolelinux doesn't currently support this, and I'm not
sure what the best way of adding it is. For my testing I used
inetOrgPerson, but that conflicts with imapUser, and it seems that the
mail setup depends on the mailMessageStore attribute.
Example admin.ini changes (lwat r838 or later):

  objectClass = top posixAccount shadowAccount inetOrgPerson sambaSamAccount
  (imapUser replaced with inetOrgPerson, mailMessageStore has to be removed)
  givenName = %firstname%
  sn = %lastname%
  mail = %username%@intern


Also, yesterday I commited support for modifying DHCP hosts in LDAP (r839).
lwat now depends on php-net-ipv4, which isn't available in Etch. If you
want more recent lwat versions running on Etch, it should be possible to
comment out the require("Net/IPv4.php") line in admin.php.

To enable the DHCP support, $updateDHCP = true; has to be set in
config.php. The way it works currently is that when
adding/modifying/deleting a host, the corresponding change is made to
the DHCP configuration.
The IP address is used to find the correct dhcpSharedNetwork, and the
host is simply added to the first available (less than 250 hosts, per
the DebianEdu/Lwat wiki page) DHCP group.
Question: should it be possible to select a DHCP group? DHCP groups can
be used to set custom parameters for a group of hosts, which might be
useful in some cases.

lwat doesn't support adding a filename statement to a DHCP host. I'm
currently not that motivated to add it, because non-x86 thin clients are
few and far between, and filenames can be set on both the network and
group. Also I have tried to make sure that lwat doesn't remove any
existing filename statements.

I've attached a diff with proposed changes to to dhcp.ldif in
debian-edu-config/ldap-bootstrap, which is intended to make debian-edu
work better with the lwat DHCP changes.
Changes:
* Fix wrong filename on cn=INTERNAL
* Add another dhcpGroup to cn=INTERNAL, because of the 250-host
dhcpGroup limit (there is room for more than 250 hosts on the
10.0.2.0/23 network)
* Remove all per-host filenames. It's confusing and a source of errors
if the filename on dhcpSharedNetwork/dhcpGroup is changed and only a few
hosts have filename set.

A couple of final questions:
* What's the status on DNS in LDAP?
* What are the most important things to add/fix in lwat before the Lenny
release?

John.
Index: ldap-bootstrap/dhcp.ldif
===================================================================
--- ldap-bootstrap/dhcp.ldif	(revisjon 57766)
+++ ldap-bootstrap/dhcp.ldif	(arbeidskopi)
@@ -24,7 +24,7 @@
 dhcpStatements: default-lease-time 1800
 dhcpStatements: max-lease-time 3600
 dhcpStatements: next-server tjener
-dhcpStatements: filename "/var/lib/tftpboot/pxelinux.0"
+dhcpStatements: filename "/var/lib/tftpboot/ltsp/i386/pxelinux.0"
 dhcpOption: subnet-mask 255.255.254.0
 dhcpOption: broadcast-address 10.0.3.255
 dhcpOption: routers gateway
@@ -50,6 +50,11 @@
 objectClass: top
 objectClass: dhcpGroup
 
+dn: cn=group2,cn=INTERNAL,cn=DHCP Config,dc=skole,dc=skolelinux,dc=no
+cn: group2
+objectClass: top
+objectClass: dhcpGroup
+
 dn: cn=ltspserver00,cn=group1,cn=INTERNAL,cn=DHCP Config,dc=skole,dc=skolelinux,dc=no
 cn: ltspserver00
 objectClass: top
@@ -164,7 +169,6 @@
 objectClass: dhcpHost
 dhcpHWAddress: ethernet 00:00:00:00:00:00
 dhcpStatements: fixed-address ltsp010
-dhcpStatements: filename "/var/lib/tftpboot/ltsp/i386/pxelinux.0"
 
 dn: cn=ltsp011,cn=group1,cn=THINCLIENTS,cn=DHCP Config,dc=skole,dc=skolelinux,dc=no
 cn: ltsp011
@@ -172,7 +176,6 @@
 objectClass: dhcpHost
 dhcpHWAddress: ethernet 00:00:00:00:00:00
 dhcpStatements: fixed-address ltsp011
-dhcpStatements: filename "/var/lib/tftpboot/ltsp/i386/pxelinux.0"
 
 dn: cn=ltsp012,cn=group1,cn=THINCLIENTS,cn=DHCP Config,dc=skole,dc=skolelinux,dc=no
 cn: ltsp012
@@ -180,7 +183,6 @@
 objectClass: dhcpHost
 dhcpHWAddress: ethernet 00:00:00:00:00:00
 dhcpStatements: fixed-address ltsp012
-dhcpStatements: filename "/var/lib/tftpboot/ltsp/i386/pxelinux.0"
 
 dn: cn=ltsp013,cn=group1,cn=THINCLIENTS,cn=DHCP Config,dc=skole,dc=skolelinux,dc=no
 cn: ltsp013
@@ -188,7 +190,6 @@
 objectClass: dhcpHost
 dhcpHWAddress: ethernet 00:00:00:00:00:00
 dhcpStatements: fixed-address ltsp013
-dhcpStatements: filename "/var/lib/tftpboot/ltsp/i386/pxelinux.0"
 
 dn: cn=ltsp014,cn=group1,cn=THINCLIENTS,cn=DHCP Config,dc=skole,dc=skolelinux,dc=no
 cn: ltsp014
@@ -196,7 +197,6 @@
 objectClass: dhcpHost
 dhcpHWAddress: ethernet 00:00:00:00:00:00
 dhcpStatements: fixed-address ltsp014
-dhcpStatements: filename "/var/lib/tftpboot/ltsp/i386/pxelinux.0"
 
 dn: cn=ltsp015,cn=group1,cn=THINCLIENTS,cn=DHCP Config,dc=skole,dc=skolelinux,dc=no
 cn: ltsp015
@@ -204,7 +204,6 @@
 objectClass: dhcpHost
 dhcpHWAddress: ethernet 00:00:00:00:00:00
 dhcpStatements: fixed-address ltsp015
-dhcpStatements: filename "/var/lib/tftpboot/ltsp/i386/pxelinux.0"
 
 dn: cn=ltsp016,cn=group1,cn=THINCLIENTS,cn=DHCP Config,dc=skole,dc=skolelinux,dc=no
 cn: ltsp016
@@ -212,7 +211,6 @@
 objectClass: dhcpHost
 dhcpHWAddress: ethernet 00:00:00:00:00:00
 dhcpStatements: fixed-address ltsp016
-dhcpStatements: filename "/var/lib/tftpboot/ltsp/i386/pxelinux.0"
 
 dn: cn=ltsp017,cn=group1,cn=THINCLIENTS,cn=DHCP Config,dc=skole,dc=skolelinux,dc=no
 cn: ltsp017
@@ -220,7 +218,6 @@
 objectClass: dhcpHost
 dhcpHWAddress: ethernet 00:00:00:00:00:00
 dhcpStatements: fixed-address ltsp017
-dhcpStatements: filename "/var/lib/tftpboot/ltsp/i386/pxelinux.0"
 
 dn: cn=ltsp018,cn=group1,cn=THINCLIENTS,cn=DHCP Config,dc=skole,dc=skolelinux,dc=no
 cn: ltsp018
@@ -228,7 +225,6 @@
 objectClass: dhcpHost
 dhcpHWAddress: ethernet 00:00:00:00:00:00
 dhcpStatements: fixed-address ltsp018
-dhcpStatements: filename "/var/lib/tftpboot/ltsp/i386/pxelinux.0"
 
 dn: cn=ltsp019,cn=group1,cn=THINCLIENTS,cn=DHCP Config,dc=skole,dc=skolelinux,dc=no
 cn: ltsp019
@@ -236,5 +232,4 @@
 objectClass: dhcpHost
 dhcpHWAddress: ethernet 00:00:00:00:00:00
 dhcpStatements: fixed-address ltsp019
-dhcpStatements: filename "/var/lib/tftpboot/ltsp/i386/pxelinux.0"
 

Reply to: