Table 5 LDAP Database Utilities

Program Name

Options

Description

ldap_check

None

Checks either ./ldapcd.conf

 

 

or /etc/ldapcd.conf against

 

 

the listing of directory servers in

 

 

the conf file. Validates all entries

 

 

related to the directory server.

 

 

Diagnostics are printed to

 

 

stdout; when the exit code is

 

 

greater than 0, a problem was

 

 

encountered.

ldap_add_user

-bbranch—Branch to add users to; should be a

 

full distinguished name, including the search base.

 

-finput-file– Specifies the name of the file

 

containing user records to add to the directory server.

 

-m– Modify existing record.

 

-n– Do not submit.

 

-v– Verbose output.

ldap_del_user

-bbranch – Branch to delete users from.

 

-finput-file– Specifies an input file containing

 

login names.

 

-n– Do not submit.

 

-v– Verbose output.

ldap_get_user

-bbranch – Branch to get users from.

 

-ssearchfilter – Specifies an optional LDAP

 

search filter to select the password entries to output.

 

-Ssearchfilter – Specifies an optional LDAP

 

search filter to select the password entries to output.

 

Differs from the -soption in that the provided filter is

 

wrapped within a filter that adds an object class

 

restriction on the query.

 

-Rstart[-end]– Specifies a range of user IDs to

 

be retrieved, including the endpoints. If you do not

 

specify the -endportion of the range, then all users

 

greater than or equal to the start value are

 

retrieved.

 

-foutput-file– Specifies the name of the output

 

file in which to store search results (default is stdout).

ldap_sync_user

-bbranch – Branch to add users to; should be a

 

full distinguished name, including the search base

 

-n– Do not submit

 

-v– Verbose output.

 

-C– Do not create/modify the CN attribute

ldap_add_group

-bbranch – Branch to which to add group.

 

-n– Do not submit.

 

-m– Modify existing entry.

 

-v– Verbose output.

Adds a user to the LDAP directory server. Users can be specified on the command line, in a file, or from stdin (with -f-).

Deletes a user from the LDAP directory server. You can specify users on the command line, in a file, or from stdin (with -f-).

Retrieves entries selected from the LDAP directory server for specified users. By default, this program selects all users on the default user branch or search base.

Synchronizes the users in the directory server with the provided input which is in passwd format.

Adds a group to the LDAP directory server. Can be used on the command line, from a file, or from stdin.

Utilities for Maintaining User Information in the LDAP Directory Server

79

Page 79
Image 79
HP UX Internet Express Software manual Ldap Database Utilities