PDA

Click to See Complete Forum and Search --> : Active Directory: Storing Images? Best approach


Zeratulsdomain
Apr 15th, 2010, 11:59 AM
Basically I need to store a single photo in active directory (picture ID of the employee).

Is there anyway I can actually store this picture directly into active directory?

I figure my options are:
1# Find a way to store in AD
2# Upload it to the server, and stick the location of it in some field in AD (like webpages?)
3# Use a database (I got old code that does exactly this, but we are looking for a pure AD solution)

plender
Apr 15th, 2010, 04:06 PM
AD objects, e.g. users, have useful extendedAttributes that you could store a location to the file on the file system with?

Zeratulsdomain
Apr 15th, 2010, 06:58 PM
Extended attributes is option two right now (ewe arent usiung the webpage field).

dilettante
Apr 15th, 2010, 11:34 PM
Isn't there a jpegPhoto attribute? What server OS are you using? I think this was new in Windows Server 2003.

Zeratulsdomain
Apr 16th, 2010, 11:46 AM
I cannot find that attribute in AD Users and Computers. Is it a field that does not have a GUI?

chris128
Apr 17th, 2010, 12:17 PM
I've never heard of that jpegPhoto attribute but if it exists you will not find it in AD Users & Computers - you could use ADSI Edit (built in with Server 2008, free download for Server 2003) to view all of the attributes of a user object.

EDIT: in fact a quick google of that attribute returns the following VB.NET tutorial on how to use it :) http://blogs.technet.com/btrst4/archive/2004/08/30/222629.aspx