<?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/"
		>
<channel>
	<title>Comments on: LDAP-Based Access Control</title>
	<atom:link href="http://blog.scottlowe.org/2006/09/08/ldap-based-access-control/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.scottlowe.org/2006/09/08/ldap-based-access-control/</link>
	<description>The weblog of an IT pro specializing in virtualization, storage, and servers</description>
	<lastBuildDate>Wed, 08 Feb 2012 17:13:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Jason Sjöbeck</title>
		<link>http://blog.scottlowe.org/2006/09/08/ldap-based-access-control/comment-page-1/#comment-51303</link>
		<dc:creator>Jason Sjöbeck</dc:creator>
		<pubDate>Mon, 08 Aug 2011 09:20:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scottlowe.org/?p=331#comment-51303</guid>
		<description>www.centrify.com has an Express produce that we all might be interested in. 

Just FYI is all.</description>
		<content:encoded><![CDATA[<p><a href="http://www.centrify.com" rel="nofollow">http://www.centrify.com</a> has an Express produce that we all might be interested in. </p>
<p>Just FYI is all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Audet</title>
		<link>http://blog.scottlowe.org/2006/09/08/ldap-based-access-control/comment-page-1/#comment-48464</link>
		<dc:creator>Ben Audet</dc:creator>
		<pubDate>Thu, 27 May 2010 19:46:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scottlowe.org/?p=331#comment-48464</guid>
		<description>Just to follow up to CRC32 &amp; Sandy: I finally got it working, using the &quot;memberOf&quot; as a discriminating criteria to restrict users to log into Solaris servers.

CRC32 has the solution, but it is partly incomplete, as he only sets SSD for the &quot;passwd&quot; field.  In order to make it work on my setup, I had to set a SSD as well for the &quot;shadow&quot; field, just like that:

# ldapclient mod -a serviceSearchDescriptor=passwd:ou=Users,dc=my,dc=domain,dc=com?sub?memberOf=cn=my_host_group,ou=groups,dc=my,dc=domain,dc=com

# ldapclient mod -a serviceSearchDescriptor=shadow:ou=Users,dc=my,dc=domain,dc=com?sub?memberOf=cn=my_host_group,ou=groups,dc=my,dc=domain,dc=com

And note that, in my case, I had to use the &quot;memberOf&quot; instead of CRC32&#039;s &quot;msSFU30PosixMemberOf&quot; (since when I issue &quot;ldaplist -l passwd &quot;, I had &quot;memberOf&quot; parameter.

Now, my &quot;ldapclient list&quot; command gives this result, and it works perfectly:

# ldapclient list
NS_LDAP_FILE_VERSION= 2.0
NS_LDAP_BINDDN= cn=LDAP SVC,ou=LDAP,ou=Services,ou=Admin,dc=my,dc=domain,dc=com
NS_LDAP_BINDPASSWD= {NS1}#############
NS_LDAP_SERVERS= 10.1.2.3, 10.2.3.4, 10.3.4.5
NS_LDAP_SEARCH_BASEDN= dc=my,dc=domain,dc=com
NS_LDAP_AUTH= simple
NS_LDAP_CACHETTL= 0
NS_LDAP_CREDENTIAL_LEVEL= proxy
NS_LDAP_SERVICE_SEARCH_DESC= passwd:ou=Users,dc=my,dc=domain,dc=com?sub?memberOf=cn=my_host_group,ou=groups,dc=my,dc=domain,dc=com
LDAP_SERVICE_SEARCH_DESC= shadow:ou=Users,dc=my,dc=domain,dc=com?sub?memberOf=cn=my_host_group,ou=groups,dc=my,dc=domain,dc=com
NS_LDAP_ATTRIBUTEMAP= shadow:userpassword=userPassword
NS_LDAP_ATTRIBUTEMAP= shadow:shadowflag=shadowFlag
NS_LDAP_ATTRIBUTEMAP= passwd:loginshell=loginShell
NS_LDAP_ATTRIBUTEMAP= passwd:homedirectory=unixHomeDirectory
NS_LDAP_ATTRIBUTEMAP= passwd:uidnumber=uidNumber
NS_LDAP_ATTRIBUTEMAP= passwd:gidnumber=gidNumber
NS_LDAP_ATTRIBUTEMAP= passwd:gecos=cn
NS_LDAP_ATTRIBUTEMAP= group:gidnumber=gidNumber
NS_LDAP_ATTRIBUTEMAP= group:memberuid=memberUid
NS_LDAP_ATTRIBUTEMAP= group:userpassword=userPassword
NS_LDAP_OBJECTCLASSMAP= shadow:shadowAccount=user
NS_LDAP_OBJECTCLASSMAP= passwd:posixAccount=user
NS_LDAP_OBJECTCLASSMAP= group:posixGroup=group

Thanks CRC32 for sharing, you put me on the way!!!</description>
		<content:encoded><![CDATA[<p>Just to follow up to CRC32 &amp; Sandy: I finally got it working, using the &#8220;memberOf&#8221; as a discriminating criteria to restrict users to log into Solaris servers.</p>
<p>CRC32 has the solution, but it is partly incomplete, as he only sets SSD for the &#8220;passwd&#8221; field.  In order to make it work on my setup, I had to set a SSD as well for the &#8220;shadow&#8221; field, just like that:</p>
<p># ldapclient mod -a serviceSearchDescriptor=passwd:ou=Users,dc=my,dc=domain,dc=com?sub?memberOf=cn=my_host_group,ou=groups,dc=my,dc=domain,dc=com</p>
<p># ldapclient mod -a serviceSearchDescriptor=shadow:ou=Users,dc=my,dc=domain,dc=com?sub?memberOf=cn=my_host_group,ou=groups,dc=my,dc=domain,dc=com</p>
<p>And note that, in my case, I had to use the &#8220;memberOf&#8221; instead of CRC32&#8242;s &#8220;msSFU30PosixMemberOf&#8221; (since when I issue &#8220;ldaplist -l passwd &#8220;, I had &#8220;memberOf&#8221; parameter.</p>
<p>Now, my &#8220;ldapclient list&#8221; command gives this result, and it works perfectly:</p>
<p># ldapclient list<br />
NS_LDAP_FILE_VERSION= 2.0<br />
NS_LDAP_BINDDN= cn=LDAP SVC,ou=LDAP,ou=Services,ou=Admin,dc=my,dc=domain,dc=com<br />
NS_LDAP_BINDPASSWD= {NS1}#############<br />
NS_LDAP_SERVERS= 10.1.2.3, 10.2.3.4, 10.3.4.5<br />
NS_LDAP_SEARCH_BASEDN= dc=my,dc=domain,dc=com<br />
NS_LDAP_AUTH= simple<br />
NS_LDAP_CACHETTL= 0<br />
NS_LDAP_CREDENTIAL_LEVEL= proxy<br />
NS_LDAP_SERVICE_SEARCH_DESC= passwd:ou=Users,dc=my,dc=domain,dc=com?sub?memberOf=cn=my_host_group,ou=groups,dc=my,dc=domain,dc=com<br />
LDAP_SERVICE_SEARCH_DESC= shadow:ou=Users,dc=my,dc=domain,dc=com?sub?memberOf=cn=my_host_group,ou=groups,dc=my,dc=domain,dc=com<br />
NS_LDAP_ATTRIBUTEMAP= shadow:userpassword=userPassword<br />
NS_LDAP_ATTRIBUTEMAP= shadow:shadowflag=shadowFlag<br />
NS_LDAP_ATTRIBUTEMAP= passwd:loginshell=loginShell<br />
NS_LDAP_ATTRIBUTEMAP= passwd:homedirectory=unixHomeDirectory<br />
NS_LDAP_ATTRIBUTEMAP= passwd:uidnumber=uidNumber<br />
NS_LDAP_ATTRIBUTEMAP= passwd:gidnumber=gidNumber<br />
NS_LDAP_ATTRIBUTEMAP= passwd:gecos=cn<br />
NS_LDAP_ATTRIBUTEMAP= group:gidnumber=gidNumber<br />
NS_LDAP_ATTRIBUTEMAP= group:memberuid=memberUid<br />
NS_LDAP_ATTRIBUTEMAP= group:userpassword=userPassword<br />
NS_LDAP_OBJECTCLASSMAP= shadow:shadowAccount=user<br />
NS_LDAP_OBJECTCLASSMAP= passwd:posixAccount=user<br />
NS_LDAP_OBJECTCLASSMAP= group:posixGroup=group</p>
<p>Thanks CRC32 for sharing, you put me on the way!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shamika</title>
		<link>http://blog.scottlowe.org/2006/09/08/ldap-based-access-control/comment-page-1/#comment-46766</link>
		<dc:creator>Shamika</dc:creator>
		<pubDate>Thu, 26 Nov 2009 09:46:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scottlowe.org/?p=331#comment-46766</guid>
		<description>Hi Scott, 
issue:I&#039;m trying to setup ldap auth for my labusing Openldap. I was sucessful setting it up on fedora 12 &amp; ubuntu but it fails on rhel5 for some reason. The moment I uncomment &quot;pam_check_service_attr yes&quot; in ldap.conf it it throws me following error upon doing ssh (i m using ldap user which has this host entry in its host attr)


[root@rh5u3 ~]# ssh jchan@localhost
jchan@localhost&#039;s password:
Access denied for this host
Connection closed by 127.0.0.1

Here is snapshot from /var/log/secure

Nov 26 15:12:44 rh5u3 sshd[13646]: Failed password for jchan from 127.0.0.1 port 49678 ssh2
Nov 26 15:12:44 rh5u3 sshd[13647]: fatal: Access denied for user jchan by PAM account configuration

I tried, getent group/passwd retrieves all local n ldap users/groups correctly. So nothing seems to have gone wrong there. I&#039;m concerned about the sys-auth &amp; ssh file. I went through your posts and tried but no help. Could you send me ideal setting for these files? or else whatever your suggestions may be.

Thanks
Shamika</description>
		<content:encoded><![CDATA[<p>Hi Scott,<br />
issue:I&#8217;m trying to setup ldap auth for my labusing Openldap. I was sucessful setting it up on fedora 12 &amp; ubuntu but it fails on rhel5 for some reason. The moment I uncomment &#8220;pam_check_service_attr yes&#8221; in ldap.conf it it throws me following error upon doing ssh (i m using ldap user which has this host entry in its host attr)</p>
<p>[root@rh5u3 ~]# ssh jchan@localhost<br />
jchan@localhost&#8217;s password:<br />
Access denied for this host<br />
Connection closed by 127.0.0.1</p>
<p>Here is snapshot from /var/log/secure</p>
<p>Nov 26 15:12:44 rh5u3 sshd[13646]: Failed password for jchan from 127.0.0.1 port 49678 ssh2<br />
Nov 26 15:12:44 rh5u3 sshd[13647]: fatal: Access denied for user jchan by PAM account configuration</p>
<p>I tried, getent group/passwd retrieves all local n ldap users/groups correctly. So nothing seems to have gone wrong there. I&#8217;m concerned about the sys-auth &amp; ssh file. I went through your posts and tried but no help. Could you send me ideal setting for these files? or else whatever your suggestions may be.</p>
<p>Thanks<br />
Shamika</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sauce</title>
		<link>http://blog.scottlowe.org/2006/09/08/ldap-based-access-control/comment-page-1/#comment-46007</link>
		<dc:creator>sauce</dc:creator>
		<pubDate>Fri, 25 Sep 2009 05:48:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scottlowe.org/?p=331#comment-46007</guid>
		<description>any update on Nested Groups?</description>
		<content:encoded><![CDATA[<p>any update on Nested Groups?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: soulshepard</title>
		<link>http://blog.scottlowe.org/2006/09/08/ldap-based-access-control/comment-page-1/#comment-45146</link>
		<dc:creator>soulshepard</dc:creator>
		<pubDate>Thu, 16 Jul 2009 15:00:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scottlowe.org/?p=331#comment-45146</guid>
		<description>ps: i was talking about pure LDAP config in /etc/pam.d/system-auth and /etc/ldap.conf</description>
		<content:encoded><![CDATA[<p>ps: i was talking about pure LDAP config in /etc/pam.d/system-auth and /etc/ldap.conf</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: soulshepard</title>
		<link>http://blog.scottlowe.org/2006/09/08/ldap-based-access-control/comment-page-1/#comment-45145</link>
		<dc:creator>soulshepard</dc:creator>
		<pubDate>Thu, 16 Jul 2009 14:59:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scottlowe.org/?p=331#comment-45145</guid>
		<description>its funny, i have a few f5 bigip machines these run a kind of redhat/linux kernel and they can authenticate to the active directory without having unix services / schema modifications in ads, i am trying to get it working by replicating the config changes but no luck. i am soo confused why all linux appliance and ther stuff can easely inetrgrate by native ldap and the linux distro&#039;s not. 

so i know its possible without anyone got a clue?</description>
		<content:encoded><![CDATA[<p>its funny, i have a few f5 bigip machines these run a kind of redhat/linux kernel and they can authenticate to the active directory without having unix services / schema modifications in ads, i am trying to get it working by replicating the config changes but no luck. i am soo confused why all linux appliance and ther stuff can easely inetrgrate by native ldap and the linux distro&#8217;s not. </p>
<p>so i know its possible without anyone got a clue?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sandy</title>
		<link>http://blog.scottlowe.org/2006/09/08/ldap-based-access-control/comment-page-1/#comment-43660</link>
		<dc:creator>Sandy</dc:creator>
		<pubDate>Wed, 18 Feb 2009 21:26:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scottlowe.org/?p=331#comment-43660</guid>
		<description>CRC32 - We are trying to restrict client login access the same as you, but when we modify the serviceSearchDescriptor  as you suggested the user account is no longer able to log in at all.  I was wondering if there was also something we need to change for the serviceSearchDescriptor = group section since your output looks a little different.</description>
		<content:encoded><![CDATA[<p>CRC32 &#8211; We are trying to restrict client login access the same as you, but when we modify the serviceSearchDescriptor  as you suggested the user account is no longer able to log in at all.  I was wondering if there was also something we need to change for the serviceSearchDescriptor = group section since your output looks a little different.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CRC32</title>
		<link>http://blog.scottlowe.org/2006/09/08/ldap-based-access-control/comment-page-1/#comment-43610</link>
		<dc:creator>CRC32</dc:creator>
		<pubDate>Wed, 11 Feb 2009 22:52:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scottlowe.org/?p=331#comment-43610</guid>
		<description>FYI Solaris 10 serviceSearchDescriptor method worked also:

# cat /var/ldap/ldap_client_file
NS_LDAP_FILE_VERSION= 2.0
NS_LDAP_SERVERS= ad.my.domain.com
NS_LDAP_SEARCH_BASEDN= DC=my,DC=domain,DC=com
NS_LDAP_AUTH= sasl/GSSAPI
NS_LDAP_CACHETTL= 0
NS_LDAP_CREDENTIAL_LEVEL= self
NS_LDAP_SERVICE_SEARCH_DESC= passwd:OU=Users,DC=my,DC=domain,DC=com?sub?msSFU30PosixMemberOf=cn=my_host_group,ou=groups,dc=my,dc=domain,dc=com
NS_LDAP_SERVICE_SEARCH_DESC= group:OU=Groups,DC=my,DC=domain,DC=com?sub?gidNumber=*
NS_LDAP_ATTRIBUTEMAP= passwd:homedirectory=unixHomeDirectory
NS_LDAP_OBJECTCLASSMAP= shadow:shadowAccount=user
NS_LDAP_OBJECTCLASSMAP= passwd:posixAccount=user
NS_LDAP_OBJECTCLASSMAP= group:posixGroup=group</description>
		<content:encoded><![CDATA[<p>FYI Solaris 10 serviceSearchDescriptor method worked also:</p>
<p># cat /var/ldap/ldap_client_file<br />
NS_LDAP_FILE_VERSION= 2.0<br />
NS_LDAP_SERVERS= ad.my.domain.com<br />
NS_LDAP_SEARCH_BASEDN= DC=my,DC=domain,DC=com<br />
NS_LDAP_AUTH= sasl/GSSAPI<br />
NS_LDAP_CACHETTL= 0<br />
NS_LDAP_CREDENTIAL_LEVEL= self<br />
NS_LDAP_SERVICE_SEARCH_DESC= passwd:OU=Users,DC=my,DC=domain,DC=com?sub?msSFU30PosixMemberOf=cn=my_host_group,ou=groups,dc=my,dc=domain,dc=com<br />
NS_LDAP_SERVICE_SEARCH_DESC= group:OU=Groups,DC=my,DC=domain,DC=com?sub?gidNumber=*<br />
NS_LDAP_ATTRIBUTEMAP= passwd:homedirectory=unixHomeDirectory<br />
NS_LDAP_OBJECTCLASSMAP= shadow:shadowAccount=user<br />
NS_LDAP_OBJECTCLASSMAP= passwd:posixAccount=user<br />
NS_LDAP_OBJECTCLASSMAP= group:posixGroup=group</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CRC32</title>
		<link>http://blog.scottlowe.org/2006/09/08/ldap-based-access-control/comment-page-1/#comment-43513</link>
		<dc:creator>CRC32</dc:creator>
		<pubDate>Tue, 03 Feb 2009 03:45:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scottlowe.org/?p=331#comment-43513</guid>
		<description>For anyone interested - I managed to get this working on AIX, and Solaris seems doable also (haven&#039;t implemented yet).  Seems AD (with SFU/R2) lists all group membership against the user object as well, so for AIX in the ldap.cfg, userbasedn option, you can refine the search like:

userbasedn: ou=users,dc=my,dc=domain,dc=com?sub?(msSFU30PosixMemberOf=cn=my_host_group,ou=groups,dc=my,dc=domain,dc=com)

where my_host_group contains all LDAP based users you wish to grant access to this host - all other users won&#039;t be found in the search and are thus &quot;hidden&quot; from the OS i.e. can&#039;t login.

For solaris, essentially the same option in the ldap client should do the trick: 
serviceSearchDescriptor: passwd:ou=users,dc=my,dc=domain,dc=com?sub?(msSFU30PosixMemberOf=cn=my_host_group,ou=groups,dc=my,dc=domain,dc=com)

Only thing is apparently AD doesn&#039;t list users in the group who have it as there &quot;default&quot; group - so use a specific group which contains correct members &amp; then the group will show up properly against the user, don&#039;t rely on AD default groups for this!</description>
		<content:encoded><![CDATA[<p>For anyone interested &#8211; I managed to get this working on AIX, and Solaris seems doable also (haven&#8217;t implemented yet).  Seems AD (with SFU/R2) lists all group membership against the user object as well, so for AIX in the ldap.cfg, userbasedn option, you can refine the search like:</p>
<p>userbasedn: ou=users,dc=my,dc=domain,dc=com?sub?(msSFU30PosixMemberOf=cn=my_host_group,ou=groups,dc=my,dc=domain,dc=com)</p>
<p>where my_host_group contains all LDAP based users you wish to grant access to this host &#8211; all other users won&#8217;t be found in the search and are thus &#8220;hidden&#8221; from the OS i.e. can&#8217;t login.</p>
<p>For solaris, essentially the same option in the ldap client should do the trick:<br />
serviceSearchDescriptor: passwd:ou=users,dc=my,dc=domain,dc=com?sub?(msSFU30PosixMemberOf=cn=my_host_group,ou=groups,dc=my,dc=domain,dc=com)</p>
<p>Only thing is apparently AD doesn&#8217;t list users in the group who have it as there &#8220;default&#8221; group &#8211; so use a specific group which contains correct members &amp; then the group will show up properly against the user, don&#8217;t rely on AD default groups for this!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CRC32</title>
		<link>http://blog.scottlowe.org/2006/09/08/ldap-based-access-control/comment-page-1/#comment-43387</link>
		<dc:creator>CRC32</dc:creator>
		<pubDate>Fri, 16 Jan 2009 01:32:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scottlowe.org/?p=331#comment-43387</guid>
		<description>I too am interested in this technique for Solaris + R2 AD.

I would like to avoid netgroups in AD if possible - ideally looking for functional equivalent of pam_groupdn on Solaris, using Sun&#039;s LDAP client software - not PADL.

Please if anyone has any suggestions?

Thanks!</description>
		<content:encoded><![CDATA[<p>I too am interested in this technique for Solaris + R2 AD.</p>
<p>I would like to avoid netgroups in AD if possible &#8211; ideally looking for functional equivalent of pam_groupdn on Solaris, using Sun&#8217;s LDAP client software &#8211; not PADL.</p>
<p>Please if anyone has any suggestions?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

