Home > Articles > Operating Systems, Server > Solaris

  • Print
  • + Share This
Like this article? We recommend

Solaris 9 OE Secured LDAP Client and Server Configuration

The procedure for installing and configuring the directory server and client initialization has changed significantly in the Solaris 9 OE Secured LDAP Client implementation. The following sections explain the changes.

Directory Server Configuration

The most obvious change in the Solaris 9 OE is that the Sun ONE Directory Server 5.1 is the supported directory server in place of the Netscape Directory Server 4.1x.

In addition, the directory server software is packaged differently. Instead of being contained in a single compressed tar file, it is divided into several Solaris OE packages.


The package format is only available with the Solaris 9 OE. For other versions of the Solaris OE, download the compressed tar file version.

The following 13 packages comprise the directory server software:

  • IPLTadcon: Administration Server Console

  • IPLTadman: Administration Server Documentation

  • IPLTadmin: Administration Server

  • IPLTcons: Console Client Base

  • IPLTdscon: Directory Server Console

  • IPLTdsman: Directory Server Documentation

  • IPLTdsr: Directory Server (root)

  • IPLTdsu: Directory Server (usr)

  • IPLTjss: Network Security Services for Java_

  • IPLTnls: Nationalization Languages and Localization Support

  • IPLTnspr: Portable Runtime Interface

  • IPLTnss: Network Security Services

  • IPLTpldap: PerLDAP

To Install the Solaris OE Packages

The Solaris OE packages are installed with the full distribution, or can be installed after the Solaris 9 OE is installed. If you install them later, you must install them in the correct sequence.

  • When you install the Solaris OE packages, install them in the correct sequence, as follows:

    pkgadd -d $PKGDIR IPLTdsman
    pkgadd -d $PKGDIR IPLTadman
    pkgadd -d $PKGDIR IPLTnspr
    pkgadd -d $PKGDIR IPLTnls
    pkgadd -d $PKGDIR IPLTnss
    pkgadd -d $PKGDIR IPLTjss
    pkgadd -d $PKGDIR IPLTpldap
    pkgadd -d $PKGDIR IPLTcons
    pkgadd -d $PKGDIR IPLTdscon
    pkgadd -d $PKGDIR IPLTadcon
    pkgadd -d $PKGDIR IPLTdsr
    pkgadd -d $PKGDIR IPLTdsu
    pkgadd -d $PKGDIR IPLTadmin

To Install the Directory Server

A wrapper program called /usr/sbin/directoryserver is included in the Solaris 9 OE version of the directory server. The purpose of the wrapper is to simplify operations by removing path name dependencies. For example, the generic directory server installation allows you to specify the target directory and the instance name of the directory server you are installing. Therefore, you need to remember the path name where the directory server files were installed. The wrapper program figures out the correct path for you.

  • To install the directory server, run setup from the wrapper, as follows:

    # /usr/sbin/directoryserver setup

    The dialogue that appears after you run setup is similar to what appears during a generic directory server installation. What is different is that you are not prompted to accept the server license, and the target directory and the directory server instance name are chosen for you. The target directory is /usr/iplanet/ds5 and the instance name is slapd-hostname. While the files in these directories might look familiar to you, they should never be addressed directly. Instead, always use the wrapper program to perform operations on them.


    Never run the uninstall program directly. Use the directoryserver wrapper, instead. Failure to do so results in the deletion of critical files, which will prevent you from running setup again.

Netscape Directory Server 4.16.1 and Sun ONE Directory Server 5.1 Differences

The directory server supported with the Solaris 9 OE has many advantages over the previous version. However, different configuration procedures are required to set up the Solaris OE LDAP Client on the newer directory server because of these new features. This means that the setup_native_LDAP.sh script used to configure the Solaris 8 OE (see "Setting Up the Solaris 8 OE LDAP Client and Server Configuration" on page 8) will not work. The new features that affect configuration include:

Schema file storage—In the previous version, schema files were stored as *.conf files in an user-friendly format. The schema was separated into two files, one for object classes and one for attributes. New object classes and their attributes were placed in files called slapd.user_oc.conf and slapd.user_at.conf.

