initial commit of file from CVS for e-smith-oidentd on Wed 12 Jul 09:01:42 BST 2023
This commit is contained in:
@@ -0,0 +1 @@
|
||||
113
|
@@ -0,0 +1 @@
|
||||
public
|
@@ -0,0 +1 @@
|
||||
disabled
|
1
root/etc/e-smith/db/configuration/defaults/oidentd/type
Normal file
1
root/etc/e-smith/db/configuration/defaults/oidentd/type
Normal file
@@ -0,0 +1 @@
|
||||
service
|
10
root/etc/e-smith/db/configuration/migrate/20Auth
Normal file
10
root/etc/e-smith/db/configuration/migrate/20Auth
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
my $auth = $DB->get('auth');
|
||||
my $oidentd = $DB->get('oidentd');
|
||||
if ($auth)
|
||||
{
|
||||
$oidentd ||= $DB->new_record('oidentd', {type => 'service'});
|
||||
$oidentd->merge_props($auth->props);
|
||||
$auth->delete;
|
||||
}
|
||||
}
|
@@ -0,0 +1,27 @@
|
||||
{
|
||||
use esmith::util;
|
||||
|
||||
#--------------------------------------------------
|
||||
# Compute local IP address, netmask and network values.
|
||||
#--------------------------------------------------
|
||||
|
||||
my $ipaddrBits = esmith::util::IPquadToAddr ($LocalIP);
|
||||
my $netmaskBits = esmith::util::IPquadToAddr ($LocalNetmask);
|
||||
my $networkBits = $ipaddrBits & $netmaskBits;
|
||||
|
||||
#--------------------------------------------------
|
||||
# Compute our hostid, and the highest hostid, limiting range
|
||||
# to a class B at most (so we don't get a huge output file).
|
||||
#--------------------------------------------------
|
||||
|
||||
my $myHostid = (~ $netmaskBits) & $ipaddrBits;
|
||||
|
||||
my $maxHostid = ((~ $netmaskBits) & 0xffffff) - 1;
|
||||
$maxHostid = ($maxHostid <= 65534) ? $maxHostid : 65534;
|
||||
|
||||
for ($i = 1; $i <= $maxHostid; $i++)
|
||||
{
|
||||
my $ip = esmith::util::IPaddrToQuad ($networkBits | $i);
|
||||
$OUT .= "$ip\tuser$i\t\tUNIX\n";
|
||||
}
|
||||
}
|
@@ -0,0 +1 @@
|
||||
OIDENTD_OPTIONS="-m -t 10 -q -u daemon -g daemon"
|
@@ -0,0 +1,3 @@
|
||||
[Service]
|
||||
ExecStartPre=/sbin/e-smith/service-status oidentd
|
||||
|
0
root/var/log/oidentd/.gitignore
vendored
Normal file
0
root/var/log/oidentd/.gitignore
vendored
Normal file
Reference in New Issue
Block a user