Re: Adding group to AD: 0000207B: UpdErr: DSID-03050FB5, problem 6002 (OBJ_CLASS_VIOLATION)

Alexander Farber <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.ldap
Message-ID <[email protected]>
Hello, additional information:

On Thu, Mar 12, 2009 at 1:32 PM, Alexander Farber
<[email protected]> wrote:
> use constant ROOTDN   => 'OU=NIS Groups,DC=internal,DC=mycompany,DC=com';
> .......
> while (my ($key, $value) = each %passwd) {
>        print "$key -> $value\n";
>
>        my ($Name, $GidNumber, $PosixMember) = (split ':', $value)[0, 2, 3];
>
>        print "Name: $Name\n";
>        print "GidNumber: $GidNumber\n";
>        print "PosixMember: $PosixMember\n" if defined $PosixMember;
>
>        my $dn = "cn=$Name," . ROOTDN;
>        print "dn: $dn\n\n";
>
>        my $result = $ldap->add($dn, attrs => [
>                msSFU30GidNumber => $GidNumber,
>                msSFU30Name => $Name,
>                msSFU30NisDomain => 'internal',
>                #msSFU30PosixMember => $PosixMember,
>        ] );
>
>        $result->code && print STDERR 'Failed to add group: ',
> $result->error, "\n";
> }
>
> This gives me the error:
>
> calibrat -> calibrat:*:5522:herman,hufeis,konop
> Name: calibrat
> GidNumber: 5522
> PosixMember: herman,hufeis,konop
> dn: cn=calibrat,OU=NIS Groups,DC=internal,DC=mycompany,DC=com
>
> Failed to add group: 0000207B: UpdErr: DSID-03050FB5, problem 6002
> (OBJ_CLASS_VIOLATION), data 0

if I add
                objectCategory => 'Group',
                objectClass => 'group',

I get the new error:

Failed to add group: 000020B5: AtrErr: DSID-031522A8, #1:
        0: 000020B5: DSID-031522A8, problem 1005
(CONSTRAINT_ATT_TYPE), data 0, Att 9030e (objectCategory)

Has anybody had a similar problem when creating a group in AD please?

Regards
Alex
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.