ruby on rails - displaying Active Directory high-res user photo -


i want display user's high-res photo uploaded in active directory.

you can access photo after authentication visiting direct url (changed privacy):

https://exchange.mycompany.org/ews/exchange.asmx/s/getuserphoto?email=name@mycompany.org&size=hr648x648

so, works after authentication:

<img alt="userphoto" src='https://exchange.mycompany.org/ews/exchange.asmx/s/getuserphoto?email=name@mycompany.org&size=hr648x648'/> 

i totally understand why you'd want behind authentication there way access without authenticating?

i tried download photos through curl, potentially upload them database: (no luck)

curl -u domain\\username:password -o https://exchange.mycompany.org/ews/exchange.asmx/s/getuserphoto?email=name@mycompany.org&size=hr648x648 

anyone have creative solution?

i able run ruby script authenticate on backend using:

system('curl -u username:password -o filename.jpeg url_of_photo')  

this downloaded photos locally. can viewed without authentication.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -