13.07.2015 Views

Naming and Directory Services (DNS, NIS, and LDAP)

Naming and Directory Services (DNS, NIS, and LDAP)

Naming and Directory Services (DNS, NIS, and LDAP)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Assuming the defaultSearchBase value is dc=some,dc=domain, thecorresponding <strong>LDAP</strong> entry, as listed by ldapsearch(1), would be the following.dn: cn=nisd,ou=Ppc,dc=some,dc=domaincn: nisdcn: rpc.nsidcn: nisplusdoncRpcNumber: 100300description: <strong>NIS</strong>+ serverobjectClass: oncRpcThis makes for a simple one-to-one mapping between <strong>NIS</strong>+ <strong>and</strong> <strong>LDAP</strong> data, <strong>and</strong> thecorresponding mapping attribute value going from <strong>NIS</strong>+ to <strong>LDAP</strong> is the following.nisplus<strong>LDAP</strong>attributeFromColumn \rpc: dn=("cn=%s,", name), \cn=cname, \cn=name, \oncRpcNumber=number, \description=commentThis constructs the DN for the entry to be cn=%s, with the value of the cname columnsubstituted for %s.cn=nisd,Since the value ends in a comma, the read base value from the nisplusObjectDN isappended, <strong>and</strong> you have the following.cn=nisd,ou=Rpc,dc=some,dc=domainThe oncRpcNumber <strong>and</strong> description attribute values are just simple assignmentsof the corresponding <strong>NIS</strong>+ column values. The rpc.nisd will collect the multiple<strong>NIS</strong>+ entries into one <strong>LDAP</strong> entry, with multiple cn values to represent the differentname column values.Similarly, the mapping from <strong>LDAP</strong> to <strong>NIS</strong>+ would be as follows.nisplus<strong>LDAP</strong>columnFromAttribute \rpc: cname=cn, \(name)=(cn), \number=oncRpcNumber, \comment=descriptionThe above assigns the oncRpcNumber <strong>and</strong> description values to thecorresponding <strong>NIS</strong>+ columns. The multi-valued cn (denoted by (cn) is mapped tomultiple name column values (denoted by (name)). Since the name column cannot bemulti-valued, the rpc.nisd creates one <strong>NIS</strong>+ entry for each cn value.Finally, the nisplus<strong>LDAP</strong>attributeFromColumn value is an example of rule setsused for deletion.nisplus<strong>LDAP</strong>attributeFromColumn \user_attr_del: dn=("uid=%s,", name), \SolarisUserQualifier=, \Chapter 16 • Transitioning From <strong>NIS</strong>+ to <strong>LDAP</strong> 263

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!