summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a38df86)
raw | patch | inline | side by side (parent: a38df86)
author | opensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Sat, 15 May 2010 10:26:27 +0000 (10:26 +0000) | ||
committer | opensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Sat, 15 May 2010 10:26:27 +0000 (10:26 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18481 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/gosa-si/client.conf b/gosa-si/client.conf
index bf2ebfcc8290c43cb22a8b3c70c6f1c37c5ab994..7859d5e8608c2fe541b796fb49e15f3a01e1acea 100644 (file)
--- a/gosa-si/client.conf
+++ b/gosa-si/client.conf
-[general]
+[General]
log-file = /var/log/gosa-si-client.log
pid-file = /var/run/gosa-si-client.pid
-[client]
+[Client]
fai-logpath = /var/log/fai/fai.log
-[server]
+[Server]
key = secret-server-password
#[krb5]
index 6f5a2a3ad0c116b095a399d5eebb2a7a9c409c45..3cf69c87f39ecc3ee901b8eea5fc086d90a8fc84 100644 (file)
--- a/gosa-si/client.conf.pod
+++ b/gosa-si/client.conf.pod
=head1 DIRECTIVES
-=head2 [general]
+=head2 [General]
=over 4
=back
-=head2 [client]
+=head2 [Client]
=over 4
=back
-=head2 [server]
+=head2 [Server]
=over 4
@@ -131,7 +131,7 @@ Please report any bugs, or post any suggestions, to the GOsa mailing list <gosa-
This code is part of GOsa (L<http://www.gosa-project.org>)
-Copyright (C) 2003-2009 GONICUS GmbH
+Copyright (C) 2003-2010 GONICUS GmbH
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
diff --git a/gosa-si/gosa-si-client b/gosa-si/gosa-si-client
index 2d6fe071556ed55ef0bd5fa21e085a201db8cd74..d9c62845ca4afbf27314fa74bf567f016bddd6ef 100755 (executable)
--- a/gosa-si/gosa-si-client
+++ b/gosa-si/gosa-si-client
my $fai_log_dir = "/var/log/fai";
%cfg_defaults = (
-"general" =>
+"General" =>
{"log-file" => [\$log_file, "/var/run/".$prg.".log"],
"pid-file" => [\$pid_file, "/var/run/".$prg.".pid"],
"opts-file" => [\$opts_file, "/var/run/".$prg.".opts"],
},
-"client" =>
+"Client" =>
{"port" => [\$client_port, "20083"],
"ip" => [\$client_ip, "0.0.0.0"],
"mac-address" => [\$client_mac_address, "00:00:00:00:00:00"],
"force-hostname" => [\$client_force_hostname, "false"],
"system-com" => [\$system_com, "disabled"],
},
-"server" => {
+"Server" => {
"ip" => [\$servers_string, "127.0.0.1"],
"port" => [\$server_port, "20081"],
"key" => [\$server_key, ""],
# create a syslog msg if it is not to possible to open PID file
if (not sysopen(LOCK_FILE, $pid_file, O_WRONLY|O_CREAT|O_EXCL, 0644)) {
- my($msg) = "Couldn't obtain lockfile '$pid_file' ";
- if (open(my $LOCK_FILE, '<', $pid_file)
- && ($pid = <$LOCK_FILE>))
+ my($msg) = "Couldn't obtain lockfile '$pid_file' ";
+ if (open(my $LOCK_FILE2, '<', $pid_file)
+ && ($pid = <$LOCK_FILE2>))
{
chomp($pid);
$msg .= "(PID $pid)\n";
if($server_ip =~ /^(\d\d?\d?\.){3}\d\d?\d?$/) {
my $PROC_NET_ROUTE= ('/proc/net/route');
- open(my $PROC_NET_ROUTE, "<","$PROC_NET_ROUTE")
+ open(my $PROC_NET, "<","$PROC_NET_ROUTE")
or die "Could not open $PROC_NET_ROUTE";
- my @ifs = <$PROC_NET_ROUTE>;
+ my @ifs = <$PROC_NET>;
- close($PROC_NET_ROUTE);
+ close($PROC_NET);
# Eat header line
shift @ifs;
index b87dc2113969ec18b507029f560962f4370539ba..a2ed938aee20ab713cc477fedccd5ccc31109ded 100644 (file)
-.\" Automatically generated by Pod::Man 2.1801 (Pod::Simple 3.05)
+.\" Automatically generated by Pod::Man 2.1801 (Pod::Simple 3.07)
.\"
.\" Standard preamble:
.\" ========================================================================
.\" ========================================================================
.\"
.IX Title "CLIENT.CONF 1"
-.TH CLIENT.CONF 1 "2009-12-09" "perl v5.10.0" "User Contributed Perl Documentation"
+.TH CLIENT.CONF 1 "2010-05-15" "perl v5.10.0" "User Contributed Perl Documentation"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
The gosa\-si\-client.conf file defines all parameter GOsa-SI-client needs for running and communication with GOsa-SI-server. It is normally located in the \fI/etc/gosa\-si/\fR directory and is generated automatically by the \fIgosa\-si\-client\fR\|(1) program during installation.
.SH "DIRECTIVES"
.IX Header "DIRECTIVES"
-.SS "[general]"
-.IX Subsection "[general]"
+.SS "[General]"
+.IX Subsection "[General]"
.IP "log-file = /var/run/gosa\-si\-client.log" 4
.IX Item "log-file = /var/run/gosa-si-client.log"
Defines the location for the log file.
.IP "opts-file = var/run/gosa\-si\-client.opts" 4
.IX Item "opts-file = var/run/gosa-si-client.opts"
Defines the location for the opts file.
-.SS "[client]"
-.IX Subsection "[client]"
+.SS "[Client]"
+.IX Subsection "[Client]"
.IP "port = 20083" 4
.IX Item "port = 20083"
Defines the port GOsa-SI-client is listening for incoming messages.
@@ -182,8 +182,8 @@ If set to true, client will try to get the hostname for registration from \f(CW$
.IP "system-com = disabled | enabled" 4
.IX Item "system-com = disabled | enabled"
Open a different fifo for system communication
-.SS "[server]"
-.IX Subsection "[server]"
+.SS "[Server]"
+.IX Subsection "[Server]"
.IP "ip = 127.0.0.1" 4
.IX Item "ip = 127.0.0.1"
If set GOsa-SI-client is forced to register at specified GOsa-SI-Server. If it is not set, GOsa-SI tries to register at GOsa-SI-servers found in \s-1DNS\s0.
@@ -214,7 +214,7 @@ Please report any bugs, or post any suggestions, to the GOsa mailing list <gosa\
.IX Header "LICENCE AND COPYRIGHT"
This code is part of GOsa (<http://www.gosa\-project.org>)
.PP
-Copyright (C) 2003\-2009 \s-1GONICUS\s0 GmbH
+Copyright (C) 2003\-2010 \s-1GONICUS\s0 GmbH
.PP
This program is distributed in the hope that it will be useful,
but \s-1WITHOUT\s0 \s-1ANY\s0 \s-1WARRANTY\s0; without even the implied warranty of
diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server
index 1e56d7ce7066ed3b9cdf0f9ae743cc7880d81eb5..83ac36dfbfdde01edc628c4612d1ac23e749096e 100755 (executable)
--- a/gosa-si/gosa-si-server
+++ b/gosa-si/gosa-si-server
@@ -230,11 +230,11 @@ our $check_periodic = {"months"=>'', "weeks"=>'', "days"=>'', "hours"=>'', "minu
%cfg_defaults = (
-"general" => {
+"General" => {
"log-file" => [\$log_file, "/var/run/".$prg.".log"],
"pid-file" => [\$pid_file, "/var/run/".$prg.".pid"],
},
-"server" => {
+"Server" => {
"ip" => [\$server_ip, "0.0.0.0"],
"port" => [\$server_port, "20081"],
"known-clients" => [\$known_clients_file_name, '/var/lib/gosa-si/clients.db' ],
index 2d601f5787a4b7d536c9821dd93f327dccea31fb..86e1f390ec40bb5a23cb514314cce70bb35d3e9e 100644 (file)
-.\" Automatically generated by Pod::Man 2.1801 (Pod::Simple 3.05)
+.\" Automatically generated by Pod::Man 2.1801 (Pod::Simple 3.07)
.\"
.\" Standard preamble:
.\" ========================================================================
.\" ========================================================================
.\"
.IX Title "SERVER.CONF 1"
-.TH SERVER.CONF 1 "2009-10-02" "perl v5.10.0" "User Contributed Perl Documentation"
+.TH SERVER.CONF 1 "2010-05-15" "perl v5.10.0" "User Contributed Perl Documentation"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
The gosa\-si\-server.conf file defines all parameter GOsa-SI-server needs for running. It is normally located in the /etc/gosa\-si/ directory and is generated automatically by the \fIgosa\-si\-server\fR\|(1) program during installation.
.SH "DIRECTIVES"
.IX Header "DIRECTIVES"
-.SS "[general]"
-.IX Subsection "[general]"
+.SS "[General]"
+.IX Subsection "[General]"
.IP "logfile = /var/log/gosa\-si\-server.log" 4
.IX Item "logfile = /var/log/gosa-si-server.log"
Defines the location for the log file.
.IP "pid-file = /var/run/gosa\-si\-server.pid Defines the location for the pid file." 4
.IX Item "pid-file = /var/run/gosa-si-server.pid Defines the location for the pid file."
-.SS "[server]"
-.IX Subsection "[server]"
+.SS "[Server]"
+.IX Subsection "[Server]"
.PD 0
.IP "ip = 1.2.3.4" 4
.IX Item "ip = 1.2.3.4"
.IX Subsection "[ServerPackages]"
.IP "address =" 4
.IX Item "address ="
-Comma seperated list of GOsa-si-servers (1.2.3.4:20081,9.8.7.6:123) in network where this SI-server should register. These given SI-servers extend the list of SI-servers found in \s-1DNS\s0.
+Comma separated list of GOsa-si-servers (1.2.3.4:20081,9.8.7.6:123) in network where this SI-server should register. These given SI-servers extend the list of SI-servers found in \s-1DNS\s0.
.IP "dns-lookup = true" 4
.IX Item "dns-lookup = true"
Perform a \s-1DNS\s0 lookup for server registration
Defines the lifetime in seconds of a GOsa-SI-server key. After expiring the key will be automatically renewed.
.IP "job-synchronization-enabled = true" 4
.IX Item "job-synchronization-enabled = true"
-Defines whether job queue informations are be shared with other GOsa-SI-server in network.
+Defines whether job queue information are be shared with other GOsa-SI-server in network.
.IP "synchronization-loog = 5" 4
.IX Item "synchronization-loog = 5"
Defines in seconds after which time the job queue synchronization is being done.
@@ -289,7 +289,7 @@ Space\- or comma-separated list of interfaces on which to start an ARP-Daemon. E
.IX Subsection "[Opsi]"
.IP "enabled = false" 4
.IX Item "enabled = false"
-Defines wheter Opsi integration is being enabled or not.
+Defines whether Opsi integration is being enabled or not.
.IP "server = localhost" 4
.IX Item "server = localhost"
Define the hostname of the Opsi server
index 985963da4a01e994e99d87dd0a858d8eef26fd9a..0a2e7f7a1581e7cc82b7a8f91f164f3d29ac9b24 100644 (file)
use strict;
use warnings;
-use Carp;
-use DBI;
-use GOSA::GosaSupportDaemon;
+
use Time::HiRes qw(usleep);
use Data::Dumper;
+use GOsaSI::GosaSupportDaemon;
+
use Fcntl qw/:DEFAULT :flock/; # import LOCK_* constants
+use Carp;
+use DBI;
our $col_names = {};
sub create_table {
my $self = shift;
- if(not defined($self) or ref($self) ne 'GOSA::DBsqlite') {
+ if(not defined($self) or ref($self) ne 'GOsaSI::DBsqlite') {
&main::daemon_log("0 ERROR: GOSA::DBsqlite::create_table was called static! Statement was '$self'!", 1);
return;
}
diff --git a/gosa-si/server.conf b/gosa-si/server.conf
index c4c0a37122f82245db719a739c8245e95e851ade..b8da241247ff7dda28ccae7f05df2fdb6c29bc2e 100644 (file)
--- a/gosa-si/server.conf
+++ b/gosa-si/server.conf
-[general]
+[General]
log-file = /var/log/gosa-si-server.log
pid-file = /var/run/gosa-si-server.pid
-[server]
+[Server]
max-clients = 100
ldap-uri = ldap://127.0.0.1
ldap-base = dc=your,dc=domain
index 3bc87dbc2868c9b318be850f0c83cf8d9c616034..a4159808ed670a2a481753d9ec8903ae6bdd73c6 100644 (file)
--- a/gosa-si/server.conf.pod
+++ b/gosa-si/server.conf.pod
=head1 DIRECTIVES
-=head2 [general]
+=head2 [General]
=over 4
=back
-=head2 [server]
+=head2 [Server]
=over 4