commit
731b2cc4b7
7 changed files with 99 additions and 0 deletions
@ -0,0 +1,8 @@ |
||||
#!/usr/bin/perl -w |
||||
|
||||
use esmith::Build::CreateLinks qw(:all); |
||||
|
||||
templates2events("/etc/pam_cas.conf", qw( |
||||
bootstrap-console-save |
||||
webapps-update |
||||
)); |
@ -0,0 +1,6 @@ |
||||
{ |
||||
|
||||
my $host = $pam_cas{'Host'} || 'auth.'. $DomainName; |
||||
$OUT .= "host $host\n"; |
||||
|
||||
} |
@ -0,0 +1,9 @@ |
||||
{ |
||||
|
||||
my $port = $pam_cas{'Port'} || ''; |
||||
|
||||
return '' unless ($port ne ''); |
||||
|
||||
$OUT .= "port $port\n"; |
||||
|
||||
} |
@ -0,0 +1,7 @@ |
||||
{ |
||||
|
||||
my $uri = $pam_cas{'UriValidate'} || '/cas/proxyValidate'; |
||||
|
||||
$OUT .= "uriValidate $uri\n"; |
||||
|
||||
} |
@ -0,0 +1,9 @@ |
||||
{ |
||||
|
||||
my $debug = $pam_cas{'Debug'} || 'disabled'; |
||||
|
||||
return "" unless ($debug eq 'enabled'); |
||||
|
||||
$OUT .= 'debug on'; |
||||
|
||||
} |
@ -0,0 +1,7 @@ |
||||
{ |
||||
|
||||
my $ca = $pam_cas{'CaCert'} || '/etc/pki/tls/certs/ca-bundle.crt'; |
||||
|
||||
$OUT .= "trusted_ca $ca\n"; |
||||
|
||||
} |
@ -0,0 +1,53 @@ |
||||
%define version 0.2.0 |
||||
%define release 1 |
||||
%define name smeserver-pam_cas |
||||
|
||||
|
||||
Summary: Simple pam_cas integration on SME Server |
||||
Name: %{name} |
||||
Version: %{version} |
||||
Release: %{release}%{?dist} |
||||
License: GPL |
||||
Group: Networking/Daemons |
||||
Source: %{name}-%{version}.tar.gz |
||||
|
||||
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
||||
BuildArchitectures: noarch |
||||
BuildRequires: e-smith-devtools |
||||
|
||||
Requires: e-smith-base |
||||
Requires: pam_cas |
||||
|
||||
%description |
||||
Simple pam_cas integration on SME Server |
||||
|
||||
%changelog |
||||
* Wed Sep 18 2013 Daniel Berteaud <daniel@firewall-services.com> 0.2.0-1 |
||||
- Import in GIT |
||||
- use /etc/pki/tls/certs/ca-bundle.crt as default CA file |
||||
|
||||
* Tue Feb 21 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1-1 |
||||
- Initial release |
||||
|
||||
%prep |
||||
%setup -q -n %{name}-%{version} |
||||
|
||||
%build |
||||
perl createlinks |
||||
|
||||
%install |
||||
/bin/rm -rf $RPM_BUILD_ROOT |
||||
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
||||
/bin/rm -f %{name}-%{version}-filelist |
||||
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
||||
> %{name}-%{version}-filelist |
||||
|
||||
%files -f %{name}-%{version}-filelist |
||||
%defattr(-,root,root) |
||||
|
||||
%clean |
||||
rm -rf $RPM_BUILD_ROOT |
||||
|
||||
%post |
||||
%preun |
||||
|
Loading…
Reference in new issue