develooper Front page | perl.ldap | Postings from December 2015

NameErr: DSID-03050C55, problem 2003 (BAD_ATT_SYNTAX) when addinggroup with nested group

Thread Next
From:
Natxo Asenjo
Date:
December 16, 2015 09:31
Subject:
NameErr: DSID-03050C55, problem 2003 (BAD_ATT_SYNTAX) when addinggroup with nested group
Message ID:
CAHBEJzWdMSx4TgeEvbRps8-5kswFfCcUTLa+cNMpBY0Fn3Npmg@mail.gmail.com
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

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About