Compare commits

...

6 Commits

Author SHA1 Message Date
Daniel Berteaud
743653dc5d Spec file update 2015-02-11 12:56:57 +01:00
Daniel Berteaud
74634116d2 Make sure mail exported var is set 2015-02-11 12:54:09 +01:00
Daniel Berteaud
d09770c847 Set exported variables in the global scope only
As the module specific ones are not available for HTTP headers
2015-02-11 11:59:36 +01:00
Daniel Berteaud
00d6eab43d Spec file update 2014-09-02 16:58:11 +02:00
Daniel Berteaud
953d346c40 Update exportedVars for LL::NG 1.4 2014-09-02 15:14:33 +02:00
Daniel Berteaud
5f61dd75cd Spec file update 2014-02-13 15:50:46 +01:00
2 changed files with 20 additions and 3 deletions

View File

@ -1,11 +1,11 @@
Summary: iPasserelle webSSO module
%define name ipasserelle-portal
Name: %{name}
%define version 0.2.4
%define version 0.2.8
%define release 1
Version: %{version}
Release: %{release}%{?dist}
License: GPL
License: GPLv2+
URL: http://www.ipasserelle-.com/
Group: SMEserver/addon
Source: %{name}-%{version}.tar.gz
@ -24,6 +24,18 @@ BuildRequires: e-smith-devtools
Add a webSSO module based on LemonLDAP::NG
%changelog
* Wed Feb 11 2015 Daniel Berteaud <daniel@firewall-services.com> 0.2.8-1
- Make sure mail var is set
* Wed Feb 11 2015 Daniel Berteaud <daniel@firewall-services.com> 0.2.7-1
- exported vars are back in the global scope
* Tue Sep 2 2014 Daniel Berteaud <daniel@firewall-services.com> 0.2.6-1
- Update exportedVars from LDAP for Lemonldap::NG 1.4
* Thu Feb 13 2014 Daniel Berteaud <daniel@firewall-services.com> 0.2.5-1
- Fix URL for hatch.gif and lock.png in CSS
* Wed Sep 11 2013 Daniel Berteaud <daniel@firewall-services.com> 0.2.4-1
- Add iPasserelle skin for LL::NG

View File

@ -55,11 +55,16 @@ $conf->{'locationRules'}->{"sso-manager.$domain"} = {
} unless ($conf->{'locationRules'}->{"sso-manager.$domain"});
# Add default exported var
$conf->{'exportedVars'}->{'mail'} = 'preferredMail' if ($conf->{'exportedVars'}->{'mail'} eq 'mail');
$conf->{'exportedVars'}->{'mail'} = 'preferredMail' if (!$conf->{'exportedVars'}->{'mail'} || $conf->{'exportedVars'}->{'mail'} eq 'mail');
$conf->{'exportedVars'}->{'extension'} = 'extensionNumber' unless ($conf->{'exportedVars'}->{'extension'});
$conf->{'exportedVars'}->{'nom'} = 'sn' unless ($conf->{'exportedVars'}->{'nom'});
$conf->{'exportedVars'}->{'prenom'} = 'givenName' unless ($conf->{'exportedVars'}->{'prenom'});
# Remove ldapExportedVars which conflicts with exportedVars
foreach my $var (qw(mail nom prenom extension)){
delete $conf->{'ldapExportedVars'}->{$var} if ($conf->{'ldapExportedVars'}->{$var} && $conf->{'exportedVars'}->{$var});
}
# Initialize a random key
$conf->{'key'} = join( '', map { chr( int( rand(94) ) + 33 ) } ( 1 .. 16 ) ) unless ($conf->{'key'});