Skip to content

Commit

Permalink
Merge pull request #658 from Johaney-s/ad_group_mu_ucn
Browse files Browse the repository at this point in the history
fix(ad_group_mu_ucn): use Base64 in ldif description
  • Loading branch information
cuadradek authored Jan 13, 2022
2 parents 8857065 + 8679115 commit db46074
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gen/ad_group_mu_ucn
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ use strict;
use warnings;
use perunServicesInit;
use perunServicesUtils;
use MIME::Base64;
use Encode;
no if $] >= 5.017011, warnings => 'experimental::smartmatch';

local $::SERVICE_NAME = "ad_group_mu_ucn";
Expand Down Expand Up @@ -101,7 +103,7 @@ for my $group (sort keys %$groups) {
print FILE "dn: CN=" . $group . "," . $groups->{$group}->{$A_R_ADOUNAME} . "\n";
print FILE "cn: " . $group . "\n";
print FILE "samAccountName: " . $group . "\n";
print FILE "description: " . $groups->{$group}->{"description"} . "\n";
print FILE "description:: " . encode_base64($groups->{$group}->{"description"}) . "\n";
print FILE "info: perun\@muni.cz\n";
print FILE "objectClass: group\n";
print FILE "objectClass: top\n";
Expand Down

0 comments on commit db46074

Please sign in to comment.