Downloading and Installing Netscape Directory Server in Java

Generation QR Code ISO/IEC18004 in Java Downloading and Installing Netscape Directory Server
Downloading and Installing Netscape Directory Server
QR Code Generator In Java
Using Barcode maker for Java Control to generate, create QR image in Java applications.
FIGURE 4-3 Choose installation directory
Barcode Generator In Java
Using Barcode encoder for Java Control to generate, create bar code image in Java applications.
After you nish the Express Installation, you can set up the sample database provided on the CD-ROM that accompanies this book
Bar Code Scanner In Java
Using Barcode scanner for Java Control to read, scan read, scan image in Java applications.
Setting Up the Sample Database
Creating QR Code In Visual C#
Using Barcode creation for Visual Studio .NET Control to generate, create Denso QR Bar Code image in VS .NET applications.
The CD-ROM includes a sample database for a company It will be used throughout this book, so you need to import this database into your directory The sample database uses the naming context (the top of the directory tree) o=Airiuscom There is no standard way to create a naming context in a directory If you installed Netscape Directory Server and chose Express Installation, the naming context has already been created With Novell Directory Services version 8, you must use NWAdmin or one of the other administrative tools to create the naming context before you can import the database Other servers require other procedures
Quick Response Code Printer In Visual Studio .NET
Using Barcode generator for ASP.NET Control to generate, create Quick Response Code image in ASP.NET applications.
Setting Up Your Own Directory
QR Code ISO/IEC18004 Encoder In .NET
Using Barcode encoder for VS .NET Control to generate, create QR Code JIS X 0510 image in .NET applications.
FIGURE 4-4 Select products
QR Code 2d Barcode Generation In Visual Basic .NET
Using Barcode encoder for .NET framework Control to generate, create Quick Response Code image in .NET applications.
To import the data, you can use the LDAPModify command-line tool in the SDK:
Barcode Maker In Java
Using Barcode creation for Java Control to generate, create bar code image in Java applications.
java LDAPModify -c -a -D "cn=Directory Manager" -w <password> -f <CDROM>/ldif/airiusplusldif
Creating UPC-A Supplement 5 In Java
Using Barcode drawer for Java Control to generate, create UPC-A Supplement 5 image in Java applications.
Replace cn=Directory Manager with the DN of a privileged user if you do not have an administrative user with that DN Replace <password> with the password for the user, and <CDROM> with the location of the CD-ROM The speci ed options tell the command to add all entries in the le airiusplusldif, to continue if it encounters an error (for example, if an entry already exists in the directory), to use the speci ed authentication DN and password, and to import data from the airiusplusldif le Figure 4-7 illustrates part of the hierarchy of the sample directory Entries representing users are located under the ou=People, o=airiuscom entry Entries representing groups are located under the ou=Groups, o=airiuscom entry
GS1 128 Maker In Java
Using Barcode maker for Java Control to generate, create UCC - 12 image in Java applications.
Using the Command-Line Tools with Your New Directory
Bar Code Creation In Java
Using Barcode creator for Java Control to generate, create barcode image in Java applications.
FIGURE 4-5 Select Administrator ID and password
DataMatrix Maker In Java
Using Barcode creator for Java Control to generate, create Data Matrix image in Java applications.
Using the Command-Line Tools with Your New Directory
Paint ISSN - 13 In Java
Using Barcode generator for Java Control to generate, create ISSN image in Java applications.
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 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
Bar Code Reader In Java
Using Barcode reader for Java Control to read, scan read, scan image in Java applications.
Finding Entries with LDAPSearch
Data Matrix 2d Barcode Generation In C#
Using Barcode creation for Visual Studio .NET Control to generate, create Data Matrix 2d barcode image in VS .NET applications.
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 5
Bar Code Generation In .NET Framework
Using Barcode creator for .NET framework Control to generate, create barcode image in .NET framework applications.
Setting Up Your Own Directory
Paint Code128 In C#.NET
Using Barcode maker for VS .NET Control to generate, create Code 128B image in Visual Studio .NET applications.
FIGURE 4-6 Select Directory Manager ID and password
Bar Code Creator In Visual Studio .NET
Using Barcode printer for ASP.NET Control to generate, create bar code image in ASP.NET applications.
o=airiuscom
Painting Data Matrix 2d Barcode In .NET
Using Barcode creation for Visual Studio .NET Control to generate, create Data Matrix image in .NET applications.
ou=People, o=airiuscom
Bar Code Generation In .NET
Using Barcode maker for VS .NET Control to generate, create bar code image in VS .NET applications.
ou=Groups, o=airiuscom
uid=bjensen, ou=People, o=airiuscom
cn=HR Managers, ou=Groups, o=airiuscom
FIGURE 4-7 Structure of the Airius database
Using the Command-Line Tools with Your New Directory
Use the following command to nd Barbara Jensen s entry in the directory:
java LDAPSearch -b "o=airiuscom" "uid=bjensen"
hese examples assume that your directory is running on the same machine as Directory SDK for Java The examples also assume that the server is running on port 389 If these assumptions are not correct, use the -h <hostname> option to specify the host name or IP address of directory server, and use the -p <port number> option to specify the directory server port
Use the following command to nd any entry with the last name Jensen in Airiuscom:
java LDAPSearch -b "o=airiuscom" "sn=jensen"
Use the following command to display the e-mail addresses and telephone numbers of any entry with the last name Jensen in Airiuscom:
java LDAPSearch -b "o=airiuscom" "sn=jensen" mail telephoneNumber
Use the following command to nd all entries at one level under the o=airius
com entry:
java LDAPSearch -b "o=airiuscom" -s one "objectclass=*"
Use the following command to nd all entries under the ou=People, o=airius com entry:
java LDAPSearch -b "ou=People, o=airiuscom" "objectclass=*"
Adding Entries to the Directory
To add an entry to the directory, you can use the LDAPModify command-line tool Use the following syntax:
java LDAPModify -a [options]
The -a option indicates that you want to add entries to the directory Some of the basic options you may want to specify include the following:
Setting Up Your Own Directory
-h <hostname> Use this option to specify the host name or the IP address of Directory Server If you have a directory server running on the same machine as Directory SDK for Java, you do not need to specify this option By default, LDAPModify uses localhost as the host name -p <port number> Use this option to specify the port number of directory server If your directory server is running on port 389 (the default port for LDAP), you do not need to specify this option By default, LDAPModify uses 389 as the port number -D <bind DN> Use this option to specify the distinguished name of the user that you want to authenticate as The sample Airiuscom directory is set up to restrict most users from adding entries to it One of the few users with permission to add an entry is the Directory Manager (whose DN and password you selected when you installed Directory Server) To add entries, you need to specify the -D <bind DN> option to authenticate as the Directory Manager -w <password> Use this option to specify the password of the user that you want to authenticate as For example, when authenticating as the Directory Manager, use the -w option to specify the password for the Directory Manager -f <ldif_file> Use this option to specify the name of the le containing the entries you want to add If you do not use this option, LDAPModify expects you to enter the entries directly at the command line When you specify the entries to be added, you must use the LDAP Data Interchange Format (LDIF) LDIF is described in more detail in the next section You can also specify the -H option to get more information on the other options The next sections explain the LDIF le format and the types of entries you can add The last section of the chapter provides examples of using LDAPModify to add entries