Directory Programming .NET

Active Directory and ADAM programming support for .NET developers
Welcome to Directory Programming .NET Sign in | Join | Help
in Search

Custom log shows update is a success, But non changes seen in AD.

Last post 01-26-2010, 10:12 PM by mliben. 2 replies.
Sort Posts: Previous Next
  •  01-19-2010, 9:38 PM 7735

    Custom log shows update is a success, But non changes seen in AD.

    Joe, All,

      we have written a code for bulk update of users from a CSV file. It updates each attribute and checks if update is a success by trying to commit and then writes a success/ failure message on to a log file accordingly.

     Now, the problem is recently we noticed that for some attributes, even though the log file showed that the attribute update was a success, on checking the AD no changes were reflected there.

    The code is very basic, in a gist the code is
    Attribute = value;
    try(commit){//log update success and continue;}
    catch{//log update failure}

    FYI - there are nearly 2500 user objects updated.
    Any suggestions on this as to why it might happen?

    Thanks,
    Ajit S

  •  01-20-2010, 5:36 PM 7737 in reply to 7735

    Re: Custom log shows update is a success, But non changes seen in AD.

    Every time I've ever seen this, the problem was related to the data being passed in or a bug in the code that resulted in no change actually being requested.  Are you absolutely sure your code is actually doing something that would result in a change?
  •  01-26-2010, 10:12 PM 7743 in reply to 7737

    Re: Custom log shows update is a success, But non changes seen in AD.

    What is the nature of the change you are making? If you are changing the case of an existing value, then the directory will report a success because the case-insensitive value already exists. I've noticed this one when trying to change primary (Reply-To) addresses for Exchange mailboxes.
View as RSS news feed in XML