update resource object user

Hi,

I'm trying to update an AD resourceObject of type User.

I'm constructing my generic object but i guess i'm missing something.

I keep getting the error:

Unable to set user info: 'SetInfo(): 0X80072035: , 00002016: SvcErr: DSID-031A0FC0, problem 5003 (WILL_NOT_PERFORM), data 0 , The server is unwilling to process the request.

The only thing I want is to update the groups attribute. So I want to add groups to a user.

Here's my object:

<Object>

<Attribute name='attributes'>

<Object>

<Attribute name='cn' value='Gebruiker 1'/>

<Attribute name='distinguishedName' value='CN=Gebruiker 1,OU=COO,OU=User Accounts,OU=Accounts,DC=MOTESTALFA,DC=MOTESTTOP,DC=VLAANDEREN,DC=BE'/>

<Attribute name='groups'>

<List>

<String>CN=BOB_BZ_EIB_Users,OU=Security Groups,OU=Groups,DC=MOTESTALFA,DC=MOTESTTOP,DC=VLAANDEREN,DC=BE</String>

<String>CN=B_EIB_GRP1_ROOTFOLDER_R,OU=Security Groups,OU=Groups,DC=MOTESTALFA,DC=MOTESTTOP,DC=VLAANDEREN,DC=BE</String>

</List>

</Attribute>

<Attribute name='objectGUID' value='0906e386182f6543a406b7424679bc9d'/>

<Attribute name='samAccountName' value='Gebruiker1'/>

</Object>

</Attribute>

<Attribute name='objectId' value='CN=Gebruiker 1,OU=COO,OU=User Accounts,OU=Accounts,DC=MOTESTALFA,DC=MOTESTTOP,DC=VLAANDEREN,DC=BE'/>

<Attribute name='objectName' value='Gebruiker1'/>

<Attribute name='objectType' value='User'/>

<Attribute name='resourceId' value='#ID#AD_MOTESTALFA'/>

<Attribute name='resourceName' value='AD_MOTESTALFA'/>

<Attribute name='resourceType' value='Windows Active Directory'/>

</Object>

Any help is welcome.

Kevin

[2516 byte] By [kevinmaes] at [2007-11-26 10:17:39]
# 1

Kevin,

The suggestion below is based on the assumption that you are using the standard LDAP resource adapter to manage AD groups associated with users.

To manage AD groups check the following:

* Set the resource attribute "Group Member Attr" to "member".

* Edit the resource schema to map the relevant identity attribute to the resource attribute "ldapGroups".

Reference:

http://docs.sun.com/source/819-4520/LDAP.html

http://docs.sun.com/source/819-4486/ldap_scenario.html

HTH,

Chetan Desai

Persistent Systems

cmd at 2007-7-7 2:12:45 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2
Thanks for your help but i solved that problemI think the parameter objectType was wrong
kevinmaes at 2007-7-7 2:12:45 > top of Java-index,Web & Directory Servers,Directory Servers...