| United States-English |
|
|
|
![]() |
Installing and Administering LDAP-UX Client Services with Microsoft Windows 2000 Active Directory > Chapter 5 Command
and Tool ReferenceClient Management Tools |
|
This section describes the following programs for managing client systems. Most of these are called by the setup program when you configure a system.
The following tools are called by the setup program and are not typically used separately.
This tool, found in /opt/ldapux/config, creates a new profile entry in the LDAP directory from information you provide interactively. The directory schema must have the DUAConfigProfile extension. This tool, found in /opt/ldapux/config, creates a binary profile file from an LDIF profile file, thus activating the profile for the client. (You can download a profile to LDIF from the directory with get_profile_entry.) Typically you run the setup program instead of running this program directly. See also “Download the Profile Periodically”.
where infile is the LDIF file containing a profile, by default /etc/opt/ldapux/ldapux_profile.ldif and outfile is the name of the binary output file, by default /etc/opt/ldapux/ldapux_profile.bin. The LDIF file must contain an entry for the object class PosixNamingProfile. The following command creates the binary profile file /etc/opt/ldapux/ldapux_profile.bin from the existing LDIF file /etc/opt/ldapux/ldapux_profile.ldif:
The following command creates the binary profile file my_profile.bin from the existing LDIF file profile1.ldif:
Note that you must copy the file my_profile.bin to /etc/opt/ldapux/ldapux_profile.bin to activate the profile. This tool, found in /opt/ldapux/config, extends the Active Directory schema with the posixDUAProfile and posixNamingProfile object classes using the information you provide interactively. Typically you run the setup program instead of running this program directly. This tool, found in /opt/ldapux/config, displays information from a binary profile (cache) file. By default, it displays the currently active profile in /etc/opt/ldapux/ldapux_profile.bin.
where infile is a binary profile file, /etc/opt/ldapux/ldapux_profile.bin by default, and outfile is the output file, stdout by default. The binary profile contains mappings for all backend commands (even those that are unused or unsupported by LDAP-UX Client Services with Active Directory); all of which are displayed by display_profile_cache. The actual client configuration can be reviewed in the configuration profile LDIF file /etc/opt/ldapux/ldapux_profile.ldif. The following command displays the profile in the binary profile file /etc/opt/ldapux/ldapux_profile.bin to stdout:
The following command displays the profile in the binary profile file my_profile.bin and writes the output to the file profile:
This tool, found in /opt/ldapux/config, downloads a profile from an LDAP directory into an LDIF file and calls create_profile_cache to create a binary profile file, thereby activating it on the client. This tool looks in the local client configuration file /etc/opt/ldapux/ldapux_client.conf for the profile DN.
where service is the name of a supported service, typically NSS, and outfile is the name of a file to contain the LDIF output, by default /etc/opt/ldapux_profile.ldif. The -p option only applies if you want to configure multiple domains. Where profile_id is <remote domain name> or gc for PROFILE_ID field in /etc/opt/ldapux/ldapux_client.conf. The following command downloads the profile for the Name Service Switch
(NSS) specified in the client configuration file /etc/opt/ldapux/ldapux_client.conf and
places the LDIF in the file /etc/opt/ldapux/ldapux_profile.ldif.
The following command downloads the profile for the Name Service Switch (NSS) specified in the client configuration file /etc/opt/ldapux/ldapux_client.conf and places the LDIF in the file profile1.ldif:
The following command downloads the profile for the Name Service Switch (NSS) and PROFILE_ID (ldap.ca.com) specified in the client configuration file /etc/opt/ldapux/ldapux_client.conf and places the LDIF in the file /etc/opt/ldapux/domain_profiles/ldapux_profile.ldif.ldap.ca.com:
The following command downloads the profile for the Name Service Switch (NSS) and PROFILE_ID (gc) specified in the client configuration file /etc/opt/ldapux/ldapux_client.conf and places the LDIF in the file /etc/opt/ldapux/domain_profiles/ldapux_profile.ldif.gc:
This tool, found in /opt/ldapux/config, configures a proxy user for the client accessing the directory. It stores the encrypted proxy user information in the file /etc/opt/ldapux/pcred and in kernel memory, referred to as SCS for Secure Credential Store. You must run this tool logged in as root.
where options can be any of the following:
With no options, ldap_proxy_config configures the proxy user as specified in the file /etc/opt/ldapux/pcred. The following example configures the proxy user as CN=Proxy User,CN=Users,DC=cup,DC=hp,DC=com with the password prox12pw and creates or updates the file /etc/opt/ldapux/pcred with this information:
The following example displays the current proxy user:
The following example checks the configured proxy user information and checks whether or not the client can bind to the directory as the proxy user:
The following example configures the proxy user as CN=Proxy User,CN=Users,DC=cup,DC=hp,DC=com with the password prox12pw and creates or updates the file /etc/opt/ldapux/pcred with this information:
The following example configures the proxy user with the contents of the file proxyfile and creates or updates the file /etc/opt/ldapux/pcred with this information:
The file proxyfile must contain two lines: the proxy user DN on the first line and password on the second line. The new beq tool expands the search capability beyond that currently offered by nsquery, which is limited to hosts, passwd, and group. This search utility bypasses the name service switch and queries the backend directly based on the specified library. The search will include the following services: pwd, grp, shd, srv, prt, rpc, hst, net, ngp, and grm.
The syntax for this tool, along with example output, is shown below.
where
Service | Description
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||