【问题标题】:displaying Active Directory high-res user photo显示 Active Directory 高分辨率用户照片
【发布时间】:2015-07-25 02:28:23
【问题描述】:

我想显示用户上传到 Active Directory 中的高分辨率照片。

您可以在身份验证后通过访问直接 URL 访问此照片(为隐私而更改):

https://exchange.mycompany.org/ews/Exchange.asmx/s/GetUserPhoto?email=name@mycompany.org&size=HR648x648

所以,这在身份验证后有效:

<img alt="UserPhoto" src='https://exchange.mycompany.org/ews/Exchange.asmx/s/GetUserPhoto?email=name@mycompany.org&size=HR648x648'/>

我完全理解您为什么希望它在身份验证之后,但是有没有办法在不进行身份验证的情况下访问它?

我也尝试通过 curl 下载照片,所以我可以将它们上传到我的数据库:(运气不好)

curl -u DOMAIN\\username:password -O https://exchange.mycompany.org/ews/Exchange.asmx/s/GetUserPhoto?email=name@mycompany.org&size=HR648x648

谁有创造性的解决方案?

【问题讨论】:

    标签: ruby-on-rails active-directory thumbnails


    【解决方案1】:

    我能够运行 ruby​​ 脚本在后端进行身份验证,使用:

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

    这会将照片下载到本地。然后可以在没有身份验证的情况下查看它们。

    【讨论】:

      猜你喜欢
      • 2013-02-27
      • 2015-05-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多