locked
How to reset an attribute while updating a user ? RRS feed

  • Question

  • User-29713835 posted
    Hello,

    I don't know how to reset an attribute of an active directory user in asp .net.
    For example :

    (...)
    mydirectoryentry.properties("TelephoneNumber").value = ""
    mydirectoryentry.commitchanges

    fails.

    Thank you in advance,
    Emmanuel.
    Thursday, March 16, 2006 12:06 PM

All replies

  • User-29713835 posted
    Hello,

    I think i found the solution. I have to use the "clear" method.

    mydirectoryentry.properties("TelephoneNumber").clear()
    mydirectoryentry.commitchanges

    Thank you.
    By the way, Dunnry, you are helpful to us all. Thanks.
    Friday, March 17, 2006 3:48 AM