The new directory server stores schema files in LDAP Data Interchange Format (LDIF), which can contain object class and attribute definitions, in addition to the slapd.user_oc.conf and slapd.user_at.conf files. New definitions are added by creating a text file with an .ldif extension and placing it in the schema directory located under the server instance you are working with. By convention, the new schema definitions are placed in a file called 99user.ldif. The files are processed in numeric order similar to the way Solaris OE rc scripts are processed.

Multiple database support—The previous version maintained all directory data in a single database, restricting the data to a single volume and allowing only one set of indexes for the whole directory. The new version allows multiple database backends that can reside on different volumes and have their own indexes. This means that some directory entities are referenced slightly different than in the previous version.

New authentication methods—The new directory server supports SASL/DIGEST-MD5 authentication that provides a method of encrypting a password before it is sent to the server. This feature first appeared in iPlanet Directory Server 5.0.

New LDAP Client Profile Format

To support the numerous Solaris 9 OE Secured LDAP Client enhancements, a new profile object class called DUAconfigProfile is defined. The following features are supported through attributes set in the new profile:

Service Search Descriptors—Allows you to specify a search path for naming service databases and filter the requests. For example, you can specify additional locations to search for database entries if an entry is not found in the first location. You can also assign an employee type such as permanent or temporary to account entries, then set up a filter to let only permanent employees log into a particular computer.

Attribute/Objectclass Mapping—Allows you to use a non-default object class or attribute. For example, defining user accounts somewhere other than the posixAccount object class.

Authentication Service Methods—Allows you to assign a different authentication method to a different service. For example, pam_ldap might use simple authentication with SSL/TLS, while the passwd command might use SASL/DIGEST-MD5.

The Solaris 9 OE Secured LDAP Client was designed to be backward-compatible with a server configured to support Solaris 8 OE LDAP Clients. The behavior of the client depends, in part, on the profile used initialized it.


The Solaris 9 OE implementation requires the use of profiles and the LDAP cache manager.

The old profile type is identified as:


The new profile type is:


The profile type is determined by whether the profile contains the DUAconfigProfile object class or the SolarisNamingProfile object class. Profiles containing the former class are considered version 2.0.

New Automount Object Class

In the Solaris 8 OE implementation, automount maps were represented by the generic nisObject object class, which contained a key and an associated value. The Solaris 9 OE implementation introduces two new object classes to hold automap information: automount and automountMap.

You must take this difference into consideration when supporting both Solaris 8 OE and Solaris 9 OE LDAP clients on the same directory server.

New Security Features and Enhancements

The SSL/TLS libraries that are integrated with the Secured LDAP Client are an important addition to the Solaris 9 OE. This enhancement enables the client to run LDAP over the SSL/TLS transport, the benefit of which is that LDAP traffic can be encrypted to prevent eavesdropping.

Support of the SASL/DIGEST-MD5 authentication method is another security enhancement in the Solaris 9 OE. This method allows the encryption of just the password using a message digest. The details on how this actually works are very complex, but the configuration is not complicated.

The requirement that proxyagent credentials be stored in the client profile has been removed in the Solaris 9 OE. Instead of storing them in the profile, which is susceptible to snooping while the LDAP client cache is refreshed, they are maintained only in the local /var/ldap/ldap_client_cred file. This implies that Solaris 9 OE clients need to be supplied with the proxyagent credentials manually.

Command Differences

In the Solaris 9 OE, one new command has been added, one command has been dropped, and the syntax of another has changed. These changes are as follows:

ldapaddent—This new command can be used to populate the directory from text files in the files format. This command can only be run on a configured Solaris 9 OE Secured LDAP Client because the command determines what directory server to use and where to place the data in the DIT from the client profile.

If the client is configured to use a version 1 profile, automaps are mapped to the old style nisObject object class. If a version 2 profile is being used, they are mapped to the new automount and automountMap object classes.

ldap_gen_profile—This command has been replaced with the genprofile switch in the updated ldapclient command.

ldapclient—The syntax for this command has changed significantly. The switches such as -l and -i have been replaced with keywords like list and init. The new syntax appears as follows:

ldapclient [-v | -q] 
genprofile | init | manual | mod | list | uninit [args]

where args takes the form of -a attrName=attrVal. For example, to specify a profile, you would use -a profileName=myprofile.

To Configure the Sun ONE Directory Server 5.1 and the Solaris OE Secured Client

