Laboratory

Creating an NDS Object: GUI Demo

CampusblankAdminblankLibraryblankLabsblankLecturesblankTestingblankTransit Ctr
blank
PREVIOUSblankHomeblankNext View SourceDownload SourceGlossary
   

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.

Login Dialog 

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.

Create Objects Dialog 

 

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.

 

Create Objects Dialog - Created 

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.

Debug message 

Select "Delete Sample Objects" to remove the sample objects as shown below.

 

Create Objects Dialog - Delete 

Delete the sample objects when finished.



PREVIOUSblankTop of PageblankNEXT

    Contact Us | Feedback | License | © 2000 Novell, Inc.
Novell > DeveloperNet > Developer Support
Novell Developer Kit > DeveloperNet University