client_info Attributes
and Object Class
Create attributes and object class as below, and then create the container
for the client_info data. The suggested container name is ou=ClientInfo.
LDIF data is for ldapadd(1).
The attribute and object class OIDs used in the following are examples only.
dn: cn=schema
changetype: modify
add: attributetypes
attributetypes: ( 1.3.6.1.4.1.42.2.27.5.42.42.12.0 \
NAME 'nisplusClientInfoAttr' \
DESC 'NIS+ client_info table client column' \
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
attributetypes: ( 1.3.6.1.4.1.42.2.27.5.42.42.12.1 \
NAME 'nisplusClientInfoInfo' \
DESC 'NIS+ client_info table info column' \
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
attributetypes: ( 1.3.6.1.4.1.42.2.27.5.42.42.12.2 \
NAME 'nisplusClientInfoFlags' \
DESC 'NIS+ client_info table flags column' \
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
dn: cn=schema
changetype: modify
add: objectclasses
objectclasses: ( 1.3.6.1.4.1.42.2.27.5.42.42.13.0 \
NAME 'nisplusClientInfoData' \
DESC 'NIS+ client_info table data' \
SUP top STRUCTURAL MUST ( cn ) \
MAY ( nisplusClientInfoAttr $ nisplusClientInfoInfo $ nisplusClientInfoFlags ) )
|
To create the container, put the following LDIF data in a file. Substitute
your actual search base for searchBase.
dn: ou=ClientInfo, searchBase
|
objectClass: organizationalUnit
|
Use the above file as input to the ldapadd command
in order to create the ou=ClientInfo container. For example,
if your LDAP administrator DN is cn=directory manager,
and the file with the LDIF data is called cifile, do the
following.
# ldapadd -D cn="directory manager" -f cifile
|
Depending on the authentication required, the ldapadd command
might prompt for a password.
The /var/nis/NIS+LDAPmapping.template file contains
commented-out definitions for the client_info.org_dir table.
Copy these to the actual mapping file, enable by removing the comment character
'#', and restart the rpc.nisd daemon.
# svcadm restart network/rpc/nisplus:default
|
If necessary, synchronize NIS+ and LDAP data as described in NIS+ to LDAP Migration Scenarios.