Directory Programming .NET

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

AD LogonHours

Last post 01-30-2010, 9:45 PM by joe. 1 replies.
Sort Posts: Previous Next
  •  01-30-2010, 8:55 AM 7754

    AD LogonHours

    Hi i am using VS2008 (vb.net), how can i change logonHours of AD users? i've been searching it for a long time but i couldn't find it. i'm looking forward to hearing for your answer. Thanks...
  •  01-30-2010, 9:45 PM 7758 in reply to 7754

    Re: AD LogonHours

    This is a good question as the format this data is stored in is not particularly easy to manipulate.

    The actual documentation for the format is now available in the AD protocols documentation:

    http://msdn.microsoft.com/en-us/library/cc245621(PROT.10).aspx

    The DS programming part is easy as you are just reading and writing a byte array. The trick is creating the appropriate byte array to get the behavior you want.

    Hopefully the protocol documentation is adequate for you to figure out how to structure the data. Unfortunately I've never worked anywhere that wanted to set this value, so I've never written the code to do it.

View as RSS news feed in XML