<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Managing Users In Active Directory From Linux &#8211; adtool</title>
	<atom:link href="http://felimwhiteley.wordpress.com/2008/08/21/managing-users-in-active-directory-from-linux-adtool/feed/" rel="self" type="application/rss+xml" />
	<link>http://felimwhiteley.wordpress.com/2008/08/21/managing-users-in-active-directory-from-linux-adtool/</link>
	<description>Linux, Server Monitoring, IT</description>
	<lastBuildDate>Wed, 23 Sep 2009 10:41:29 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Félim</title>
		<link>http://felimwhiteley.wordpress.com/2008/08/21/managing-users-in-active-directory-from-linux-adtool/#comment-74</link>
		<dc:creator>Félim</dc:creator>
		<pubDate>Wed, 03 Jun 2009 17:25:20 +0000</pubDate>
		<guid isPermaLink="false">http://felimwhiteley.wordpress.com/?p=42#comment-74</guid>
		<description>I&#039;ve only seen that error when the &quot;TLS_REQCERT allow&quot; setting is missing. I presume you can actualyl resolve the AD box ? Also I&#039;m guessing there is no firewall blocking access for you as well ?

You want to manage AD user do you not ? Evolution talks to Exchange alright but it&#039;s purely an email client. I don&#039;t know th einner workins but it will be using MAPI to transfer mail back and forth and it uses a for of WebDAV for calendering. It doesn&#039;t have anyway to manage AD, AD doesn&#039;t talk HTTP either. Perhaps I&#039;m misunderstanding you though.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve only seen that error when the &#8220;TLS_REQCERT allow&#8221; setting is missing. I presume you can actualyl resolve the AD box ? Also I&#8217;m guessing there is no firewall blocking access for you as well ?</p>
<p>You want to manage AD user do you not ? Evolution talks to Exchange alright but it&#8217;s purely an email client. I don&#8217;t know th einner workins but it will be using MAPI to transfer mail back and forth and it uses a for of WebDAV for calendering. It doesn&#8217;t have anyway to manage AD, AD doesn&#8217;t talk HTTP either. Perhaps I&#8217;m misunderstanding you though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jessica</title>
		<link>http://felimwhiteley.wordpress.com/2008/08/21/managing-users-in-active-directory-from-linux-adtool/#comment-73</link>
		<dc:creator>Jessica</dc:creator>
		<pubDate>Wed, 03 Jun 2009 17:03:12 +0000</pubDate>
		<guid isPermaLink="false">http://felimwhiteley.wordpress.com/?p=42#comment-73</guid>
		<description>I&#039;m using Suse 10.3, and I just found the file exists in /etc/openldap.

After fixing these things, I get the same result though:

bind: : Can&#039;t contact LDAP server (-1)

