<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ldapsearch in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/ldapsearch/m-p/5170852#M50632</link>
    <description>&lt;!--!*#--&gt;Thank you everyone, I have actually solved it myself so for anyone else in the future this is how it is done.&lt;BR /&gt;&lt;BR /&gt;ldapsearch -x -h "ip_address:port" \&lt;BR /&gt;-D "yourlogon@yourdomain" \&lt;BR /&gt;-w "yourdomainpassword"&lt;BR /&gt;-b "ou=accounts,dc=domain,dc=net" &lt;BR /&gt;"(sAMAccountName=whotolookfor)"&lt;BR /&gt;&lt;BR /&gt;So for a Directory server on ip address 1.1.1.1 , domain windoze.net and we want to look up user billyg's mail address.  You are user scriptman and your password is unixrules:&lt;BR /&gt;&lt;BR /&gt;ldapsearch -x -h "1.1.1.1:389"  \&lt;BR /&gt;-D "scriptman@windoze.net" -w "unixrules" \&lt;BR /&gt;-b "ou=accounts,dc=windoze,dc=net" \&lt;BR /&gt;"(sAMAccountName=billyg)" mail&lt;BR /&gt;&lt;BR /&gt;Best of luck - Gordon</description>
    <pubDate>Mon, 27 Apr 2009 09:43:10 GMT</pubDate>
    <dc:creator>Gordon Brown_5</dc:creator>
    <dc:date>2009-04-27T09:43:10Z</dc:date>
    <item>
      <title>ldapsearch</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ldapsearch/m-p/5170848#M50628</link>
      <description>I want to query our AD for the email address of a username; my Windows admins don't seem to be too clued up about how to query the AD and I get the following error when I attempt to use ldapsearch :&lt;BR /&gt;&lt;BR /&gt;ldap_search: additional info: 00000000: LdapErr: DSID-0C090627&lt;BR /&gt;&lt;BR /&gt;The problem would appear to be authentication but the available documentation is a bit sketchy on what is required - the Windoze admins are unhappy about creating a proxy user - so how do you supply credentials to ldapsearch.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance &lt;BR /&gt;&lt;BR /&gt;Gordon</description>
      <pubDate>Tue, 21 Apr 2009 15:27:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ldapsearch/m-p/5170848#M50628</guid>
      <dc:creator>Gordon Brown_5</dc:creator>
      <dc:date>2009-04-21T15:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: ldapsearch</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ldapsearch/m-p/5170850#M50630</link>
      <description>Well that might work on your installation but you obviously have something configured elsewhere  - eg where is your -h &lt;AD host=""&gt; ?&lt;/AD&gt;</description>
      <pubDate>Wed, 22 Apr 2009 08:01:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ldapsearch/m-p/5170850#M50630</guid>
      <dc:creator>Gordon Brown_5</dc:creator>
      <dc:date>2009-04-22T08:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: ldapsearch</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ldapsearch/m-p/5170851#M50631</link>
      <description>ldapsearch -b 'dc=your,dc=domain,dc=com' -D 'cn=binduser,...' -H ldap://domain.controller/ -W -x '(samaccountname=userid)'&lt;BR /&gt;&lt;BR /&gt;The ldapsearch man page is your friend, but that's the general formula. I put all the common stuff in my ~/.ldaprc for convenience. I also use SSL, which requires that you specify the root CA chain in ldaprc (or ldap.conf).&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Apr 2009 14:00:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ldapsearch/m-p/5170851#M50631</guid>
      <dc:creator>Heironimus</dc:creator>
      <dc:date>2009-04-22T14:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: ldapsearch</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ldapsearch/m-p/5170852#M50632</link>
      <description>&lt;!--!*#--&gt;Thank you everyone, I have actually solved it myself so for anyone else in the future this is how it is done.&lt;BR /&gt;&lt;BR /&gt;ldapsearch -x -h "ip_address:port" \&lt;BR /&gt;-D "yourlogon@yourdomain" \&lt;BR /&gt;-w "yourdomainpassword"&lt;BR /&gt;-b "ou=accounts,dc=domain,dc=net" &lt;BR /&gt;"(sAMAccountName=whotolookfor)"&lt;BR /&gt;&lt;BR /&gt;So for a Directory server on ip address 1.1.1.1 , domain windoze.net and we want to look up user billyg's mail address.  You are user scriptman and your password is unixrules:&lt;BR /&gt;&lt;BR /&gt;ldapsearch -x -h "1.1.1.1:389"  \&lt;BR /&gt;-D "scriptman@windoze.net" -w "unixrules" \&lt;BR /&gt;-b "ou=accounts,dc=windoze,dc=net" \&lt;BR /&gt;"(sAMAccountName=billyg)" mail&lt;BR /&gt;&lt;BR /&gt;Best of luck - Gordon</description>
      <pubDate>Mon, 27 Apr 2009 09:43:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ldapsearch/m-p/5170852#M50632</guid>
      <dc:creator>Gordon Brown_5</dc:creator>
      <dc:date>2009-04-27T09:43:10Z</dc:date>
    </item>
  </channel>
</rss>

