Using LDAP to Populate Home Address
Novell Cool Solutions: Feature
By Israel Forst
|
Digg This -
Slashdot This
Posted: 3 Feb 2003 |
If you're trying to populate eDirectory's Home Address using LDAP, here are several techniques to keep the going good.
Use this technique to add Home Address info to users that have never had the info in their object:
dn: cn=iwilliams,ou=users,o=novell changetype: modify add: objectclass objectClass: homeInfo - replace: homeZipCode homeZipCode: 10017 - replace: homePostalAddress homePostalAddress: issac williams$330 E46 ST$ $New York$NY$10017 - replace: homeState homeState: NY - replace: homeCity homeCity: New York - replace: co co: USA
If you've already entered address info, the auxclass homeInfo will exist already. If you use the above technique on these objects, you'll run into an error. Here's how to add Home Address in this case:
dn: cn=iwilliams,ou=users,o=novell changetype: modify replace: homeZipCode homeZipCode: 10017 - replace: homePostalAddress homePostalAddress: issac williams$330 E46 ST$ $New York$NY$10017 - replace: homeState homeState: NY - replace: homeCity homeCity: New York - replace: co co: USA
For an Add use this code:
dn: cn=iforst,ou=users,o=novell changetype: add objectClass: homeInfo objectClass: user cn: iforst sn: forst homeZipCode: 10017 homePostalAddress: issac forst$330 E46 ST$ $New York$NY$10017 homeState: NY homeCity: New York co: USA
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

