TAILIEUCHUNG - Active Directory Cookbook for windows server 2003- P55

Active Directory Cookbook for windows server 2003- P55: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. | robustness of ADSI. Documentation for the Win32 OLE module can be found at http ASPN Perl Products ActivePerl site lib Win32 . See Also http to download Perl modules Recipe Programming with Java Problem You want to programmatically access Active Directory using Java. Solution The Java Naming and Directory Interface JNDI is a standard extension to Java that can be used to access a variety of naming and directory services including DNS and LDAP. JNDI is part of the Java Enterprise API set and is documented on the following site http products jndi . JNDI provides an object-oriented interface to programming with LDAP and is not based on the LDAP C API which many other LDAP API s are based on. The following code uses JNDI to print out the RootDSE for the host DC1 Print the RootDSE for DC1 usage java RootDSE import . import . class RootDSE public static void main String args try Create initial context. DirContext ctx new InitialDirContext Read attributes from root DSE. Attributes attrs ldap DC1 new String Get a list of the attributes. NamingEnumeration enums Print out each attribute and its values. while enums null String nextattr String nextattr 551 Close the context. catch NamingException e Discussion Any serious Java programmer should be familiar with JNDI. It is a generic interface that can be used with a variety of services not least of which includes Active Directory. A good tutorial on JNDI is available on Sun s web site http products jndi tutorial . See Also Sun s JNDI home page http products jndi Recipe Programming with Python Problem You want to programmatically access Active Directory using Python. Solution As with Perl you have two options for programming Active Directory with

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.