TAILIEUCHUNG - Active Directory Cookbook for windows server 2003- P19

Active Directory Cookbook for windows server 2003- P19:If you are familiar with the O'Reilly Cookbook format that can be seen in other popular books, such as the Perl Cookbook, Java Cookbook, and DNS and BIND Cookbook, then the layout of this book will not be anything new to you. The book is composed of 18 chapters, each containing 10-30 recipes for performing a specific Active Directory task. Within each recipe are four sections: problem, solution, discussion, and see also. | Using VBScript The VBScript solution required quite a bit of code to perform a simple task printing out the account lockout and password policy settings. First I created a Dictionary object with each of the six attributes as the keys and the unit s designation for each key . minutes as the value. I then iterated over each key printing it along with the value retrieved from the domain object. Some additional code was necessary to distinguish between the values returned from some of the attributes. In the case of the time-based attributes such as lockoutDuration a lADsLargeinteger object was returned from the Get method instead of a pure integer or string value. lADsLargeinteger objects represent 64-bit also known as Integer8 numbers. 32-bit systems which make up the majority of systems today have to break 64-bit numbers into two parts a high and low part in order to store them. Unfortunately VBScript cannot natively handle a 64-bit number and stores it as a double precision. To convert a 64-bit number into something VBScript can handle we have to first multiply the high part by 4 294 967 296 2A32 and then add the low part to the result. value Abs 2A32 Then I divided by 10 000 000 or 10A7 which represents the number of 100 nanosecond intervals per second. value int value 10000000 I then used the int function to discard any remainder and finally divided the result by 60 number of seconds . value int value 60 Note that the result is only an approximation in minutes and can be off by several minutes hours or even days depending on the original value. The last part of the code iterates over another Dictionary object that contains constants representing various flags that can be set as part of the pwdProperties attribute. See Also MS KB 221930 Domain Security Policy in Windows 2000 MS KB 255550 Configuring Account Policies in Active Directory MSDN IADsLargeInteger and MSDN DOMAIN_PASSWORD_INFORMATION Recipe

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.