After installing and configuring the server with the directoryserver setup command, configure the server to support Secured LDAP Clients.

  1. Run the /usr/lib/ldap/idsconfig script.

    The script asks a number of questions, most of which have to do with setting up the parameters in the client profile.


    After the idsconfig script completes, you are instructed to run the directoryserver vlvindex command to create the VLV indexes. If you run the command before populating the directory server with data, error messages will be displayed. These messages are harmless and you can ignore them.

  2. Initialize the client by running the following command:

    ldapclient init -a profilename=myprofile -a proxyDn -a proxypassword
  3. If you are using pam_ldap, edit the /etc/pam.conf file.


To use SSL/TLS, both the server and clients need to be configured. The server must be set up to use port 636 for the encrypted channel, and port 389 for the clear-text channel. Before setting up the server you need to have the following items:

A signed server certificate

The signer's certificate

Obtain a service certificate from a certificate authenticor (CA) you set up or from a commercial one (**ID). Alternatively, use the certutil utility to create self-signed certificates. This certificate gets installed on the directory server. Once installed, SSL can be enabled.


The server certificate is kept in a database that is password protected. You are prompted for this password each time the directory server starts, unless you place it in a special configuration file that is described in the Sun ONE Directory Server 5.1 documentation.

The client must have a certificate database that contains the signer's certificate. This database can be created by a Netscape browser, then moved to the appropriate place. See the Sun document, System Administration Guide: Naming and Directory Services manual, (part number 806-4077-10) for additional information.

To Set Up the Sun ONE Directory Server 5.1 on the Solaris 8 OE

At the time this article was written, a Sun Microsystems, Inc. supported script that configured the Sun ONE Directory Server 5.1 running on the Solaris 8 OE was not available. The Solaris 9 OE idsconfig script will not work because of dependencies on the new and modified commands discussed earlier.

