<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Frank Seitz - Developer Logbuch - LDAP</title>
    <link>http://fseitz.de/blog/</link>
    <description>Notizen aus der Welt der Programmierung und Administration</description>
    <dc:language>de</dc:language>
    <generator>Serendipity 1.5.1 - http://www.s9y.org/</generator>
    <pubDate>Mon, 06 Jan 2025 09:30:50 GMT</pubDate>

    <image>
        <url>http://fseitz.de/blog/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Frank Seitz - Developer Logbuch - LDAP - Notizen aus der Welt der Programmierung und Administration</title>
        <link>http://fseitz.de/blog/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>LDAP: Authentisierung gegen Active Directory</title>
    <link>http://fseitz.de/blog/index.php?/archives/173-LDAP-Authentisierung-gegen-Active-Directory.html</link>
            <category>LDAP</category>
    
    <comments>http://fseitz.de/blog/index.php?/archives/173-LDAP-Authentisierung-gegen-Active-Directory.html#comments</comments>
    <wfw:comment>http://fseitz.de/blog/wfwcomment.php?cid=173</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://fseitz.de/blog/rss.php?version=2.0&amp;type=comments&amp;cid=173</wfw:commentRss>
    

    <author>nospam@example.com (Frank Seitz)</author>
    <content:encoded>
    &lt;p class=&quot;sdoc-fig-p&quot;&gt;
  &lt;img class=&quot;sdoc-fig-img&quot; src=&quot;http://fseitz.de/blog/uploads/ldap-logo-278x101.png&quot; height=&quot;65&quot; alt=&quot;&quot; /&gt;
&lt;/p&gt;
&lt;p class=&quot;sdoc-para-p&quot;&gt;
  Eine Authentisierung über LDAP gegen ein Active Directory (AD) besteht im
  Kern im Aufruf der Methode bind(). Gelingt dieser Aufruf, ist der Benutzer
  authentisiert:
&lt;/p&gt;
&lt;div class=&quot;sdoc-highlight-div&quot;&gt;
  &lt;pre class=&quot;sdoc-code-pre brush: perl; toolbar: false; pad-line-numbers: 1&quot;&gt;use Net::LDAP;&amp;#10;&amp;#10;my $workgroup = &#039;...&#039;;&amp;#10;my $user = &#039;...&#039;;&amp;#10;my $password = &#039;...&#039;;&amp;#10;&amp;#10;my $ldap = Net::LDAP-&amp;gt;new(&amp;#10;    &#039;ldaps://dc1&#039;,    # verschlüsselte Verbindung&amp;#10;    verify =&amp;gt; &#039;none&#039;, # keine Verifikation des Server-Zertifikats (sollte eigentlich &#039;require&#039; sein)&amp;#10;    onerror =&amp;gt; &#039;die&#039;, # Exception, wenn wenn nachfolgende Methodenaufrufe fehlschlagen&amp;#10;) or die $@;&amp;#10;&amp;#10;$ldap-&amp;gt;bind(&quot;$workgroup\\$user&quot;,password=&amp;gt;$password);&amp;#10;$ldap-&amp;gt;unbind;&amp;#10;&amp;#10;# ab hier ist der Benutzer authentisiert&lt;/pre&gt;
&lt;/div&gt;
 
    </content:encoded>

    <pubDate>Fri, 28 Oct 2022 18:27:12 +0200</pubDate>
    <guid isPermaLink="false">http://fseitz.de/blog/index.php?/archives/173-guid.html</guid>
    
</item>

</channel>
</rss>