* Tue Nov 12 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-8.sme

- fix Use of uninitialized value [SME: 12760]
This commit is contained in:
2024-11-12 12:10:36 -05:00
parent 1b0024751e
commit 03edae6bee
3 changed files with 8 additions and 917 deletions

View File

@@ -160,11 +160,11 @@ sub ldapaddgroup {
);
if ($type eq "group") {
$attrs{'description'} = $self->stringToASCII($acct->prop('Description') || $acctName );
$attrs{'mail'} = $acct->prop("$acctName\@$domain");
$attrs{'mail'} = "$acctName\@$domain";
}
if ($type eq "ibay") {
$attrs{'description'} = $self->stringToASCII($acct->prop('Name') || $acctName );
#$attrs{'mail'} = $acct->prop("$acctName\@$domain");# we might want to set email for ibay there?
#$attrs{'mail'} = "$acctName\@$domain";# we might want to set email for ibay there?
$attrs{'objectClass'} = ['posixGroup'];
}
if ($type eq "machine") {
@@ -205,11 +205,11 @@ sub ldapmodgroup {
);
if ($type eq "group") {
$attrs{'description'} = [ $self->stringToASCII($acct->prop('Description') || $acctName ) ];
$attrs{'mail'} = [ $acct->prop("$acctName\@$domain") ];
$attrs{'mail'} = [ "$acctName\@$domain" ];
}
if ($type eq "ibay") {
$attrs{'description'} = [ $self->stringToASCII($acct->prop('Name') || $acctName ) ] ;
#$attrs{'mail'} = [ $acct->prop("$acctName\@$domain") ];
#$attrs{'mail'} = [ "$acctName\@$domain" ];
}
# if type user we add nothing
#get current content