Adding Photo to AD User Object - Example

  • Thread starter Matjaz Ladava [MVP]
  • Start date
M

Matjaz Ladava [MVP]

Hi,

I have created a sample program written in that can manipulate Photo
attribute in AD User class. The code is writtein in C# and it is used for
demonstration purposes. Photo attribute is only available in 2003 AD schema.
In 2000 you can use thumbnailPhoto attribute instead of photo attribute.
They use the sam octet strying datatype. You just need to download the
source and modify one line of code.

If anyone wants to try here are the links

Executable http://www.ladava.com/faq/uploads/ADphoto.zip
Sources http://www.ladava.com/faq/uploads/ADPhoto (source).zip

You need .NET framework 1.1 to run this stuff.

--

Regards

Matjaz Ladava, MCSA, MCSE, MCT, MVP
Microsoft MVP Windows Server - Active Directory
(e-mail address removed), (e-mail address removed)
 
S

Simon Geary

That's a nifty looking tool Matjaz. Do you know how to add a tab in user
properties that would show the photo?
 
M

Matjaz Ladava [MVP]

You still need to know how to write COM in-proc server in C++. Unfortunatly
I don't know C++ that well. I hope MS will create a easier way to plug into
mmc interface in future, or maby it is time for me to dig into COM C++ stuff
:)

--

Regards

Matjaz Ladava, MCSA, MCSE, MCT, MVP
Microsoft MVP Windows Server - Active Directory
(e-mail address removed), (e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top