Internet Express for Tru64 UNIX Version 6.8 Administration Guide (14233)
If a problem is encountered when adding a user to the LDAP database, the ldap_add_user
utility returns an exit code greater than 0.
For a description of the options you can use with this utility, see Table 4-2.
To add one or more users from a file:
ldap_add_user -f input-file
To add one or more users from stdin:
cat filename | ldap_add_user -f -
Note:
The input must be in passwd(4) format.
4.4.4 Deleting a User Entry
The ldap_del_user utility works in a similar fashion to ldap_add_user, except that users
are removed, rather than added, to the directory server.
If a problem is encountered when deleting a user from the LDAP directory server, the
ldap_del_user utility returns an exit code greater than 0.
For a description of the options you can use with this utility, see Table 4-2.
For example, to delete a user from the command line:
ldap_del_user logname [ logname ... ]
To delete one or more user or users listed in a file:
ldap_del_user -f input-file
To delete one or more users from stdin:
cat filename | ldap_del_user -f -
Note:
The input must be in passwd(4) format, but only the login name portion of each record is used.
Anything beyond the first colon (:) in each input record is ignored.
A list of names (one per line) is also acceptable as input.
4.4.5 Retrieving a User Entry
Use the ldap_get_user utility to retrieve passwd entries for specified users in the LDAP
directory server. Unless otherwise specified, the ldap_get_user utility selects all users on the
default user branch or search base. Use the -s option to select a subset of users (see Table 4-2).
If a problem is encountered when retrieving a user from the LDAP directory server, the
ldap_get_user utility returns an exit code greater than 0.
For a description of the options you can use with this utility, see Table 4-2.
To retrieve all users:
ldap_get_user [ -b branch ] [ -f filename ]
Note:
In the following examples, the -b branch and -f output-file options (not shown) can also
be used.
To use a search filter to find users:
ldap_get_user -s filter
To use a search filter with object class restrictions added to the search:
86 User Authentication