directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@apache.org>
Subject Re: [ApacheDS] Using LdifEntry with a ModifyOperationContext
Date Wed, 18 Mar 2009 18:09:28 GMT
Yiannis Mavroukakis wrote:
> Or maybe there is!..Almost a result, I am doing this now,
>
>  List<Modification> modItems = ServerEntryUtils.toServerModification(
>                                ldifEntry.getModificationItemsArray( ) ,
>                                directoryService.getRegistries( 
> ).getAttributeTypeRegistry( ) );
>                       modOp.modify( ldifEntry.getDn( ) , modItems 
> ,clusterBypass );
>
> Modification: replace
> , attribute :     entryCSN: '0x32 0x30 0x30 0x39 0x30 0x33 0x31 0x31 
> 0x31 0x37 0x33 0x31 0x33 0x31 0x2E 0x30 ...'
>
> It now blows up with the following exception,
>
> javax.naming.NoPermissionException: Cannot modify the attribute 
> 'entryCSN']
>
> Why is it not possible to modify this? Is this a per-server unique 
> value? And if so I assume it won't hurt if I don't include it in the 
> Modification List in ldifEntry?
It's an operational Attribute. Only the server can modify it.

-- 
--
cordialement, regards,
Emmanuel L├ęcharny
www.iktek.com
directory.apache.org



Mime
View raw message