Compare commits

...

2 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
2 changed files with 8 additions and 2 deletions

View File

@ -1,7 +1,7 @@
Summary: iPasserelle webSSO module
%define name ipasserelle-portal
Name: %{name}
%define version 0.2.6
%define version 0.2.8
%define release 1
Version: %{version}
Release: %{release}%{?dist}
@ -24,6 +24,12 @@ 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

View File

@ -55,7 +55,7 @@ $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'});