<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Fooblog &#187; ldap</title>
	<atom:link href="http://blog.maniac.nl/tag/ldap/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.maniac.nl</link>
	<description>Foobar's blog and linkdump</description>
	<lastBuildDate>Sun, 04 Jul 2010 22:35:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Solaris 10 as LDAP client (to OpenLDAP 2.4.x)</title>
		<link>http://blog.maniac.nl/2009/01/27/solaris-10-as-ldap-client-to-openldap-24x/</link>
		<comments>http://blog.maniac.nl/2009/01/27/solaris-10-as-ldap-client-to-openldap-24x/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 10:32:28 +0000</pubDate>
		<dc:creator>foobar</dc:creator>
				<category><![CDATA[Just Blogging Stuff]]></category>
		<category><![CDATA[Proxytunnel]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[rant]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[openldap]]></category>
		<category><![CDATA[pubkey]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://blog.maniac.nl/?p=297</guid>
		<description><![CDATA[During the last couple of weeks I&#8217;ve been working on getting a central directory setup for my client, running on OpenLDAP 2.4. Not having worked with LDAP a lot before it proved quite a challenge, especially getting Solaris 10 to work with the LDAP server without any glitches.
In this document I&#8217;ll try and describe how [...]]]></description>
			<content:encoded><![CDATA[<p>During the last couple of weeks I&#8217;ve been working on getting a central directory setup for my client, running on OpenLDAP 2.4. Not having worked with LDAP a lot before it proved quite a challenge, especially getting Solaris 10 to work with the LDAP server without any glitches.<br />
In this document I&#8217;ll try and describe how this setup was made, because I have been unable to find a single consistent document describing all the intricate details.<br />
At this time I have all my problems fixed (AFAIK), but during the setup phase I experienced various problems:</p>
<ul>
<li>Solaris 10 not seeing any users from LDAP</li>
<li>Solaris seeing users, but not letting them log in</li>
<li>Log-in working from console, but not ssh</li>
<li>Passwordless login (pubkey) not working in SUN-SSH</li>
<li>Users being able to hack extra permissions for themselves</li>
<li>etc&#8230;. etc&#8230;.etc&#8230;</li>
</ul>
<p>The entire article has been moved to a more permanent location, as a page on this site. You can find it under the &#8216;Pages&#8217; header on the right. <a href="http://blog.maniac.nl/setting-up-ldap-with-openldap-server-solaris-10-aix-61-and-linux-clients/">Setting up ldap</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.maniac.nl/2009/01/27/solaris-10-as-ldap-client-to-openldap-24x/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Sudo with LDAP</title>
		<link>http://blog.maniac.nl/2007/03/26/sudo-with-ldap/</link>
		<comments>http://blog.maniac.nl/2007/03/26/sudo-with-ldap/#comments</comments>
		<pubDate>Mon, 26 Mar 2007 08:34:53 +0000</pubDate>
		<dc:creator>foobar</dc:creator>
				<category><![CDATA[Just Blogging Stuff]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[schema]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://blog.maniac.nl/2007/03/26/sudo-with-ldap/</guid>
		<description><![CDATA[Most people who use *nix systems are probably familiar with sudo. At a customer I&#8217;ve been working for there used to be a vast machine park with sudo installations, all slightly different in configuration. Maintaining these configurations was not an easy task. Enter LDAP. Using LDAP for storing the sudo configuration we can now have [...]]]></description>
			<content:encoded><![CDATA[<p>Most people who use *nix systems are probably familiar with <a href="http://www.sudo.ws">sudo</a>. At a customer I&#8217;ve been working for there used to be a vast machine park with sudo installations, all slightly different in configuration. Maintaining these configurations was not an easy task. Enter LDAP. Using LDAP for storing the sudo configuration we can now have a single point for configuring sudo, with instant updates on all machines.<br />
I&#8217;ll explain what needs to be done to ldap-i-fy your sudo configuration below.<br />
<img src="http://ants.wynand.com/gallery/albums/misc/sudo.jpg" alt="sudo cartoon xkcd" /></p>
<h4>Put the following schema in your ldap config</h4>
<hr /><code>dn: cn=schema<br />
attributeTypes: ( 1.3.6.1.4.1.15953.9.1.1 NAME 'sudoUser' DESC 'User(s) who may  run sudo' EQUALITY caseExactIA5Match SUBSTR caseExactIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 X-ORIGIN 'SUDO' )<br />
attributeTypes: ( 1.3.6.1.4.1.15953.9.1.2 NAME 'sudoHost' DESC 'Host(s) who may run sudo' EQUALITY caseExactIA5Match SUBSTR caseExactIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 X-ORIGIN 'SUDO' )<br />
attributeTypes: ( 1.3.6.1.4.1.15953.9.1.3 NAME 'sudoCommand' DESC 'Command(s) to be executed by sudo' EQUALITY caseExactIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 X-ORIGIN 'SUDO' )<br />
attributeTypes: ( 1.3.6.1.4.1.15953.9.1.4 NAME 'sudoRunAs' DESC 'User(s) impersonated by sudo' EQUALITY caseExactIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 X-ORIGIN 'SUDO' )<br />
attributeTypes: ( 1.3.6.1.4.1.15953.9.1.5 NAME 'sudoOption' DESC 'Options(s) followed by sudo' EQUALITY caseExactIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 X-ORIGIN 'SUDO' )<br />
objectClasses: ( 1.3.6.1.4.1.15953.9.2.1 NAME 'sudoRole' SUP top STRUCTURAL DESC 'Sudoer Entries' MUST ( cn ) MAY ( sudoUser $ sudoHost $ sudoCommand $ sudoRunAs $ sudoOption $ description ) X-ORIGIN 'SUDO' )<br />
</code></p>
<hr />
<h4>Restart your ldap server(s) to include the schema</h4>
<h4>Build sudo with the configure options &#8216;&#8211;with-ldap=&lt;path$gt;&#8217; and &#8211;with-ldap-conf-file=/etc/sudo.ldap</h4>
<h4>Put new sudo binaries on your system(s)</h4>
<h4>Create /etc/sudo.ldap with the following contents, replacing the ip&#8217;s and dc&#8217;s</h4>
<p><code><br />
host 10.20.30.40 10.20.30.50<br />
sudoers_base ou=SUDOers,dc=example,dc=com<br />
</code></p>
<h4>Create an ldif file with your sudo config (see below for an example)</h4>
<hr /><code><br />
dn: ou=SUDOers,dc=example,dc=com<br />
objectClass: top<br />
objectClass: organizationalunit<br />
description: SUDO Configuration Subtree<br />
ou: SUDOers</code></p>
<p>dn: cn=defaults,ou=SUDOers,dc=example,dc=com<br />
cn: defaults<br />
sudooption: ignore_dot<br />
sudooption: !mail_no_user<br />
sudooption: !root_sudo<br />
sudooption: log_host<br />
sudooption: logfile=/var/log/sudolog<br />
sudooption: !syslog<br />
sudooption: timestamp_timeout=10<br />
objectClass: top<br />
objectClass: sudoRole<br />
description: Default sudoOption&#8217;s</p>
<p>dn: cn=Rule1,ou=SUDOers,dc=example,dc=com<br />
cn: Rule1<br />
sudooption: !authenticate<br />
objectClass: top<br />
objectClass: sudoRole<br />
sudohost: ALL<br />
sudocommand: /some/command<br />
sudocommand: /some/other/command<br />
sudouser: ALL<br />
description: Allowed without password for ALL users</p>
<hr />The first block of code contains the container for the rest of the sudo configuration, just leave this as-is. The second block contains the default options for sudo. Configure these to your liking, they are the same as for the non-ldap config, and are documented in the manual-page.</p>
<p>The third code-block lists a sample sudo rule. Repeat these as often as needed. The fields &#8217;sudohost&#8217;, &#8217;sudocommand&#8217; and &#8217;sudouser&#8217; are required, &#8217;sudooption&#8217; is optional, and can override the defaults specified above.</p>
<p>Sudocommand should be repeated for every single executable (or use wildcards, not recommended) you want to enable via sudo. Sudouser can take regular usernames, or unix-group names when prefixed by a percent sign (%).</p>
<p>Please note that although commands can be negated (!/some/binary) there are work-arounds, so please think before acting. Users and Hosts can <strong>NOT</strong> be negated using ldap-configs&#8230; this is a current limitation.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.maniac.nl/2007/03/26/sudo-with-ldap/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
