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.

2. Modify the nisplus<strong>LDAP</strong>objectDN attribute value for the relevant table(s) sothat the write portion includes the newly created nisplusEntryData objectclass.For example, for the passwd.org_dir table, assuming that you are using amapping file based on /var/nis/<strong>NIS</strong>+<strong>LDAP</strong>mapping.template, edit asfollows.nisplus<strong>LDAP</strong>objectDN passwd:ou=People,?one?objectClass=shadowAccount,\objectClass=posixAccount:\ou=People,?one?objectClass=shadowAccount,\objectClass=posixAccount,\objectClass=account,objectClass=topEdit the attribute value as follows.nisplus<strong>LDAP</strong>objectDNpasswd:ou=People,?one?objectClass=shadowAccount,\objectClass=posixAccount:\ou=People,?one?objectClass=shadowAccount,\objectClass=posixAccount,\objectClass=nisplusEntryData,\objectClass=account,objectClass=top3. Edit the nisplus<strong>LDAP</strong>attributeFromColumn <strong>and</strong>nisplus<strong>LDAP</strong>columnFromAttribute attribute values to specify any desiredsubset of owner, group, access, or TTL.In Step 2, you created the <strong>LDAP</strong> attributes used to store these values. For <strong>NIS</strong>+,there are predefined pseudo-column names called zo_owner, zo_group,zo_access, <strong>and</strong> zo_ttl, respectively. For example, in order to store owner,group, <strong>and</strong> access for passwd.org_dir entries in <strong>LDAP</strong>, modify thenisplus<strong>LDAP</strong>attributeFromColumn value from the following.nisplus<strong>LDAP</strong>attributeFromColumn \passwd: dn=("uid=%s,", name), \cn=name, \uid=name, \userPassword=("{crypt$}%s", passwd), \uidNumber=uid, \gidNumber=gid, \gecos=gcos, \home<strong>Directory</strong>=home, \loginShell=shell, \(shadowLastChange,shadowMin,shadowMax, \shadowWarning, shadowInactive,shadowExpire)=\(shadow, ":")Edit to read as follows.nisplus<strong>LDAP</strong>attributeFromColumn \passwd: dn=("uid=%s,", name), \cn=name, \uid=name, \userPassword=("{crypt$}%s", passwd), \uidNumber=uid, \gidNumber=gid, \gecos=gcos, \276 System Administration Guide: <strong>Naming</strong> <strong>and</strong> <strong>Directory</strong> <strong>Services</strong> (<strong>DNS</strong>, <strong>NIS</strong>, <strong>and</strong> <strong>LDAP</strong>) • January 2005

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

Saved successfully!

Ooh no, something went wrong!