<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  
  
  <channel>
    <title>chrisjrob: activedirectory</title>
    <link>https://chrisjrob.com</link>
    <atom:link href="https://chrisjrob.com/tag/activedirectory/feed/index.xml" rel="self" type="application/rss+xml" />
    <description>GNU Linux, Perl and FLOSS</description>
    <language>en-gb</language>
    <pubDate>Fri, 13 Feb 2026 17:22:31 +0000</pubDate>
    <lastBuildDate>Fri, 13 Feb 2026 17:22:31 +0000</lastBuildDate>
    
    <item>
      <title>Howto | Add ActiveDirectory Addressbook to Sylpheed Email</title>
      <link>https://chrisjrob.com/2015/11/19/add-activedirectory-addressbook-to-sylpheed-email/</link>
      <pubDate>Thu, 19 Nov 2015 21:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2015/11/19/add-activedirectory-addressbook-to-sylpheed-email</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/sylpheed.png" align="right" alt="Featured Image">
         
         <p>Where we require a lightweight mail client, we tend to use <a href="http://sylpheed.sraoss.jp/en/">Sylpheed</a> (from which Claws Mail was later forked).</p>

<p>It seems unlikely that you would be able to add an ActiveDirectory Address Book into such a lightweight email client, and indeed the <a href="http://sylpheed.sraoss.jp/doc/manual/en/sylpheed-12.html">manual</a> states:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>### FIXME: write this part.
</code></pre></div></div>

<p>But in fact it was trivially easy:</p>

<!--more-->

<h2 id="caveat">Caveat</h2>

<p>Whilst these instructions worked for us, do be aware that we are using Samba4 ActiveDirectory. 
In theory this is a drop-in replacement for Windows ActiveDirectory and these instructions <em>should</em> work unchanged.</p>

<h2 id="add-ldap-addressbook">Add LDAP Addressbook</h2>

<p>Firstly run Sylpheed and go to Tools and Addressbook. 
Within the Sylpheed Addressbook go to File New LDAP Server
You should now see a screen like this:</p>

<p><img src="/assets/sylpheed-ldap-1.png" alt="Sylpheed LDAP Basic Settings" /></p>

<p>Having entered the Name, Hostname and Port you are able to “Check Server”, to ensure connectivity.
Next either enter your Search Base, or click on the &amp;ellipsis; button to select from the detected Search Bases.</p>

<table>
  <thead>
    <tr>
      <th>Item</th>
      <th>Explanation</th>
      <th>Example</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Name</td>
      <td>Addressbook or server name</td>
      <td>example</td>
    </tr>
    <tr>
      <td>Hostname</td>
      <td>ActiveDirectory Host Name</td>
      <td>ads.example.lan</td>
    </tr>
    <tr>
      <td>Port</td>
      <td>LDAP Port Number*</td>
      <td>389 or 636</td>
    </tr>
    <tr>
      <td>Search Base</td>
      <td>Your AD domain in LDAP form</td>
      <td>DC=example,DC=lan</td>
    </tr>
  </tbody>
</table>

<p>*You should probably choose 636 when connecting via a public network, and you may need to open ports on your router.</p>

<p>Now select the Extended tab and you should see the following screen:</p>

<p><img src="/assets/sylpheed-ldap-2.png" alt="Sylpheed LDAP Extended Settings" /></p>

<table>
  <thead>
    <tr>
      <th>Item</th>
      <th>Explanation</th>
      <th>Example</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Search Criteria</td>
      <td>This simple example worked for us</td>
      <td>(objectclass=*)</td>
    </tr>
    <tr>
      <td>Bind DN</td>
      <td>Your ActiveDirectory username</td>
      <td>chris@example.lan</td>
    </tr>
    <tr>
      <td>Bind Password</td>
      <td>Your ActiveDirectory password</td>
      <td>-</td>
    </tr>
  </tbody>
</table>

<p>Now click on OK to finish.</p>

<h2 id="test">Test</h2>

<p>You should now have a Search field available, enter a colleague’s first name and Search and you should be faced with their email addresses.</p>

<h2 id="conclusion">Conclusion</h2>

<p>As far as I can tell the addressbook lookup is not automatic and you have to click on the addressbook icon in the Compose Window and search for the person, in order to add them to the To: field. A bit clunky perhaps, but arguably not so very different from the need in Outlook to press Check Names to look up new addresses. 
Needless to say - once the address is in the recent address list, it is auto-completed in the future.</p>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Howto | Connect KAddressBook to ActiveDirectory</title>
      <link>https://chrisjrob.com/2009/03/21/connect-kaddressbook-to-activedirectory/</link>
      <pubDate>Sat, 21 Mar 2009 05:57:18 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2009/03/21/connect-kaddressbook-to-activedirectory</guid>
      <description>
       <![CDATA[
         
         <p>In Kmail, under Contacts, in the lower half of the screen press button to [Add]. Select LDAP.</p>

<!--more-->

<table>
  <thead>
    <tr>
      <th>Name</th>
      <th>Value</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Name</td>
      <td>Enter the resource name here</td>
    </tr>
    <tr>
      <td>Read only</td>
      <td>[x]</td>
    </tr>
    <tr>
      <td>User</td>
      <td>ADDOMAIN~username~</td>
    </tr>
    <tr>
      <td>Bind DN</td>
      <td>ADDOMAIN</td>
    </tr>
    <tr>
      <td>Realm</td>
      <td> </td>
    </tr>
    <tr>
      <td>Password</td>
      <td>~userpass~</td>
    </tr>
    <tr>
      <td>Host</td>
      <td>hostname.domain.co.uk</td>
    </tr>
    <tr>
      <td>Port</td>
      <td>3268 (this is the port used by ActiveDirectory)</td>
    </tr>
    <tr>
      <td>LDAP</td>
      <td>3</td>
    </tr>
    <tr>
      <td>Size limit</td>
      <td>default</td>
    </tr>
    <tr>
      <td>Time limit</td>
      <td>default</td>
    </tr>
    <tr>
      <td>DN</td>
      <td>OU=Exact ActiveDirectory Name,DC=domain,DC=co,DC=uk</td>
    </tr>
    <tr>
      <td>Security</td>
      <td>NO</td>
    </tr>
    <tr>
      <td>Authentication</td>
      <td>Simple</td>
    </tr>
    <tr>
      <td>Subtree query</td>
      <td>[x]</td>
    </tr>
    <tr>
      <td>Offline use</td>
      <td>Use local copy if no connection</td>
    </tr>
  </tbody>
</table>


       ]]>
      </description>
    </item>
    
  </channel> 
</rss>
