<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bellx2</author_name>
  <author_url>https://blog.hatena.ne.jp/bellx2/</author_url>
  <blog_title>べるべる研究日誌</blog_title>
  <blog_url>https://bellx2.hateblo.jp/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>ふと思い立って調べてみたら、昔かなり苦労してできなった社内のADサーバーでユーザー認証ができた。集中力の差だろうか...。前はLDAPをいじくってあーだこーだやってできなかったけど、シンプルにするのがコツだったようなのでメモ。何か社内認証が必要なところで使えるような気がするのでメモ。あと、Base指定が他のサンプルを参考にしたけど、うちのAD環境は少し違ったようなので社内ポータルの設定を見て解析してみました。 require 'rubygems' require 'net/ldap' require 'kconv' require 'pp' host = &quot;adsv01.test-inc.lo…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbellx2.hateblo.jp%2Fentry%2F20130306%2Fp1&quot; title=&quot;ADサーバーとの認証 - べるべる研究日誌&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-03-06 00:00:00</published>
  <title>ADサーバーとの認証</title>
  <type>rich</type>
  <url>https://bellx2.hateblo.jp/entry/20130306/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
