O'Reilly logo

LDAP Programming with Java™ by Tony Dahbura, Rob Weltman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required