<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.11" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Integrating LDAP and Kerberos: Part Two (LDAP)</title>
	<link>http://www.linux-mag.com/id/4765/</link>
	<description>Open Source, Open Standards</description>
	<pubDate>Sun, 05 Jul 2009 01:37:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.11</generator>

	<item>
		<title>by: captainmish</title>
		<link>http://www.linux-mag.com/id/4765/#comment-2238</link>
		<pubDate>Fri, 20 Mar 2009 15:33:24 +0000</pubDate>
		<guid>http://www.linux-mag.com/id/4765/#comment-2238</guid>
					<description>Anyone know the answer to this? - it doesnt seem clear where the users "live"</description>
		<content:encoded><![CDATA[<p>Anyone know the answer to this? - it doesnt seem clear where the users &#8220;live&#8221;
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: capedcrusader</title>
		<link>http://www.linux-mag.com/id/4765/#comment-2185</link>
		<pubDate>Sun, 08 Mar 2009 20:49:20 +0000</pubDate>
		<guid>http://www.linux-mag.com/id/4765/#comment-2185</guid>
					<description>So do users needed to be added to Kerberos and LDAP independently?  With this setup, if I add an LDAP user, should it have a corresponding Kerberos principle automatically?</description>
		<content:encoded><![CDATA[<p>So do users needed to be added to Kerberos and LDAP independently?  With this setup, if I add an LDAP user, should it have a corresponding Kerberos principle automatically?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: grkm2002</title>
		<link>http://www.linux-mag.com/id/4765/#comment-1927</link>
		<pubDate>Thu, 08 Jan 2009 00:37:38 +0000</pubDate>
		<guid>http://www.linux-mag.com/id/4765/#comment-1927</guid>
					<description>Great outline. However, i am getting the following error when i try to use the following line:
ldapadd -x -D "cn=admin,dc=ph,dc=ic,dc=ac,dc=uk" -W -f setup.ldif:

ldap_bind: Invalid credentials (49)
conn=0 fd=14 ACCEPT from IP=127.0.0.1:56098 (ip=0.0.0.0:389)
conn=0 op=0 RESULT tag=97 err=49 text=

Any help would be greatful. Was able to get everything else setup.</description>
		<content:encoded><![CDATA[<p>Great outline. However, i am getting the following error when i try to use the following line:<br />
ldapadd -x -D &#8220;cn=admin,dc=ph,dc=ic,dc=ac,dc=uk&#8221; -W -f setup.ldif:</p>
<p>ldap_bind: Invalid credentials (49)<br />
conn=0 fd=14 ACCEPT from IP=127.0.0.1:56098 (ip=0.0.0.0:389)<br />
conn=0 op=0 RESULT tag=97 err=49 text=</p>
<p>Any help would be greatful. Was able to get everything else setup.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: bsdlogical</title>
		<link>http://www.linux-mag.com/id/4765/#comment-1474</link>
		<pubDate>Thu, 11 Sep 2008 23:57:27 +0000</pubDate>
		<guid>http://www.linux-mag.com/id/4765/#comment-1474</guid>
					<description>Just to clarify, in #4, the last sasl-regexp line should be one line - it should not be split up into two.</description>
		<content:encoded><![CDATA[<p>Just to clarify, in #4, the last sasl-regexp line should be one line - it should not be split up into two.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: bsdlogical</title>
		<link>http://www.linux-mag.com/id/4765/#comment-1473</link>
		<pubDate>Thu, 11 Sep 2008 23:55:52 +0000</pubDate>
		<guid>http://www.linux-mag.com/id/4765/#comment-1473</guid>
					<description>While following this article (and Part One), I finally managed to install Kerberos and OpenLDAP together. However, I ran into some problems with the howto posted here on the way. I've made an effort to describe how I fixed them as well as I can, and I hope it helps others attempting to do the same thing. I installed this on Ubuntu 8.04, and some of the corrections come from a partially finished guide at https://help.ubuntu.com/community/SingleSignOn. However, if I've inadvertently made any mistakes in these comments, please post that as well so others won't be misled.

(Continued from Part 1)

Problems/Comments in Part 2:
1) I had problems putting the slapd.access line before the suffix definition in slapd.conf, so I put it after.
2) I managed to get LDAP working without the krb5-kdc.schema, though perhaps that was more of an accident.
3) The installation scripts had already created a root DN, so I only added one that looked like:
dn: ou=people,dc=domain,dc=com
objectclass: organizationalUnit
ou: people
description: Users

dn: uid=ldapadm,ou=people,dc=domain,dc=com
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: shadowAccount
cn: LDAP admin account
sn: LDAP Admin
uid: ldapadm
uidNumber: 1002
gidNumber: 100
homeDirectory: /etc/ldap
loginShell: /bin/false

4) When I tried installing this setup on a different system, the sasl and authz lines given in the howto didn't work. I'm not sure why, and I haven't debugged further, but I had to use these instead:
sasl-secprops noanonymous,noplain,noactive
sasl-regexp uid=([^/]*),cn=GSSAPI,cn=auth uid=$1,ou=People,dc=example,dc=com

5) I had to add apparmor profiles for slapd so it could access the files it needed. This is described in detail in https://bugs.launchpad.net/ubuntu/+source/openldap2.2/+bug/229252 

6) The package name should be ldap-utils, not ldap_utils, in the Client setup section.

7) In Ubuntu, the configuration for libnss-ldap is actually in /etc/ldap.conf (which is NOT the same thing as /etc/ldap/ldap.conf - that's used by other client LDAP utilities, while /etc/ldap/slapd.conf is used by the slapd server)

In addition to many useful sites out there is http://research.imb.uq.edu.au/~l.rathbone/ldap/gssapi.shtml</description>
		<content:encoded><![CDATA[<p>While following this article (and Part One), I finally managed to install Kerberos and OpenLDAP together. However, I ran into some problems with the howto posted here on the way. I&#8217;ve made an effort to describe how I fixed them as well as I can, and I hope it helps others attempting to do the same thing. I installed this on Ubuntu 8.04, and some of the corrections come from a partially finished guide at <a href="https://help.ubuntu.com/community/SingleSignOn." rel="nofollow">https://help.ubuntu.com/community/SingleSignOn.</a> However, if I&#8217;ve inadvertently made any mistakes in these comments, please post that as well so others won&#8217;t be misled.</p>
<p>(Continued from Part 1)</p>
<p>Problems/Comments in Part 2:<br />
1) I had problems putting the slapd.access line before the suffix definition in slapd.conf, so I put it after.<br />
2) I managed to get LDAP working without the krb5-kdc.schema, though perhaps that was more of an accident.<br />
3) The installation scripts had already created a root DN, so I only added one that looked like:<br />
dn: ou=people,dc=domain,dc=com<br />
objectclass: organizationalUnit<br />
ou: people<br />
description: Users</p>
<p>dn: uid=ldapadm,ou=people,dc=domain,dc=com<br />
objectClass: inetOrgPerson<br />
objectClass: posixAccount<br />
objectClass: shadowAccount<br />
cn: LDAP admin account<br />
sn: LDAP Admin<br />
uid: ldapadm<br />
uidNumber: 1002<br />
gidNumber: 100<br />
homeDirectory: /etc/ldap<br />
loginShell: /bin/false</p>
<p>4) When I tried installing this setup on a different system, the sasl and authz lines given in the howto didn&#8217;t work. I&#8217;m not sure why, and I haven&#8217;t debugged further, but I had to use these instead:<br />
sasl-secprops noanonymous,noplain,noactive<br />
sasl-regexp uid=([^/]*),cn=GSSAPI,cn=auth uid=$1,ou=People,dc=example,dc=com</p>
<p>5) I had to add apparmor profiles for slapd so it could access the files it needed. This is described in detail in <a href="https://bugs.launchpad.net/ubuntu/+source/openldap2.2/+bug/229252" rel="nofollow">https://bugs.launchpad.net/ubuntu/+source/openldap2.2/+bug/229252</a> </p>
<p>6) The package name should be ldap-utils, not ldap_utils, in the Client setup section.</p>
<p>7) In Ubuntu, the configuration for libnss-ldap is actually in /etc/ldap.conf (which is NOT the same thing as /etc/ldap/ldap.conf - that&#8217;s used by other client LDAP utilities, while /etc/ldap/slapd.conf is used by the slapd server)</p>
<p>In addition to many useful sites out there is <a href="http://research.imb.uq.edu.au/~l.rathbone/ldap/gssapi.shtml" rel="nofollow">http://research.imb.uq.edu.au/~l.rathbone/ldap/gssapi.shtml</a>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: eagmunoz</title>
		<link>http://www.linux-mag.com/id/4765/#comment-1397</link>
		<pubDate>Tue, 19 Aug 2008 03:24:44 +0000</pubDate>
		<guid>http://www.linux-mag.com/id/4765/#comment-1397</guid>
					<description>Maybe this what ur looking for 
man pam_krb5

Look  /.k5login</description>
		<content:encoded><![CDATA[<p>Maybe this what ur looking for<br />
man pam_krb5</p>
<p>Look  /.k5login
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: jimmyjump75</title>
		<link>http://www.linux-mag.com/id/4765/#comment-1382</link>
		<pubDate>Sat, 09 Aug 2008 04:00:45 +0000</pubDate>
		<guid>http://www.linux-mag.com/id/4765/#comment-1382</guid>
					<description>Can I map the kerberos username to a different LDAP user? Does the name have to be the same in ldap as the kerberos principal?
Specifically, can I authenticate with my kerberos credentials as user1@REALM and have that log me in as a local unix or NIS user after authentication? I cannot figure that part out!! I can authenticate fine with Kerberos but in order to login I need a matching user account name on the box or NIS or I get rejected. With winbind I can login using kerberos without having a local account but I have no control over the unix UID I am assigned and that is only good for shares anyway. What I am looking to accomplish is to authenticate using kerberos but have it log me in as a existing unix user. I know it is possible as on some of our AIX and Redhat boxes, we login with our Active directory (kerberos credentials) and after authenticating you are logged into the box as a local unix uid. I cannot figure out how to make this happen but am almost certain it is LDAP. The reason is we have an existing Unix infrastructure with permissions set up. Corporate IT wants the boxes joined to AD but when you log into the box with AD credentials the permissions do not match to my uid. 
Thanks 
James</description>
		<content:encoded><![CDATA[<p>Can I map the kerberos username to a different LDAP user? Does the name have to be the same in ldap as the kerberos principal?<br />
Specifically, can I authenticate with my kerberos credentials as <a href="mailto:user1@REALM">user1@REALM</a> and have that log me in as a local unix or NIS user after authentication? I cannot figure that part out!! I can authenticate fine with Kerberos but in order to login I need a matching user account name on the box or NIS or I get rejected. With winbind I can login using kerberos without having a local account but I have no control over the unix UID I am assigned and that is only good for shares anyway. What I am looking to accomplish is to authenticate using kerberos but have it log me in as a existing unix user. I know it is possible as on some of our AIX and Redhat boxes, we login with our Active directory (kerberos credentials) and after authenticating you are logged into the box as a local unix uid. I cannot figure out how to make this happen but am almost certain it is LDAP. The reason is we have an existing Unix infrastructure with permissions set up. Corporate IT wants the boxes joined to AD but when you log into the box with AD credentials the permissions do not match to my uid.<br />
Thanks<br />
James
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: macomaciak</title>
		<link>http://www.linux-mag.com/id/4765/#comment-1213</link>
		<pubDate>Wed, 25 Jun 2008 12:49:19 +0000</pubDate>
		<guid>http://www.linux-mag.com/id/4765/#comment-1213</guid>
					<description>anyone on the local network can bind to ldap server anonymously and get the list of all UID + GID's. this is absolutely ugly AND insecure. disclosing the UID information to everyone is just wrong concept.

M.</description>
		<content:encoded><![CDATA[<p>anyone on the local network can bind to ldap server anonymously and get the list of all UID + GID&#8217;s. this is absolutely ugly AND insecure. disclosing the UID information to everyone is just wrong concept.</p>
<p>M.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: nbensa</title>
		<link>http://www.linux-mag.com/id/4765/#comment-758</link>
		<pubDate>Mon, 14 Jan 2008 02:14:12 +0000</pubDate>
		<guid>http://www.linux-mag.com/id/4765/#comment-758</guid>
					<description>I don't get the "kerberos security." What's the difference between ldap+kerberos and ldap+ssl+sasl+digest-md5?

Thanks!

Norberto</description>
		<content:encoded><![CDATA[<p>I don&#8217;t get the &#8220;kerberos security.&#8221; What&#8217;s the difference between ldap+kerberos and ldap+ssl+sasl+digest-md5?</p>
<p>Thanks!</p>
<p>Norberto
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: phantasm</title>
		<link>http://www.linux-mag.com/id/4765/#comment-755</link>
		<pubDate>Thu, 10 Jan 2008 19:42:07 +0000</pubDate>
		<guid>http://www.linux-mag.com/id/4765/#comment-755</guid>
					<description>LDAP has been a wonderous change to our developers network this past year. After reading this, I believe Kerberos and LDAP combined will provide the added security we need to have in place.

Thank you.</description>
		<content:encoded><![CDATA[<p>LDAP has been a wonderous change to our developers network this past year. After reading this, I believe Kerberos and LDAP combined will provide the added security we need to have in place.</p>
<p>Thank you.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
