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

Bug#687256: adding systems to netgroups, change hosts settings



tags #687256 pending
thanks

Hi all, hi Marcel,

On Di 18 Sep 2012 09:50:09 CEST Marcel Sandow wrote:

addtional: cascading netgroups are removed by changing host entries

observation: changing the IP address of an existing host in gosa² and
hiting the apply button removes the cascaded netgroups
'winstation-hosts', 'diskless-workstation-hosts' from the
'workstation-hosts' netgroup.

The issue should have been fixed by this debian-edu-config commit in SVN:
http://anonscm.debian.org/viewvc/debian-edu?view=revision&revision=78124

The patch looks like this:

Index: gosa-netgroups/admin/systems/netgroups/class_netgroupSystem.inc
===================================================================
--- gosa-netgroups/admin/systems/netgroups/class_netgroupSystem.inc (Revision 78123) +++ gosa-netgroups/admin/systems/netgroups/class_netgroupSystem.inc (Arbeitskopie)
@@ -203,7 +203,7 @@
         foreach(array_keys($this->members) as $val){

             $ldap->cd($this->config->current['BASE']);
- $ldap->search("(&(objectClass=nisNetgroup)(cn=".$val."))", array("dn", "cn", "nisNetgroupTriple")); + $ldap->search("(&(objectClass=nisNetgroup)(cn=".$val."))", array("dn", "cn", "nisNetgroupTriple", "memberNisNetgroup"));
             $attrs['nisNetgroupTriple']=array();
             $attrs['memberNisNetgroup']=array();
             while ($sattrs = $ldap->fetch()) {

You may test if this fixes your issue by applying the patch on your file system to:
/usr/share/gosa/plugins/admin/systems/netgroups/class_netgroupSystem.inc

Greets,
Mike



--

DAS-NETZWERKTEAM
mike gabriel, rothenstein 5, 24214 neudorf-bornstein
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb

Attachment: pgpDGgdSZLAeA.pgp
Description: Digitale PGP-Unterschrift


Reply to: