I tested this out successfully recently with the following settings:
vcard changes in openfire.xml:
As for importing avatar (photos) into the jpegPhoto attribute of an AD user object, I created the following vbs script. Name it something like “jpegphoto.vbs” and run it after editing it to work with your AD, etc.
Const theUser = “user.name”
Const theFile = “photo.jpg”
Const adTypeBinary = 1
Set BinaryStream = CreateObject(“ADODB.Stream”)
BinaryStream.Type = adTypeBinary
ReadBinaryFile = BinaryStream.Read
Set objNewUser = GetObject(“LDAP://localhost:389/cn=” & theuser & “,ou=Organization,dc=mydomain,dc=internal”)
objNewUser.Put “jpegPhoto”, ReadBinaryFile(theFile)
Set objNewUser = Nothing
I suggest keeping your photos small. A 100x100 pixel jpeg seems to be about 5 k in size and works well with spark, etc.