core icon indicating copy to clipboard operation
core copied to clipboard

Active Directory User Photo

Open RainerWP opened this issue 12 years ago • 9 comments

Hi,

Microsoft is now using thumbnailPhoto instead of jpegphoto as a profile picture for Exchange 2010 and Outlook 2010. Maybe the LDAP Setting (Advanced --> Special Attributes) could be modified so we can select wich LDAP Attribut should be used.

Regards,

Rainer

RainerWP avatar Dec 21 '13 06:12 RainerWP

I would also need that, great idea

Mehlstaub avatar Dec 21 '13 21:12 Mehlstaub

@blizzz

PVince81 avatar Jan 08 '14 10:01 PVince81

Oh, yeah, why should not we stick to standards, Microsoft. :angry:

My approach would be to try jpegphoto first, and read thumbnailphoto only if jpegphoto is empty. In the end, both attributes can be set or one of them, but differently per user.

blizzz avatar Jan 08 '14 20:01 blizzz

good idea :-) Do you mean that the user then should be able to decide which photo should be used ? Rainer

RainerWP avatar Jan 09 '14 19:01 RainerWP

Hi, i found a working fix (shouldn't be final, but it can be used for now). Edit the \apps\user_ldap\user_ldap.php file, on lines 88 and 131 change this

$jpegPhoto = $this->access->readAttribute($dn, 'jpegPhoto');

to this

$jpegPhoto = $this->access->readAttribute($dn, 'thumbnailPhoto');

And that should load the thumbnailPhoto in your ad users :)

Lucascamilo avatar Jan 28 '14 15:01 Lucascamilo

@Lucascamilo works fine thx.

Mehlstaub avatar Jan 29 '14 07:01 Mehlstaub

@blizzz Can we autodetect this somehow?

karlitschek avatar Feb 06 '14 17:02 karlitschek

Lucascamilo solution worked for me, however there might be people using an older Version with the photo in jpegPhoto field. So autodetecting would be fine :-)

RainerWP avatar Feb 06 '14 17:02 RainerWP

@karlitschek on my list. Though my preferable solution is to check thumbnailPhoto if jpegPhoto is not set. After all, both attributes are available on AD and jpegPhoto is standard by an RFC.

blizzz avatar Feb 06 '14 18:02 blizzz