From 94cdd4aa686da8a8bbb9afe491756ec5e9712d78 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 11 Jul 2007 05:59:47 +0000 Subject: [PATCH] * Moved README's to the central doc/ directory * Removed goSamba.pl. It's obsoleted by the use of gopdc * Moved goNagios.pl to the contrib/scripts * Updated debian infrastructure to reflect the changes git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6818 594d385d-05f5-0310-b6e9-bd551577e9d8 --- contrib/opensides/README.OpenSides | 31 ---- contrib/opensides/goSamba.pl | 162 ------------------ contrib/{opensides => scripts}/goNagios.pl | 0 debian/rules | 4 +- .../opensides/glpi.README => doc/README.glpi | 0 .../nagios.README => doc/README.nagios | 0 .../README.phpscheduleit | 0 .../opensides/pptp.README => doc/README.pptp | 0 .../README.xls-export | 0 9 files changed, 1 insertion(+), 196 deletions(-) delete mode 100644 contrib/opensides/README.OpenSides delete mode 100755 contrib/opensides/goSamba.pl rename contrib/{opensides => scripts}/goNagios.pl (100%) rename contrib/opensides/glpi.README => doc/README.glpi (100%) rename contrib/opensides/nagios.README => doc/README.nagios (100%) rename contrib/opensides/phpscheduleit.README => doc/README.phpscheduleit (100%) rename contrib/opensides/pptp.README => doc/README.pptp (100%) rename contrib/opensides/xls-export.README => doc/README.xls-export (100%) diff --git a/contrib/opensides/README.OpenSides b/contrib/opensides/README.OpenSides deleted file mode 100644 index d5e9e78d9..000000000 --- a/contrib/opensides/README.OpenSides +++ /dev/null @@ -1,31 +0,0 @@ -goSamba.pl - This script will help you populate your ldap tree with - the correct attribute when using the smbldap-tools - from idealx. - -goNagios.pl - This script will help you to manage the authentification - users inside of the cgi.cfg, contacts.cfg, contactgroups.cfg - -nagios.README - how to make the nagios plugin work - -pptp.README - how to make the pptp connectivity extension work - -phpscheduleit.README - how to make the phpscheduleit extension work - -xls-export.README - how to make the xls export xork - - -The php_writeexcel library is coming from - -http://www.bettina-attack.de/jonny/projects/php_writeexcel/ - -Author : - -LICENSE : GNU LESSER GENERAL PUBLIC LICENSE - -Bug: - -It doesn't work on php5 we are working on it. - -Benoit Mortier -Guillaume Delecourt -Vincent Seynhaeve diff --git a/contrib/opensides/goSamba.pl b/contrib/opensides/goSamba.pl deleted file mode 100755 index ef7b210b4..000000000 --- a/contrib/opensides/goSamba.pl +++ /dev/null @@ -1,162 +0,0 @@ -#!/usr/bin/perl - - -# Copyright (C) 2005 Guillaume Delecourt -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# -# - -use Net::LDAP; -use Getopt::Std; -use Net::LDAP::Schema; -use Net::LDAP::LDIF; - -# Variables a config -$admin="cn=ldapadmin,dc=example,dc=be"; -$password=""; -$peopleou="ou=People,dc=example,dc=be"; -$base="dc=example,dc=be"; -$scope="one"; # par defaut -$dump_file="myldaptree.ldif"; -$server="localhost"; - - -my %Options; - -my $ok = getopts('?', \%Options); - -#Verifying if help is needed -if ( (!$ok) || (@ARGV < 1) || ($Options{'?'}) ) { - &help(); -} - -print "We backup the whole tree before every operation\n"; -&dump(); - -$comm=$ARGV[0]; - -if($comm eq "del" && @ARGV >1 ) -{ - print "You asked to delete attribute : "; - $i=1; - while($ARGV[$i] ne "") - { - print $ARGV[$i]." "; - $i++; - } - print "\n"; - $ldap = Net::LDAP->new($server); - $ldap->bind($admin,password=>$password); - - - print "ldap connection" .$ldap; - - $mesg = $ldap->search(filter=>"(objectClass=*)",base=>$peopleou,scope=>$scope); - @entries = $mesg->entries; - - foreach $entry (@entries) { - $i=1; - print $entry->dn()."\n"; - while($ARGV[$i] ne "") - { - if($ARGV[$i] eq "obj"){$obj=1;$i++;next} - if($obj==1) - { - $mesg = $ldap->modify($entry->dn(), delete => {"ObjectClass"=>"$ARGV[$i]"}); - print "\t objectClass: ".$ARGV[$i]; - } - else - { - $mesg = $ldap->modify($entry->dn(), delete => [$ARGV[$i]]); - print "\t attribut: ".$ARGV[$i]; - } - $obj=0; - $i++; - } - - print "\n"; - } - $ldap->unbind; - exit(0); -} -elsif($comm eq "gosa" && @ARGV ==1) -{ - print "Add GOsa attribute for the following users\n"; - print "---------------------------------------------\n"; - $ldap = Net::LDAP->new($server); - $ldap->bind($admin,password=>$password); - $mesg = $ldap->search(filter=>"&(!(objectClass~=gosaAccount))", base=>$peopleou,scope=>$scope); - @entries = $mesg->entries; - - foreach $entry (@entries) { - $mesg = $ldap->modify($entry->dn(), add => { "ObjectClass" => "gosaAccount"}); - $mesg = $ldap->modify($entry->dn(), add => { "ObjectClass" => "organizationalPerson"}); - $mesg = $ldap->modify($entry->dn(), add => { "ObjectClass" => "Person"}); - print $entry->dn(); - print "\n"; - } - $ldap->unbind; - exit(0); -} -elsif($comm eq "modif" && @ARGV >1) -{ - print "Modifications asked\n"; - print "------------------------\n"; - $ldap = Net::LDAP->new($server); - $ldap->bind($admin,password=>$password); - - $mesg = $ldap->search(filter=>"(objectClass=*)",base=>$peopleou,scope=>$scope); - @entries = $mesg->entries; - foreach $entry (@entries) { - $mesg = $ldap->modify($entry->dn(), replace => { "$ARGV[1]" => "$ARGV[2]" } ); - print $entry->dn()."\n\tattribut $ARGV[1] modifié avec la valeur $ARGV[2]\n"; - } - $ldap->unbind; - exit(0); -} -elsif($comm eq "dump" && @ARGV ==1) -{ - &dump(); -} -else -{ - &help(); -} - -sub help() -{ - print_banner; - print "Usage: $0 [-?] command\n"; - print "\t-? show this help message\n"; - print "\tgosa -> add GOsa attributes for the whole the people branch !\n"; - print "\tdel attribut -> Remove an attribute for the whole people branch !\n"; - print "\tmodif -> to modify the attribute\n"; - print "\tdump to dump the whole ldap tree\n"; - exit (1); -} - -sub dump() -{ - $ldap = Net::LDAP->new($server) or die "$@"; - $ldap->bind($admin,password=>$password); - my $ldif = Net::LDAP::LDIF->new($dump_file,'w') ; - $mesg = $ldap->search ( - base => "$base", - filter => "(objectclass=*)" - ); - $ldif->write_entry($mesg->entries) ; - $ldap->unbind; -} diff --git a/contrib/opensides/goNagios.pl b/contrib/scripts/goNagios.pl similarity index 100% rename from contrib/opensides/goNagios.pl rename to contrib/scripts/goNagios.pl diff --git a/debian/rules b/debian/rules index 3280c1976..2a76b63f8 100755 --- a/debian/rules +++ b/debian/rules @@ -53,11 +53,9 @@ install-stamp: -mkdir -p debian/gosa-help-nl/usr/share/doc/gosa-help-nl -gzip -c9 debian/changelog > debian/gosa-help-nl/usr/share/doc/gosa-help-nl/changelog.Debian.gz -gzip -c9 Changelog > debian/gosa/usr/share/doc/gosa/changelog.gz - -cp AUTHORS README FAQ doc/README.safemode doc/README.devel doc/README.openxchange debian/gosa/usr/share/doc/gosa/ + -cp AUTHORS README FAQ doc/README.pptp doc/README.xls-export doc/README.glpi doc/README.nagios doc/README.phpscheduleit doc/README.safemode doc/README.devel doc/README.openxchange debian/gosa/usr/share/doc/gosa/ -rm debian/gosa/usr/share/gosa/README debian/gosa/usr/share/gosa/INSTALL - -rm debian/gosa/usr/share/gosa/README.safemode -rm debian/gosa/usr/share/gosa/AUTHORS debian/gosa/usr/share/gosa/Changelog - -rm debian/gosa/usr/share/gosa/DEVEL -rm debian/gosa/usr/share/gosa/COPYING debian/gosa/usr/share/gosa/TODO -rm debian/gosa/usr/share/gosa/FAQ -mkdir -p debian/gosa/var/spool/gosa/compile diff --git a/contrib/opensides/glpi.README b/doc/README.glpi similarity index 100% rename from contrib/opensides/glpi.README rename to doc/README.glpi diff --git a/contrib/opensides/nagios.README b/doc/README.nagios similarity index 100% rename from contrib/opensides/nagios.README rename to doc/README.nagios diff --git a/contrib/opensides/phpscheduleit.README b/doc/README.phpscheduleit similarity index 100% rename from contrib/opensides/phpscheduleit.README rename to doc/README.phpscheduleit diff --git a/contrib/opensides/pptp.README b/doc/README.pptp similarity index 100% rename from contrib/opensides/pptp.README rename to doc/README.pptp diff --git a/contrib/opensides/xls-export.README b/doc/README.xls-export similarity index 100% rename from contrib/opensides/xls-export.README rename to doc/README.xls-export -- 2.30.2