|
Creating an NDS Object: GUI Demo |
|
| |
|
|
All examples in the LDAP task series are buildable Win32 applications.The GUI (Windows programming) part of the application is hidden. Only the LDAP code is discussed. The "Log In Dialog" figure below shows the login window.
By using the login window, a user can obtain an authenticated bind to an LDAP accessible directory like NDS. For more information, refer to Obtaining an Authenticated Connection to NDS Using C and LDAP. Accurate information must be entered in each of the login window fields for an authenticated bind to occur. Directory Server should contain the DNS name or IP address of the server running LDAP Services for NDS. User Name should contain the distinguished name describing the location of the user object that is being used to authenticate the connection (i.e., cn=admin, o=my organization). For more information on how to construct an LDAP distinguished name, refer to Building an LDAP Distinguished Name. Password should contain the password associated with the user object entered in "User Name." The password characters are not hidden to help you differentiate between programming problems and an incorrectly entered password.
Select "Create Sample Objects" in the main window to create the following three objects: 1. An organization named SampleO at the root of the directory tree. 2. An organizational unit named SampleOU inside of SampleO. 3. A InetOrgPerson (User) named James Doe inside of SampleO.
These same object names are used for objects in other task examples. If the sample object entries already exist in the directory, you will receive an error when you select "Create Employee." This is shown in the following figure.
Select "Delete Sample Objects" to remove the sample objects as shown below.
Delete the sample objects when finished. |
|