X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=lib%2FLiCoM%2FGroup.pm;h=39fd540d0d56a82f3edbf99cda637785c3d6b95b;hb=9dcc2bdbad9017fc62b6f80937f1b305648b4c37;hp=79530f11796476a4900183d1268184628225d84a;hpb=4c5254efaa25f9fbb401ea66cee3430bcde41bd2;p=licom.git diff --git a/lib/LiCoM/Group.pm b/lib/LiCoM/Group.pm index 79530f1..39fd540 100644 --- a/lib/LiCoM/Group.pm +++ b/lib/LiCoM/Group.pm @@ -118,7 +118,7 @@ sub create ($$$@) $entry->add (ou => $ou); $entry->add (cn => $name); $entry->add (member => [map { _cn_to_dn ($_) } (@members)]); - $entry->add (description => $desc); + $entry->add (description => $desc) if ($desc); $entry->dn ($dn); $entry->changetype ('add'); @@ -296,7 +296,7 @@ sub description $obj->{'description'} = shift; $entry->changetype ('modify'); - $entry->replace (description => $obj->{'description'}); + $entry->replace (description => [$obj->{'description'}]); $entry->update ($Ldap); }