Add a new EmailPrimaryDomain prop to user accounts

To control how unqualified pseudonymes are created in LDAP
tags/ipasserelle-base-0.2.65-1 0.2.45_el5
Daniel Berteaud 10 years ago
parent 65c1710c08
commit cb4fbc5689
  1. 2
      root/etc/e-smith/events/actions/update-ldap-pseudonyms

@ -119,7 +119,7 @@ foreach my $acct (@accounts){
my @alias = ();
foreach (@pseudo){
$_ = $_ . "\@$domain" if $_ !~ /\@/;
$_ = $_ . "\@" . ($acct->prop('EmailPrimaryDomain') || $domain) if $_ !~ /\@/;
push (@alias, unac_string(decode('utf-8',$_)));
}
@alias = uniq(@alias);

Loading…
Cancel
Save