Using the Command-Line Tools with Your New Directory

Now that you have set up your own directory, you may want to view and modify its contents.

Directory SDK for Java includes the source code for several command-line tools that you can use to work with data in the directory. In Chapter 3 you compiled one of these tools. In the previous section we used LDAPModify to import the sample database. Now you can use these tools against the sample directory that you have set up.

Finding Entries with LDAPSearch

You can use the LDAPSearch tool to view entries in the sample directory. Here we provide some sample commands. The syntax for this tool (as well as the criteria required for performing searches) will be discussed in Chapter 5.

Use the following ...

Get LDAP Programming with Java™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.