nisldapmaptest - test NIS+ and LDAP mapping configuration files
nisldapmaptest [-s | -r | -d] [-l | -t object] [-v] [-i] [-o] [-m conffile] [-x attr=val...] [ col=val]...
Use the nisldapmaptest utility to test NIS+ to LDAP mapping configuration files. See NIS+LDAPmapping(4). The nisldapmaptest utility uses much of the same internal interface as the rpc.nisd(1M) does to read, add, modify, or delete LDAP data, as specified by the column name and value operand pairs. nisldapmaptest does not read or modify any of the rpc.nisd(1M) database files.
See for details on important differences between the ways that nisldapmaptest and rpc.nisd(1M) operate on LDAP data.
The nisldapmaptest utility supports the following options:
-d
-i
In this mode, nisldapmaptest also tries to guess things such as NIS+ object types and derives table column information from the mapping rules in the configuration files. Avoid using the -i option to add, modify, or delete, until you have determined that the nisldapmaptest's guesses are adequate for your needs.
-l
Either -l or -t must be specified. If both are present, -l is ignored.
-m conffile
-o
-r
-s
-t object
-v
-x attr=val...
The following operands are supported:
col=val...
Example 1 Searching for a User
Use the following example to search for the user xyzzy in the LDAP container specified for the passwd.org_dir table.
example% nisldapmaptest -t passwd.org_dir name=xyzzy
Example 2 Listing Table Entries
Use the following example to list all entries in the container specified for the services.org_dir table.
example% nisldapmaptest -t services.org_dir
Example 3 Listing an Object
Use the following example to list the services.org_dir object itself, as it is stored in LDAP.
example% nisldapmaptest -o -t services.org_dir
Example 4 Modifying a Table Entry
Use the following example to modify the membership list of the group grp, in the container specified for the group.org_dir table, to be mem1, mem2, and mem3.
example% nisldapmaptest -r -t group.org_dir name=grp \ members=mem1,mem2,mem3
Example 5 Deleting a Table Entry
Use the following example to delete the host called bad from the container specified for the hosts.org_dir table.
example% nisldapmaptest -d -t hosts.org_dir name=bad
The following exit values are returned:
0
!= 0
/var/nis/NIS+LDAPmapping.template
/etc/default/rpd.nisd
See attributes(5) for descriptions of the following attributes:
|
rpc.nisd(1M), NIS+LDAPmapping(4), rpc.nisd(4), attributes(5)
There are several differences between the ways that nisldapmaptest and rpc.nisd operate:
cname name proto port x x tcp 12345 x y tcp 12345 x z tcp 12345
then specifying cname=x will pick up all three entries and create or modify the corresponding LDAP entry to have three CN values: x, y, and z. However, specifying name=x will match just the first NIS+ entry, and create or modify the LDAP entry to have just one CN: x.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |