470,596 Members | 1,564 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,596 developers. It's quick & easy.

DirectoryServices: Remove user object property

Hi,

The CommitChanges method returns an error after earlier property
..Remove methods are successfull.

The error is:

"The attribute syntax specified to the directory service is invalid."

'code:
' oAdDirEntry is a Directory Services DirectoryEntry object, which is
an AD user object.
'The mDBOverHardQuotaLimit attribute exists for that user object

oAdDirEntry.Properties("mDBOverHardQuotaLimit").Re move("mDBOverHardQuotaLimit")
oAdDirEntry.CommitChanges()

Thank you for your help,

S. Lemen

Aug 29 '05 #1
3 4236
>' oAdDirEntry is a Directory Services DirectoryEntry object, which is
an AD user object.
'The mDBOverHardQuotaLimit attribute exists for that user object

oAdDirEntry.Properties("mDBOverHardQuotaLimit").R emove("mDBOverHardQuotaLimit")
oAdDirEntry.CommitChanges()


Try the .Clear() method:

oAdDirEntry.Properties("mDBOverHardQuotaLimit").Cl ear();
oAdDirEntry.CommitChanges()

Does this work by any chance?

Marc
================================================== ==============
Marc Scheuner May The Source Be With You!
Berne, Switzerland m.scheuner -at- inova.ch
Aug 29 '05 #2
Yes, that worked.

Thank you.

S. Lemen

Aug 29 '05 #3
The reason that doesn't work is that you have to specify the value to remove
(and not the attribute name). You can conceive this as a kind of double
check althought it is actually necessary only when you want to remove one
specific value of a multi-valued attribute

/LM

"Marc Scheuner [MVP ADSI]" <m.********@inova.SPAMBEGONE.ch> wrote in message
news:3f********************************@4ax.com...
' oAdDirEntry is a Directory Services DirectoryEntry object, which is
an AD user object.
'The mDBOverHardQuotaLimit attribute exists for that user object

oAdDirEntry.Properties("mDBOverHardQuotaLimit"). Remove("mDBOverHardQuotaLimit")
oAdDirEntry.CommitChanges()


Try the .Clear() method:

oAdDirEntry.Properties("mDBOverHardQuotaLimit").Cl ear();
oAdDirEntry.CommitChanges()

Does this work by any chance?

Marc
================================================== ==============
Marc Scheuner May The Source Be With You!
Berne, Switzerland m.scheuner -at- inova.ch

Aug 29 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Sean | last post: by
reply views Thread by news.microsoft.com | last post: by
6 posts views Thread by bugnthecode | last post: by
5 posts views Thread by Peter Bradley | last post: by
7 posts views Thread by =?Utf-8?B?SmVycnkgQw==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.