Remove a Active Directory User object attribute

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • S Lemen

    #1

    Remove a Active Directory User object attribute

    Hi,

    How are Active Directory user object attributes removed in VB .Net? The
    remove method succeeds but the CommitChanges errors with:

    "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 mDBOverHardQuot aLimit attribute exists for that user object

    oAdDirEntry.Pro perties("mDBOve rHardQuotaLimit ").Remove("mDBO verHardQuotaLim it")
    oAdDirEntry.Com mitChanges()

    Thank you,

    S. Lemen
Working...