Hi, maybe due to an older install... After an upgrade of the d-e-c package I added (diskless) hosts to the LDAP database using sitesummary2ldapdhcp - just for testing. All went well, but the database objects created were not removeable from within GOsa²; I had to use ldapvi to get rid of them. Additionally I noticed that the hosts were put into LDAP as »servers«, I'd expect »netdevices«. This workaround puts removeable objects into LDAP (like those created manually using GOsa²); only drawback is that one more click is needed in GOsa² (to enable DHCP). ====================================================================== --- sitesummary2ldapdhcp 2012-02-10 19:30:56.000000000 +0100 +++ sitesummary2ldapdhcp.orig 2012-02-10 19:30:19.000000000 +0100 @@ -21,8 +21,8 @@ my $base = $ARGV[1] || find_ldap_base($server) || "dc=skole,dc=skolelinux,dc=no"; -my $serverbase = "ou=servers,ou=systems,$base"; -my $dhcpbase = "cn=dhcp,cn=tjener,ou=servers,ou=systems,$base"; +my $serverbase = "ou=netdevices,ou=systems,$base"; +my $dhcpbase = "cn=dhcp,cn=tjener,ou=netdevices,ou=systems,$base"; my $userfilter = $opts{u} || "(cn=admin)"; @@ -143,11 +143,10 @@ if (0 == $mesg->count) { # Create my $attr = [ - 'objectClass' => ['top', 'GOhard', 'goServer'], + 'objectClass' => ['top', 'device', 'ipHost', 'ieee802Device'], 'cn' => $hostname, 'macAddress' => $mac, 'ipHostNumber' => $ipaddr, - 'gotoMode' => 'locked', ]; my $result = $ldap->add($cn, attr => $attr); ================================================================= Wolfgang
Attachment:
signature.asc
Description: Digital signature