hi,
creating a group with nested groups in it fails with error
NameErr: DSID-03050C55, problem 2003 (BAD_ATT_SYNTAX), data 0, best match
of:
in ldap AD 2008r2
This is the code:
my $nested_group = "HRM - Management";
my $dn = "cn=$nested_group,$test_base";
my @groups = (
"cn=hrm - management - mt,$test_base",
"cn=hrm - management - directie,$test_base"
);
my $result = $ldaptest->add(
"$dn",
attrs => [
'objectclass' => [qw/top group/],
'cn' => "cn=$nested_group",
'samAccountName' => "$nested_group",
'grouptype' => 0x80000002,
'member' => [@groups],
]
);
$result->code && warn "failed to add group $dn ", $result->error;
Adding users is no problem. Do you know what I'm doing wrong?
Thanks!
--
Groeten,
natxo