Probably a simple answer, but how do you add members to a group with the LDAP 
module?

On a test group, I have tried pushing the contents the member attibute of my 
source group into the member attribute of my destination group, but that didn't 
work.  Here is the relevant code:


my $result = $ldap->modify($sdEnt->dn(), replace => { 'member' => @memberArray 
});

if ($result->code == 0) {
        print "Group addition completed successfully.\n";
} else {
        print "!!!!!!!  Group addition failed !!!!!!!!!\n";
        print "ERROR: " . $result->error . "\n";
}


@memberArray is the list that was retrieved from the member attribute of the 
source group.  When my script hits this if() statement, it errors out with the 
following message:


!!!!!!!  Group addition failed !!!!!!!!!
ERROR: 00000057: LdapErr: DSID-0C090A85, comment: Error in attribute conversion 
operation, data 0, vece


What format is Active Directory expecting for group members?  How can I 
transform the list I get from the member attribute to the expected format?  
Thanks!

___________________________
Aaron Giuoco
Assistant Systems Admin
Atlantia Offshore Limited
e: [EMAIL PROTECTED]
ph: 281-899-4385

Reply via email to