Hi,
Mozilla 1.7.3 does not fetch the attributes for HomeAdress, HomeCity, HomeZipCode etc. from an LDAP directory.
I patched nsAbLDAPProperties.cpp to include the missing attributes. The attributes names were mostly chosen by looking at Mozilla's LDIF export.
Patch file is attached (nsAbLDAPProperties.cpp.diff).
--- mozilla/mailnews/addrbook/src/nsAbLDAPProperties.cpp.dist Sat Mar 22 16:43:29 2003 +++ mozilla/mailnews/addrbook/src/nsAbLDAPProperties.cpp Thu Sep 16 16:03:06 2004 @@ -92,7 +92,9 @@ // inetOrfPerson {MozillaProperty_String, "PrimaryEmail", "mail"}, // mozilla specific - {MozillaProperty_String, "SecondEmail", "xmozillasecondemail"}, + {MozillaProperty_String, "SecondEmail", "xmozillasecondemail"}, + // mozilla specific + {MozillaProperty_String, "SecondEmail", "mozillasecondemail"}, // person {MozillaProperty_String, "WorkPhone", "telephonenumber"}, // inetOrgPerson @@ -112,13 +114,24 @@ // ? {MozillaProperty_String, "CellularNumber", "carphone"}, - // No Home* properties defined yet + // ? + {MozillaProperty_String, "HomeAddress", "homepostaladdress"}, + // ? + {MozillaProperty_String, "HomeCity", "mozillahomelocalityname"}, + // ? + {MozillaProperty_String, "HomeState", "mozillahomestate"}, + // ? + {MozillaProperty_String, "HomeZipCode", "mozillahomepostalcode"}, + // ? + {MozillaProperty_String, "HomeCountry", "mozillahomecountryname"}, // organizationalPerson {MozillaProperty_String, "WorkAddress", "postofficebox"}, // ? {MozillaProperty_String, "WorkAddress", "streetaddress"}, // ? + {MozillaProperty_String, "WorkAddress", "postaladdress"}, + // ? {MozillaProperty_String, "WorkCity", "l"}, // ? {MozillaProperty_String, "WorkCity", "locality"}, @@ -132,6 +145,8 @@ {MozillaProperty_String, "WorkZipCode", "zip"}, // ? {MozillaProperty_String, "WorkCountry", "countryname"}, + // ? + {MozillaProperty_String, "WorkCountry", "c"}, // organizationalPerson {MozillaProperty_String, "JobTitle", "title"}, @@ -147,8 +162,6 @@ {MozillaProperty_String, "Company", "o"}, // ? {MozillaProperty_String, "Company", "company"}, - // ? - {MozillaProperty_String, "WorkCountry", "countryname"}, // ? {MozillaProperty_String, "_AimScreenName", "nscpaimscreenname"}, // ?