diff options
Diffstat (limited to 'src/os-plugins/plugins/eduroam/OpenSLX/OSPlugin/eduroam.pm')
-rw-r--r-- | src/os-plugins/plugins/eduroam/OpenSLX/OSPlugin/eduroam.pm | 33 |
1 files changed, 30 insertions, 3 deletions
diff --git a/src/os-plugins/plugins/eduroam/OpenSLX/OSPlugin/eduroam.pm b/src/os-plugins/plugins/eduroam/OpenSLX/OSPlugin/eduroam.pm index c5c74c17..7c38a055 100644 --- a/src/os-plugins/plugins/eduroam/OpenSLX/OSPlugin/eduroam.pm +++ b/src/os-plugins/plugins/eduroam/OpenSLX/OSPlugin/eduroam.pm @@ -61,6 +61,29 @@ sub getAttrInfo content_descr => '1 means active - 0 means inactive', default => '1', }, + + 'eduroam::server_ip' => { + applies_to_systems => 1, + applies_to_clients => 1, + description => unshiftHereDoc(<<' End-of-Here'), + IP address of the eduroam backend server + End-of-Here + content_regex => qr{^.*$}, + content_descr => 'valid IP address', + default => '1', + }, + + 'eduroam::server_secret' => { + applies_to_systems => 1, + applies_to_clients => 1, + description => unshiftHereDoc(<<' End-of-Here'), + shared secret for eduroam authentication + End-of-Here + content_regex => qr{^.*$}, + content_descr => 'string of the shared secret', + default => '1', + }, + }; } @@ -90,6 +113,8 @@ sub installationPhase my $info = shift; my $engine = $self->{'os-plugin-engine'}; + + # check if libpam-radius-package is already installed my @installedPackages = $engine->getInstalledPackages(); my $found = 0; foreach (@installedPackages) { @@ -97,7 +122,7 @@ sub installationPhase $found = 1; } } - # if not found, install it + # if not, install it if ($found == 0) { vlog(0, _tr("Missing package 'libpam-radius-auth', installing...\n")); $engine->installPackages('libpam-radius-auth'); @@ -109,9 +134,11 @@ sub installationPhase my $eduroamFilesPath = "$self->{openslxBasePath}/lib/plugins/eduroam/files"; my $pluginRepoPath = "$self->{pluginRepositoryPath}"; + # copy the rest of the needed files: + # lib/security/pam_script.so - library needed by PAM-script module + # usr/share/libpam-script/* - scripts to create the local user if radius auth succeeded + # etc/pam.d/kdm/radius-auth - PAM-module for radius auth copyDir("$eduroamFilesPath", "$pluginRepoPath"); - #copyDir("$eduroamFilesPath/lib", "$pluginRepoPath"); - #copyDir("$eduroamFilesPath/etc", "$pluginRepoPath"); return; } |