Most of the steps are the same as those used to configure the Netscape Directory Server 4.1x as described in the Sun BluePrints book, Solaris and LDAP Naming Services, with the following differences:

  1. Update the schema files.

    Obtain the 99user.ldif file from from a Solaris 9 OE directory server installation that is configured with the idsconfig command.


    If you are using the Sun ONE Directory Server 5.1, service pack 1, remove the reference to automount and automoutMap in the 10rfc2307.ldif file.

  2. Create VLV indexes.

    1. Import the following LDIF replacing sun.com with your domain name. For example, to create the VLV index for the passwd database:

      dn: cn=sun.com_passwd_vlv_index, cn=user  
      Root, cn=ldbm database,cn=plugins, cn=config
      objectClass: top
      objectClass: vlvSearch
      cn: sun.com_passwd_vlv_index
      vlvBase: ou=people,dc=sun,dc=com
      vlvScope: 1
      vlvFilter: (objectClass=posixAccount)
      aci:(target="ldap:///cn= sun.com_passwd _vlv _ index, 
      cn=userRoot, cn=ldbm database, cn=plu gins,cn=config")
      (targetattr="*")(version 3.0; acl "Config";
      allow(read,search,compare) userdn= "ldap:///anyone";)
      dn: cn=sun.com.getpwent,cn=sun.com_ passwd _vlv_index,
      cn=userRoot,cn=ldbm database, cn= plugins,cn=config
      cn: sun.com.getpwent
      vlvSort: cn uid
      objectClass: top
      objectClass: vlvIndex
      vlvEnabled: 1
      vlvUses: 1
    2. Repeat the preceding step, substituting the following attributes and object classes:

      shadow- getspent, objectclass=ShadowAccount
      group- getgrent,objectclass=PosixGroup
      hosts - gethostent, objectclass=ipHost
      networks - getnetent, objectclass=ipNetwork
      rpc - getrpcent, objectclass=oncRpc
    3. Run the following command from the server-root server-instance directory:

      vlvindex -n userRoot -T sun.com.getpwent
      vlvindex -n userRoot -T sun.com.getspent
      vlvindex -n userRoot -T sun.com.getgrent
      vlvindex -n userRoot -T sun.com.gethostent
      vlvindex -n userRoot -T sun.com.getnetent
      vlvindex -n userRoot -T sun.com.getrpcent
  3. Create indexes.

    Indexes are maintained for each database backend, so the dn: of the index needs to reflect this. For example:

    dn: cn=uid,cn=index,cn=userRoot,cn=ldbm data ba se,
  4. Create your client profiles with the ldap_gen_profile command.

Debugging Common Problems

After your directory server has been configured for LDAP Clients and populated with data, users should be able to log in. If any problems develop, it is helpful to understand the steps that are being performed when logging into a Solaris 8 or 9 OE system that is set up to use LDAP.

The snoop command can be a valuable tool in understanding these steps. The following example assumes that pam_unix and pam_ldap are stacked so that pam_unix is tried first. The credential level is proxy, and to support pam_unix logins with LDAP accounts, the proxyagent is granted password read permission.

To help illustrate the login process, encryption is not turned on. In a production environment, this would not be the case, so you would not be able to observe passwords in the clear.

To Debug Common Problems

The first thing you should do if you encounter problems is to make sure the account is configured the way you think it should be.

  1. To check the configuration of an account, run the ldaplist command on the client:

    # ldaplist -l passwd tom
    dn: uid=tom,ou=people,dc=sun,dc=com
    objectClass: posixAccount
    objectClass: shadowAccount
    objectClass: account
    objectClass: top
    uid: tom
    cn: Tom Bialaski
    uidNumber: 12345
    gidNumber: 10
    gecos: Tom Bialaski - Enterprise Engineer
    homeDirectory: /home/tom
    loginShell: /bin/csh
    shadowLastChange: 11892
    shadowFlag: 0
    From this listing, you can tell that the user tom 
    does not have a password stored in {crypt} format, so  
    pam_ldap authentication is used.
    Next, turn on snoop on your directory server or client:
    # snoop -v ldap | grep LDAP

    From this listing, you can tell that the user tom does not have a password stored in {crypt} format, so pam_ldap authentication is used.

  2. Next, turn on snoop on your directory server or client, as follows:

    # snoop -v ldap | grep LDAP

The following example of a condensed snoop trace shows what takes place when user tom logs in. The bolded commands show what the example user types.

  1. The user binds to the directory as the proxyagent, as follows:

    Operation *[APPL 0: Bind Request]
    [Object Name]
     Authentication: Simple [0]
    Operation *[APPL 1: Bind Response]
    [Result Code]

    Because, for this example, encryption is turned off, you can see the actual domain name and associated password the client is attempting to bind with. In this example, the bind operation is successful.

  2. The user searches the directory to see if user tom exists, as follows:

    Operation *[APPL 3: Search Request]
    [Base Object]
    Equality Match *[3]
    [Attr Descr]

    If an entry with the shadowAccount object class and uid=tom is found, the operation is successful.

  3. The user attempts to retrieve the user's password (remember that pam_unix is the first one in the stack), as follows:

    Operation *[APPL 4: Search ResEntry]
    [Object Name]

    Because pam_unix expects to see the password returned in {crypt} format, the authentication fails and the next PAM in the stack is tried.

  4. The user attempts to authenticate the password with pam_ldap, as follows.

    Operation *[APPL 0: Bind Request]
     [Object Name]
    Authentication: Simple [0]

    If the bind succeeds, the user is authenticated.

  5. The user retrieves user information, as follows:

    Operation *[APPL 4: Search ResEntry]
    [Object Name]
    *[Partial Attributes]
        Tom Bialaski
      Tom Bialaski - Enterprise Engineer

    The login information can now be used to set the home directory, execute a login shell, and set the user's user identifier (UID) and group identifier (GID).

  6. The user locates the user's home directory, as follows:

    Operation *[APPL 4: Search ResEntry]
     [Object Name]
    automountKey=tom,automountMapName= au to_home,dc=sun,dc=com

    The user is now logged in.


    The .login, .cshrc, and .profile files are examined and additional naming server lookups are performed. For brevity, these operations are not shown.

    The Solaris 9 OE delivered the second phase of the LDAP Client that includes several security enhancements and is better integrated than the previous release. The Solaris 9 OE implementation is compatible with the Solaris 8 OE implementation so a single server can be configured to support both.

  • + Share This
  • 🔖 Save To Your Account

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information

To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.


Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.


If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information

Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.


This site is not directed to children under the age of 13.


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information

If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information

Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents

California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure

Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact

Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice

We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020