|
GUI Demo |
|
| |
|
|
All tasks in the LDAP lesson series are buildable Win32 applications. The GUI (Windows programming) part of the application is hidden and only the LDAP code is discussed. The main window is shown in Figure 1.
Figure 1: The main window.
Select "Perform Login," to display the login window shown in Figure 2.
Figure 2: The login window.
Use the login window to obtain an authenticated bind to an LDAP accessible directory, like NDS. The LDAP code behind this GUI is explained in the source code section of this task. 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 the "User Name" field. The password characters are not hidden to help you differentiate between programming problems and an incorrectly entered password. After entering the required information, select "Login" to call the example's source code. A successful login will show as "Logged In" in the main window (see Figure 3).
Figure 3: The main window after a successful login. |
|