|
The ldaplist utility searches for and lists the naming information from the LDAP directory service defined in the LDAP configuration files generated by ldapclient(1M) during the client initialization phase. The Solaris LDAP client must be set up in order to use this utility.
The database is either a container name or a database name as defined in nsswitch.conf(4). A container is a non-leaf entry in the Directory Information
Tree (DIT) that contains naming service information. The container name is the LDAP Relative Distinguished Name (RDN) of the container relative to the defaultSearchBase as defined in the configuration files. For example, for a container named ou=people,
the database name is the database specified in nsswitch.conf. This database is mapped to a container, for example, passwd maps to ou=people. If an invalid database is specified, it will be mapped to a generic container, for example, nisMapName=name).
The key is the attribute value to be searched in the database. You can specify more than one key to be searched in the same database. The key can be specified in either of two forms: attribute=value or value. In the
first case, ldaplist passes the search key to the server. In the latter case, an attribute is assigned depending on how the database is specified. If the database is a container name, then the "cn" attribute type is used. If it is a valid database name as defined in the nsswitch.conf, then a predefined attribute type is used (see table below). If it is an invalid database name, then cn is used as the attribute type.
The ldaplist utility relies on the Schema defined in the RFC 2307bis, currently an IETF draft. The data stored on the LDAP server must be stored based on this Schema, unless the profile contains schema mapping definitions. For more information on schema
mapping see ldapclient(1M). The following table lists the default mapping from the database names to the container, the LDAP object class, and the attribute
type used if not defined in the key.
Database | Object Class | Attribute Type | Container |
aliases | mailGroup | cn | ou=Aliases |
automount | nisObject | cn | nisMapName=auto_* |
bootparams | bootableDevice | cn | ou=Ethers |
ethers | ieee802Device | cn | ou=Ethers |
group | posixgroup | cn | ou=Group |
hosts | ipHost | cn | ou=Hosts |
ipnodes | ipHost | cn | ou=Hosts |
netgroup | ipNetgroup | cn | ou=Netgroup |
netmasks | ipNetwork | ipnetworknumber | ou=Networks |
networks | ipNetwork | ipnetworknumber | ou=Networks |
passwd | posixAccount | uid | ou=People |
protocols | ipProtocol | cn | ou=Protocols |
publickey | nisKeyObject | uidnumber | ou=People |
| | cn | ou=Hosts |
rpc | oncRpc | cn | ou=Rpc |
services | ipService | cn | ou=Services |
printers | printerService | printer-uri | ou=printers |
auth_attr | SolarisAuthAttr | nameT | ou=SolarisAuthAttr |
prof_attr | SolarisProfAttr | nameT | ou=SolarisProfAttr |
exec_attr | SolarisExecAttr | nameT | ou=SolarisProfAttr |
user_attr | SolarisUserAttr | uidT | ou=people |
audit_user | SolarisAuditUser | uidT | ou=people |
-
auto_* represents auto_home, auto_direct, ...
- If the key starts with a digit, it will be interpreted as an uid number.
- If the key starts with a non-digit, it will be interpreted as a host name.
The ldaplist utility supports substring search by using the wildcard "*" in the key. For example, "my*" will match any strings that starts with "my". In some shell environments, keys containing the wildcard may need to be quoted.
If the key is not specified, all the containers in the current search baseDN will be listed.
|