Checking the LDAP Server Configuration
The ldap_check utility validates the contents of the ./ldapcd.conf or /etc/ldapcd.conf file as follows:
•Verifies that the specified directory servers are running and that connections to the servers can be made
Note:
If any of the LDAP servers specified in the ldapcd.conf file fail the verification, the remaining servers are not checked and the entire verification fails.
•Verifies that the search base (the
•If specified, verifies that user and group branches exist (see Section : Creating Branches)
•Verifies that user and group object classes exist
•Validates all object classes and attributes
If a problem is encountered during either of these checks, the ldap_check utility returns an exit code greater than 0.
Extracting Users from the /etc/passwd File
Use the passwd_extract utility to extract users from the specified input file (/etc/passwd is the default) and store the extracted records in the specified output file (with the
You can extract users based on:
•User name, specified by a
Note that if no output file is specified, the default is stdout.
•Any combination of individual UIDs or range of UIDs:
passwd_extract
•Any combination of individual GIDs or range of GIDs:
passwd_extract
•Any combination of names, UIDs and GIDs:
passwd_extract
To extract records from a file other than /etc/passwd, specify the input file name with the
#passwd_extract larry curly moe
The records in the input file must be formatted as passwd entries.
Adding a User Entry
The ldap_add_user utility adds one or more user entries to the LDAP database. To use this utility on the command line, provide the following arguments:
ldap_add_user logname passwd uid gid gecos homedir shell
Utilities for Maintaining User Information in the LDAP Directory Server | 81 |