Setting Empty Property Values in ADAM

Giganews Newsgroups
Subject: Setting Empty Property Values in ADAM
Posted by:  Indigenous (Indigeno…@discussions.microsoft.com)
Date: Fri, 8 Sep 2006

Hi

When I use .NET Framework 1.1 (DirectoryServices) to set an AD Property
Value, all is well even if the property doesn't yet have a value.

However, if i do the same call against ADAM I get the exception "The
specified directory service attribute or value does not exist." when I call
commitChanges.

Despite the fact that the property is not in the property array as it has no
current value, AD seems to magically handle it and add it. ADAM doesn't.

Can anyone help, i've included my code for clarity.

objDE.Properties(v_strPropName).Value = strPropValue
objDE.CommitChanges()

Replies