Authorize users from two ldaps

Authorize users from two ldaps

am 05.02.2010 19:32:15 von Al Sarraf

--_000_60134F54165D634F8252A78C22A8A2424A786E05A5VSTLEXMAILP RD_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I am running Apache 2.2. I have the following configuration for apache curr=
ently and it works fine. I have ldap1 and ldap2 for authentication.

AuthLDAPURL ldap://aphelion-server:389/ou=3Dpeople,cn=3DAdministrativeLd a=
p,cn=3DApp,o=3Dorg
AuthLDAPBindDN "cn=3DManager"
AuthLDAPBindPassword "12345"



AuthLDAPURL ldap://ADserver:3268/ DC=3Dmycompany,DC=3Dnet?sAMAccountName?=
sub?(objectClass=3D*)
AuthLDAPBindDN "CN=3Dproduser,OU=3Dxx,DC=3Dmycompany,DC=3Dnet"
AuthLDAPBindPassword "12345"



AuthzLDAPAuthoritative off
AuthName "Test"
Options -Indexes
AuthType Basic
AuthBasicProvider ldap1 ldap2
require valid-user


The new requirement is to keep ldap1 as it is but authenticate users from a=
security group for ldap2. The security group is CN=3DApp_Users,OU=3DAll Gr=
oups,DC=3Dmycompany,DC=3Dnet.
I have tried the following config.

AuthzLDAPAuthoritative on
AuthName "Test"
Options -Indexes
AuthType Basic
AuthBasicProvider ldap1 ldap2
AuthLDAPURL ldap://ADServer:3268/DC=3Dmycompany,DC=3Dnet?sAMAccountName? s=
ub?(objectClass=3D*)
AuthLDAPBindDN "CN=3Dproduser, OU=3Dxx,DC=3Dmycompany,DC=3Dnet"
AuthLDAPBindPassword "12345"
require ldap-group CN=3DApp_Users,OU=3DAll Groups,DC=3Dmycompany,DC=3Dnet
AuthLDAPGroupAttributeIsDN on
require ldap-dn uid=3Duser1, ou=3Dpeople,cn=3DAdministrativeLdap,cn=3DApp=
,o=3Dorg
#require valid-user


This config works for ldap2 and it checks if user belongs to the security g=
roup. But I don't want to check the security group access for ldap1. I put =
the require ldap-dn directive but it only authorizes user user1 and I am no=
t sure how to authorize all users from ldap1.
Thanks,
AL

--_000_60134F54165D634F8252A78C22A8A2424A786E05A5VSTLEXMAILP RD_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">












I am running Apache 2.2. I have the following configur=
ation for
apache currently and it works fine. I have ldap1 and ldap2 for authenticati=
on.

<AuthnProviderAlias ldap ldap1>



  AuthLDAPURL ldap://aphelion-server:389/ou=3Dpeo=
ple,cn=3DAdministrativeLdap,cn=3DApp,o=3Dorg



  AuthLDAPBindDN "cn=3DManager" :p>



  AuthLDAPBindPassword "12345" p>



</AuthnProviderAlias>



 



<AuthnProviderAlias ldap ldap2>



  AuthLDAPURL ldap://ADserver:3268/ DC=3Dmycompan=
y,DC=3Dnet?sAMAccountName?sub?(objectClass=3D*)



  AuthLDAPBindDN "CN=3Dproduser,OU=3Dxx,DC=
=3Dmycompany,DC=3Dnet"



  AuthLDAPBindPassword "12345" p>



</AuthnProviderAlias>



 



<LocationMatch /loc1/rfa(;.*)?>



  AuthzLDAPAuthoritative off



  AuthName "Test"



  Options -Indexes



  AuthType Basic



  AuthBasicProvider ldap1 ldap2



  require valid-user



</LocationMatch>



 



The new requirement is to keep ldap1 as it is but
authenticate users from a security group for ldap2. The security group is C=
N=3DApp_Users,OU=3DAll
Groups,DC=3Dmycompany,DC=3Dnet.

I have tried the following config.



<LocationMatch /loc1/rfa(;.*)?>



  AuthzLDAPAuthoritative on



  AuthName "Test"



  Options -Indexes



  AuthType Basic



  AuthBasicProvider ldap1 ldap2



  AuthLDAPURL ldap://ADServer:3268/DC=3Dmycompany=
,DC=3Dnet?sAMAccountName?sub?(objectClass=3D*)



  AuthLDAPBindDN "CN=3Dproduser, OU=3Dxx,DC=
=3Dmycompany,DC=3Dnet"



  AuthLDAPBindPassword "12345" p>



  require ldap-group CN=3DApp_Users,OU=3DAll Grou=
ps,DC=3Dmycompany,DC=3Dnet



  AuthLDAPGroupAttributeIsDN on



  require ldap-dn uid=3Duser1, ou=3Dpeople,cn=3DA=
dministrativeLdap,cn=3DApp,o=3Dorg



  #require valid-user



</LocationMatch>





This config works for ldap2 and it checks if user belo=
ngs to
the security group. But I don’t want to check the security group acce=
ss
for ldap1. I put the require ldap-dn directive but it only authorizes user
user1 and I am not sure how to authorize all users from ldap1. p>

Thanks,

AL









--_000_60134F54165D634F8252A78C22A8A2424A786E05A5VSTLEXMAILP RD_--

Re: Authorize users from two ldaps

am 05.02.2010 19:34:35 von Eric Covener

On Fri, Feb 5, 2010 at 1:32 PM, Al Sarraf wrote:
> I am running Apache 2.2. I have the following configuration for apache
> currently and it works fine. I have ldap1 and ldap2 for authentication.
>

You can't use two different AuthLDAPURL's in the same context, even
when you hide them behind the alias.

--
Eric Covener
covener@gmail.com

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org