<?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: sudo tls openldap ds in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-tls-openldap-ds/m-p/6849123#M489384</link>
    <description>&lt;P&gt;I resolved the problem. I had to compile sudo instead of using the ixSudo. HP has really gone downhill with keeping up with the ix software. I think the latest ixSudo is still A20, which was not compiled with ldap. For those who need the info, here you go.&lt;/P&gt;&lt;P&gt;Download the source from: &lt;A href="http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.8.16/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.8.16/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You will also need LDAP-UX installed. Gunzip and extract the source. Go to the directory and do the following:&lt;/P&gt;&lt;PRE&gt;export CFLAGS="-D__10_10_compat_code"
export LDFLAGS="-L/opt/ldapux/lib"
./configure --with-ldap=/opt/ldapux/ --with-pam&lt;/PRE&gt;&lt;P&gt;then make and make install. You should be able to copy the binary to your other servers.&lt;/P&gt;&lt;P&gt;Once I&amp;nbsp;compiled&amp;nbsp;it, it worked flawlessly.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Apr 2016 13:09:54 GMT</pubDate>
    <dc:creator>feeble</dc:creator>
    <dc:date>2016-04-08T13:09:54Z</dc:date>
    <item>
      <title>sudo tls openldap ds</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-tls-openldap-ds/m-p/6848909#M489382</link>
      <description>&lt;P&gt;I have not used these forums in a while. I miss the old days with hats. Anyway, maybe someone can help. I have setup openldap on Linux as a DS. I am replacing HP Directory Server. I have a HPUX host configured to authenticate against openldap using certs and tls. Now my issue is sudo. We have sudo in ldap and cannot access the SUDOers entries. I am running sudo from the internet express pack. Version &amp;nbsp;A.18.00-1.7.9.001, since it is the only one that was compiled correctly with ldap.&amp;nbsp; This is essentially what my ldap.conf looks like:&lt;/P&gt;&lt;P&gt;uri ldaps://server.domain.com:636/&lt;BR /&gt;bind_timelimit 30&lt;BR /&gt;timelimit 30&lt;BR /&gt;sudoers_base ou=SUDOers,dc=domain,dc=com&lt;BR /&gt;ssl start_tls&lt;BR /&gt;sudoers_debug 2&lt;/P&gt;&lt;P&gt;When I run sudo, I get this:&lt;/P&gt;&lt;P&gt;sudo: ldap_initialize(ld, ldaps://server.domain.com:636/)&lt;BR /&gt;sudo: ldap_set_option: debug -&amp;gt; 0&lt;BR /&gt;sudo: ldap_set_option: ldap_version -&amp;gt; 3&lt;BR /&gt;sudo: ldap_set_option: timelimit -&amp;gt; 30&lt;BR /&gt;sudo: ldap_set_option(LDAP_OPT_NETWORK_TIMEOUT, 30)&lt;BR /&gt;sudo: ldap_start_tls_s(): Can't contact LDAP server&lt;BR /&gt;sudo: no valid sudoers sources found, quitting&lt;/P&gt;&lt;P&gt;I am not finding any useful information on google. Not sure if any one already has a workfin config using tls. Real help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Court&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 19:03:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-tls-openldap-ds/m-p/6848909#M489382</guid>
      <dc:creator>feeble</dc:creator>
      <dc:date>2016-04-07T19:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: sudo tls openldap ds</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-tls-openldap-ds/m-p/6848941#M489383</link>
      <description>&lt;P&gt;&amp;nbsp;&amp;nbsp; So far as I can recall, I've never fired an LDAP in anger, so I know&lt;BR /&gt;nothing, but:&lt;/P&gt;&lt;P&gt;&amp;gt; sudo: ldap_initialize(ld, ldaps://server.domain.com:636/)&lt;BR /&gt;&amp;gt; [...]&lt;BR /&gt;&amp;gt; sudo: ldap_start_tls_s(): Can't contact LDAP server&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; This is the kind of thing which I'd expect to see if no one at&lt;BR /&gt;"server.domain.com" is listening at port 636.&amp;nbsp; (I'd expect more&lt;BR /&gt;interesting diagnostics if the client could&amp;nbsp;contact the server, but&lt;BR /&gt;something less fundamental, like the "S" negotiation failed.&amp;nbsp; But what&lt;BR /&gt;do I know?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Assuming that the name resolution for "server.domain.com" works, my&lt;BR /&gt;first test would look something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; telnet server.domain.com 636&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 20:41:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-tls-openldap-ds/m-p/6848941#M489383</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2016-04-07T20:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: sudo tls openldap ds</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-tls-openldap-ds/m-p/6849123#M489384</link>
      <description>&lt;P&gt;I resolved the problem. I had to compile sudo instead of using the ixSudo. HP has really gone downhill with keeping up with the ix software. I think the latest ixSudo is still A20, which was not compiled with ldap. For those who need the info, here you go.&lt;/P&gt;&lt;P&gt;Download the source from: &lt;A href="http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.8.16/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.8.16/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You will also need LDAP-UX installed. Gunzip and extract the source. Go to the directory and do the following:&lt;/P&gt;&lt;PRE&gt;export CFLAGS="-D__10_10_compat_code"
export LDFLAGS="-L/opt/ldapux/lib"
./configure --with-ldap=/opt/ldapux/ --with-pam&lt;/PRE&gt;&lt;P&gt;then make and make install. You should be able to copy the binary to your other servers.&lt;/P&gt;&lt;P&gt;Once I&amp;nbsp;compiled&amp;nbsp;it, it worked flawlessly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 13:09:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-tls-openldap-ds/m-p/6849123#M489384</guid>
      <dc:creator>feeble</dc:creator>
      <dc:date>2016-04-08T13:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: sudo tls openldap ds</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-tls-openldap-ds/m-p/6849126#M489385</link>
      <description>&lt;P&gt;Almost forgot. I had to add these lines to ldap.conf:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;tls_cert /etc/opt/ldapux
tls_key /etc/opt/ldapux&lt;/PRE&gt;
&lt;P&gt;Again, I am using certs. A little background here. I am using Mozilla NSS which uses the cert8.db and key3.db. My openldap config is a provider with two consumers. I can add each servers cert to the database, and the clients can communicate with all three hosts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I should also mention that I used this site for reference:&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;&lt;A&gt;https://itsecureadmin.com/wiki/index.php?title=Configure_HPUX_11.11_to_authenticate_against_OpenLDAP&amp;amp;oldid=2049&lt;/A&gt;&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;[Admin: the above link is no longer valid]&lt;/P&gt;
&lt;P&gt;If you are using the latest openldap 2.4, I do not beleive you have to mess witht he DUAConfig schema that is on the site. It's hard to know that since the packages, etc, for different distros seem to be a different. I use olc, and the package that is on OEL7.2 already has a duaconf.ldif. So no need to re-invent the wheel.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 08:47:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-tls-openldap-ds/m-p/6849126#M489385</guid>
      <dc:creator>feeble</dc:creator>
      <dc:date>2021-04-05T08:47:26Z</dc:date>
    </item>
  </channel>
</rss>

