![]() |
![]() |
| |||
Chapter 16Setting Up Clients (Tasks)This chapter describes how to set up a Solaris LDAP naming services client. This chapter covers the following topics. Prerequisites to Client SetupIn order for a Solaris client to use LDAP as a naming service the following needs to be in place.
The ldapclient utility is the key to setting up an LDAP client, as it performs all of the above steps, except for starting the server. The rest of this chapter will show examples of how to use the ldapclient utility to setup a LDAP client and use the various other LDAP utilities to get information about, and check the status of an LDAP client. Initializing a Clientldapclient(1M) is a utility used to setup LDAP clients in the Solaris operating environment. ldapclient assumes the server has already been configured with the appropriate client profiles. You must install and configure the server with the appropriate profiles before you can set up clients. There are two main ways to set up a client using ldapclient.
Note - Though you can manually configure clients, it is not recommended. Using the configuration profiles decreases the complexity and cost of managing clients. Using Profiles to Initialize a Client
|
System successfully configured |
How to Initialize a Client Using Proxy CredentialsBecome superuser.
Run ldapclient (defining proxy values).
# ldapclient -p profilename -D cn=proxyagent,ou=profile,dc=west,dc=example,dc=com -d west.example.com -p pit1 -w test1234 192.168.0.0
System successfully configured |
The values for -D and -w are required if the profile to be used is setup for proxy. As the credentials are not stored in the profile saved on the server, you must supply the information when you initialize the client. This method is more secure than the older method of storing the proxy credentials on the server.
The proxy information is used to create /var/ldap/ldap_client_cred. The rest of the information is put in /var/ldap/ldap_client_file.
Note - Do not edit either of the client configuration files directly. Use ldapclient to create or modify the content of these files.
Superusers can perform manual client configurations. However, many of the checks are bypassed during the process, so it is relatively easy to mis-configure your system. In addition, you must change settings on every machine, instead of in one central place, as is done when using profiles.
How to Initialize a Client ManuallyBecome superuser.
Use ldapclient -i to initialize the client.
# ldapclient -i -d dc=west.example.com \
-c dc=west, dc=example, dc=com \
-D cn=proxyagent,ou=profile,dc=west,dc=example,dc=com \
-w testtest 192.168.0.0
Use ldapclient list to verify.
NS_LDAP_FILE_VERSION= 2.0
NS_LDAP_BINDDN= cn=proxyagent,ou=profile,dc=west,dc=example,dc=com
NS_LDAP_BINDPASSWD= {NS1}4a3788e8c053424f
NS_LDAP_SERVERS= 192.168.0.0
NS_LDAP_SEARCH_BASEDN= dc=west,dc=example,dc=com
NS_LDAP_CREDENTIAL_LEVEL= proxy |
Previous Contents Index Next ![]() |