Perhaps I am out of luck.  However, all this gave me another idea.  I know there is an email client &quot;Evolution&quot; which can hook into an AD mail system if they have the webmail server in operation.  I would think it would be easier to make something that talks to the webmail via http rather than directly to AD itself.  Thoughts?</description>
		<content:encoded><![CDATA[<p>I&#8217;m using Suse 10.3, and I just found the file exists in /etc/openldap.</p>
<p>After fixing these things, I get the same result though:</p>
<p>bind: : Can&#8217;t contact LDAP server (-1)</p>
<p>Perhaps I am out of luck.  However, all this gave me another idea.  I know there is an email client &#8220;Evolution&#8221; which can hook into an AD mail system if they have the webmail server in operation.  I would think it would be easier to make something that talks to the webmail via http rather than directly to AD itself.  Thoughts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Félim</title>
		<link>http://felimwhiteley.wordpress.com/2008/08/21/managing-users-in-active-directory-from-linux-adtool/#comment-72</link>
		<dc:creator>Félim</dc:creator>
		<pubDate>Wed, 03 Jun 2009 16:36:29 +0000</pubDate>
		<guid isPermaLink="false">http://felimwhiteley.wordpress.com/?p=42#comment-72</guid>
		<description>What distro are you running, if it&#039;s not Debian based that might not work at all, in fact it&#039;s likely that it might be under /etc/openldap or some other path. That bindpw line goes into the adtool.cfg and will be the password of whatever user you are using in the same file. Does that make sense ?</description>
		<content:encoded><![CDATA[<p>What distro are you running, if it&#8217;s not Debian based that might not work at all, in fact it&#8217;s likely that it might be under /etc/openldap or some other path. That bindpw line goes into the adtool.cfg and will be the password of whatever user you are using in the same file. Does that make sense ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jessica</title>
		<link>http://felimwhiteley.wordpress.com/2008/08/21/managing-users-in-active-directory-from-linux-adtool/#comment-71</link>
		<dc:creator>Jessica</dc:creator>
		<pubDate>Wed, 03 Jun 2009 13:23:05 +0000</pubDate>
		<guid isPermaLink="false">http://felimwhiteley.wordpress.com/?p=42#comment-71</guid>
		<description>Félim:
  Thanks for the quick response!
  Actually, I didn&#039;t have a /etc/ldap/ldap.conf file, so I created as you described.  I also changed my query, but i get the same result:

bind: : Can&#039;t contact LDAP server (-1)

I do not have a bindpw set.  Where would I set that?</description>
		<content:encoded><![CDATA[<p>Félim:<br />
  Thanks for the quick response!<br />
  Actually, I didn&#8217;t have a /etc/ldap/ldap.conf file, so I created as you described.  I also changed my query, but i get the same result:</p>
<p>bind: : Can&#8217;t contact LDAP server (-1)</p>
<p>I do not have a bindpw set.  Where would I set that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Félim</title>
		<link>http://felimwhiteley.wordpress.com/2008/08/21/managing-users-in-active-directory-from-linux-adtool/#comment-70</link>
		<dc:creator>Félim</dc:creator>
		<pubDate>Wed, 03 Jun 2009 13:13:20 +0000</pubDate>
		<guid isPermaLink="false">http://felimwhiteley.wordpress.com/?p=42#comment-70</guid>
		<description>Hey Jessica,

What does your /etc/ldap/ldap.conf (Path might be different depending on your Distro)

Should have it setup like so:
BASE    dc=srv02,dc=foo,dc=com
URI     ldaps://srv02.foo.com
TLS_REQCERT allow

Well there is no problem having multiple setups in there but you need one for this server specifically. It&#039;s possible the &quot;TLS_REQCERT allow&quot; line will fix it. It caused me all sorts of headaches.

The local config will override the /etc one so that&#039;s ok. Also make sure your bindpw is obviously set to whatever it is. That *should* be you good to go. But your list command is a little off:

adtool list &quot;ou=User Accounts,dc=srv02,dc=foo,dc=com&quot;

Should show users, bear in mind the Whiespace in User Accounts means you need the inverted commas arouns it. Hope it works ! If not let me know.</description>
		<content:encoded><![CDATA[<p>Hey Jessica,</p>
<p>What does your /etc/ldap/ldap.conf (Path might be different depending on your Distro)</p>
<p>Should have it setup like so:<br />
BASE    dc=srv02,dc=foo,dc=com<br />
URI     ldaps://srv02.foo.com<br />
TLS_REQCERT allow</p>
<p>Well there is no problem having multiple setups in there but you need one for this server specifically. It&#8217;s possible the &#8220;TLS_REQCERT allow&#8221; line will fix it. It caused me all sorts of headaches.</p>
<p>The local config will override the /etc one so that&#8217;s ok. Also make sure your bindpw is obviously set to whatever it is. That *should* be you good to go. But your list command is a little off:</p>
<p>adtool list &#8220;ou=User Accounts,dc=srv02,dc=foo,dc=com&#8221;</p>
<p>Should show users, bear in mind the Whiespace in User Accounts means you need the inverted commas arouns it. Hope it works ! If not let me know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jessica</title>
		<link>http://felimwhiteley.wordpress.com/2008/08/21/managing-users-in-active-directory-from-linux-adtool/#comment-69</link>
		<dc:creator>Jessica</dc:creator>
		<pubDate>Wed, 03 Jun 2009 12:48:28 +0000</pubDate>
		<guid isPermaLink="false">http://felimwhiteley.wordpress.com/?p=42#comment-69</guid>
		<description>Hello, I didn&#039;t see this reply until recently.
When I try to connect:

adtool list foo.com

I get the following:

bind: : Can&#039;t contact LDAP server (-1)

Here&#039;s what I currently have.  A user with a .adtool.cfg in homedir containing:

uri ldaps://srv02.foo.com
binddn cn=jess6,cn=Users,dc=srv02,dc=foo,dc=com
bindpw blank
searchbase dc=srv02,dc=foo,dc=com

  (where foo is really my domain, and srv02.foo.com does resolve to my AD server)


I have /etc/adtool.cfg

uri ldap://srv02.foo.com
binddn dc=foo,dc=com
searchbase dc=foo,dc=com


Should this work?</description>
		<content:encoded><![CDATA[<p>Hello, I didn&#8217;t see this reply until recently.<br />
When I try to connect:</p>
<p>adtool list foo.com</p>
<p>I get the following:</p>
<p>bind: : Can&#8217;t contact LDAP server (-1)</p>
<p>Here&#8217;s what I currently have.  A user with a .adtool.cfg in homedir containing:</p>
<p>uri ldaps://srv02.foo.com<br />
binddn cn=jess6,cn=Users,dc=srv02,dc=foo,dc=com<br />
bindpw blank<br />
searchbase dc=srv02,dc=foo,dc=com</p>
<p>  (where foo is really my domain, and srv02.foo.com does resolve to my AD server)</p>
<p>I have /etc/adtool.cfg</p>
<p>uri ldap://srv02.foo.com<br />
binddn dc=foo,dc=com<br />
searchbase dc=foo,dc=com</p>
<p>Should this work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Félim</title>
		<link>http://felimwhiteley.wordpress.com/2008/08/21/managing-users-in-active-directory-from-linux-adtool/#comment-54</link>
		<dc:creator>Félim</dc:creator>
		<pubDate>Wed, 25 Feb 2009 23:16:45 +0000</pubDate>
		<guid isPermaLink="false">http://felimwhiteley.wordpress.com/?p=42#comment-54</guid>
		<description>Did you ever get this working ? nlctest was just a name for the Windows Domain in this example. If you say were Yahoo and you had a server called srv1

Then we&#039;d use:

BASE dc=srv1,dc=yahoo,dc=com
 URI ldaps://srv1.yahoo.com

Apologies wordpress/gmail dropped your reply, so if it&#039;s still causing you hassle let me know.</description>
		<content:encoded><![CDATA[<p>Did you ever get this working ? nlctest was just a name for the Windows Domain in this example. If you say were Yahoo and you had a server called srv1</p>
<p>Then we&#8217;d use:</p>
<p>BASE dc=srv1,dc=yahoo,dc=com<br />
 URI ldaps://srv1.yahoo.com</p>
<p>Apologies wordpress/gmail dropped your reply, so if it&#8217;s still causing you hassle let me know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jessica</title>
		<link>http://felimwhiteley.wordpress.com/2008/08/21/managing-users-in-active-directory-from-linux-adtool/#comment-35</link>
		<dc:creator>Jessica</dc:creator>
		<pubDate>Fri, 07 Nov 2008 18:41:28 +0000</pubDate>
		<guid isPermaLink="false">http://felimwhiteley.wordpress.com/?p=42#comment-35</guid>
		<description>Félim:
  Thanks for the reply?  Can you email me?  I still have many questions-- for example, what is &#039;nlctest&#039; ?

email:  jessica6_2000@yahoo.com

Thanks!</description>
		<content:encoded><![CDATA[<p>Félim:<br />
  Thanks for the reply?  Can you email me?  I still have many questions&#8211; for example, what is &#8216;nlctest&#8217; ?</p>
<p>email:  <a href="mailto:jessica6_2000@yahoo.com">jessica6_2000@yahoo.com</a></p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Félim</title>
		<link>http://felimwhiteley.wordpress.com/2008/08/21/managing-users-in-active-directory-from-linux-adtool/#comment-34</link>
		<dc:creator>Félim</dc:creator>
		<pubDate>Wed, 05 Nov 2008 10:51:34 +0000</pubDate>
		<guid isPermaLink="false">http://felimwhiteley.wordpress.com/?p=42#comment-34</guid>
		<description>Hi Jessica,

Not sure if you want to post your details of your AD here, but I can certainly give you basics of it if you want to ?

In my example I had a domain controller called felim-srv2.test.domain

So I setup two files (Ubuntu/Debian)
In my home folder I created a file called .adtool.cfg which contained:

uri ldaps://felim-srv2.nlctest.domain
binddn cn=Administrator,cn=Users,dc=nlctest,dc=domain
bindpw blank
searchbase dc=nlctest,dc=domain

This was using the Administrator account, but you don&#039;t need that, you just need to be a user with rights to manage whatever OU contains the user you want to manage.

Then I also had to add to me /etc/ldap/ldap.conf :

BASE    dc=felim-srv2,dc=nlctest,dc=domain
URI     ldaps://felim-srv2.nlctest.domain
TLS_REQCERT allow

This allows me to use LDAPS and manage the user passwords. It&#039;s a bit hard not knowing your setup (That being the main issue as you do have to know the paths) but if you want to post more info I&#039;ll happily reply or I can email you if you&#039;d like.

The best way to really discover whether something is a OU or a CN is to use an LDAP browser like Luma for Linux. AD hides the raw LDAP locations away which can be a bit of a pain.</description>
		<content:encoded><![CDATA[<p>Hi Jessica,</p>
<p>Not sure if you want to post your details of your AD here, but I can certainly give you basics of it if you want to ?</p>
<p>In my example I had a domain controller called felim-srv2.test.domain</p>
<p>So I setup two files (Ubuntu/Debian)<br />
In my home folder I created a file called .adtool.cfg which contained:</p>
<p>uri ldaps://felim-srv2.nlctest.domain<br />
binddn cn=Administrator,cn=Users,dc=nlctest,dc=domain<br />
bindpw blank<br />
searchbase dc=nlctest,dc=domain</p>
<p>This was using the Administrator account, but you don&#8217;t need that, you just need to be a user with rights to manage whatever OU contains the user you want to manage.</p>
<p>Then I also had to add to me /etc/ldap/ldap.conf :</p>
<p>BASE    dc=felim-srv2,dc=nlctest,dc=domain<br />
URI     ldaps://felim-srv2.nlctest.domain<br />
TLS_REQCERT allow</p>
<p>This allows me to use LDAPS and manage the user passwords. It&#8217;s a bit hard not knowing your setup (That being the main issue as you do have to know the paths) but if you want to post more info I&#8217;ll happily reply or I can email you if you&#8217;d like.</p>
<p>The best way to really discover whether something is a OU or a CN is to use an LDAP browser like Luma for Linux. AD hides the raw LDAP locations away which can be a bit of a pain.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jessica</title>
		<link>http://felimwhiteley.wordpress.com/2008/08/21/managing-users-in-active-directory-from-linux-adtool/#comment-33</link>
		<dc:creator>Jessica</dc:creator>
		<pubDate>Tue, 04 Nov 2008 20:13:42 +0000</pubDate>
		<guid isPermaLink="false">http://felimwhiteley.wordpress.com/?p=42#comment-33</guid>
		<description>I&#039;d love to get this adtool thing to work, but am not a ldap god/expert/novice or even pawn.  Is there some simple documentation explaining (not conceptually, but real examples) how to use this tool to query the Active Directory?  Examples of command line options, what needs to be in the /etc/adtool.cfg, what sort of users/accounts/permissions need to be in place on the AD server, etc.

I&#039;ve seen the man page, but it leaves a lot to be desired.
I&#039;ve guessed and tried quite a bit, trying various combinations of ou=foo, dc=blah, cn=what, etc., but really don&#039;t know what else to try.

It would be great to NOT have to boot up a Windows box to do AD administration.

Thanks!</description>
		<content:encoded><![CDATA[<p>I&#8217;d love to get this adtool thing to work, but am not a ldap god/expert/novice or even pawn.  Is there some simple documentation explaining (not conceptually, but real examples) how to use this tool to query the Active Directory?  Examples of command line options, what needs to be in the /etc/adtool.cfg, what sort of users/accounts/permissions need to be in place on the AD server, etc.</p>
<p>I&#8217;ve seen the man page, but it leaves a lot to be desired.<br />
I&#8217;ve guessed and tried quite a bit, trying various combinations of ou=foo, dc=blah, cn=what, etc., but really don&#8217;t know what else to try.</p>
<p>It would be great to NOT have to boot up a Windows box to do AD administration.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
