Directory Programming .NET

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

Commit changes Error!

Last post 08-27-2008, 1:50 PM by joe. 15 replies.
Page 2 of 2 (16 items)   < Previous 1 2
Sort Posts: Previous Next
  •  08-27-2008, 1:50 PM 4515 in reply to 4512

    Re: Commit changes Error!

    The first check should work fine although you won't see any effective change if the value isn't different.  However, if you just want to force data into AD, why not do this?

    if (! oEmployee.TelephoneNumber == null)

    {

    dentry.Properties["telephoneNumber"].Value = oEmployee.TelephoneNumber;

    }

    It seems like your key problem is that you are sometimes trying to put null values from SQL into AD which is failing whereas your goal is to always overwrite AD with the data from SQL anyway, so why not just code that?

Page 2 of 2 (16 items)   < Previous 1 2
View as RSS news feed in XML