mod_auth_ldap

This is a discussion on mod_auth_ldap within the Apache forums in Application Servers & Tools category; Hi everyone!! I am using this modue to auth the users thru an LDAP server, but know i have more users in another LDAP server for another domain, does anyone knows how to do this? This is my config now: <Directory "/opt/globant/mediawiki-1.6.9-infra"> Options Indexes FollowSymLinks AllowOverride None order allow,deny AuthName "Infra Login Users" AuthType Basic AuthLDAPURL ldap:// 10.90.0.2/DC=com?sAMAccountName?sub?(objectClass=user) AuthLDAPBindDN "ACCF165\ldapusr" AuthLDAPBindPassword "globant25k" AuthType Basic Require group cn=wiki_acc_usrs,OU=People,DC=accendra,DC=com Satisfy Any </Directory>...

Go Back   Application Development Forum > Application Servers & Tools > Apache

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 10-27-2008, 10:05 PM
Juan Pablo Roig
Guest
 
Default mod_auth_ldap

Hi everyone!!
I am using this modue to auth the users thru an LDAP server, but know i have
more users in another LDAP server for another domain, does anyone knows how
to do this?
This is my config now:
<Directory "/opt/globant/mediawiki-1.6.9-infra">
Options Indexes FollowSymLinks
AllowOverride None
order allow,deny
AuthName "Infra Login Users"
AuthType Basic
AuthLDAPURL ldap://
10.90.0.2/DC=com?sAMAccountName?sub?(objectClass=user)
AuthLDAPBindDN "ACCF165\ldapusr"
AuthLDAPBindPassword "globant25k"
AuthType Basic
Require group cn=wiki_acc_usrs,OU=People,DC=accendra,DC=com
Satisfy Any

</Directory>

Reply With Quote
  #2  
Old 10-30-2008, 11:06 AM
Jorge Medina
Guest
 
Default RE: mod_auth_ldap

I'm not sure I am understanding your question:

By "for another domain", do you mean another "site" ? If so, use
<VirtualHost> to define each domain and use the appropiate LDAP server
for each one.

If you want to authenticate users against two unrelated LDAP domains,
then you may look if there is a way to specify multiple servers in the
authLDAPUrl directive. I think this is not possible.


________________________________

From: Juan Pablo Roig [mailto:juan.pablo.roig@gmail.com]
Sent: Monday, October 27, 2008 10:05 PM
To: users@httpd.apache.org
Subject: [users@httpd] mod_auth_ldap


Hi everyone!!
I am using this modue to auth the users thru an LDAP server, but know i
have more users in another LDAP server for another domain, does anyone
knows how to do this?
This is my config now:
<Directory "/opt/globant/mediawiki-1.6.9-infra">
Options Indexes FollowSymLinks
AllowOverride None
order allow,deny
AuthName "Infra Login Users"
AuthType Basic
AuthLDAPURL
ldap://10.90.0.2/DC=com?sAMAccountName?sub?(objectClass=user)
AuthLDAPBindDN "ACCF165\ldapusr"
AuthLDAPBindPassword "globant25k"
AuthType Basic
Require group
cn=wiki_acc_usrs,OU=People,DC=accendra,DC=com
Satisfy Any

</Directory>


Reply With Quote
  #3  
Old 10-30-2008, 11:35 PM
Juan Pablo Roig
Guest
 
Default Re: mod_auth_ldap

Yes the question is: two diferents ldaps.
I've solved this issue with mod_authnz_external
Thanks

2008/10/30, Jorge Medina <jmedina@e-dialog.com>:
> I'm not sure I am understanding your question:
>
> By "for another domain", do you mean another "site" ? If so, use
> <VirtualHost> to define each domain and use the appropiate LDAP server
> for each one.
>
> If you want to authenticate users against two unrelated LDAP domains,
> then you may look if there is a way to specify multiple servers in the
> authLDAPUrl directive. I think this is not possible.
>
>
> ________________________________
>
> From: Juan Pablo Roig [mailto:juan.pablo.roig@gmail.com]
> Sent: Monday, October 27, 2008 10:05 PM
> To: users@httpd.apache.org
> Subject: [users@httpd] mod_auth_ldap
>
>
> Hi everyone!!
> I am using this modue to auth the users thru an LDAP server, but know i
> have more users in another LDAP server for another domain, does anyone
> knows how to do this?
> This is my config now:
> <Directory "/opt/globant/mediawiki-1.6.9-infra">
> Options Indexes FollowSymLinks
> AllowOverride None
> order allow,deny
> AuthName "Infra Login Users"
> AuthType Basic
> AuthLDAPURL
> ldap://10.90.0.2/DC=com?sAMAccountName?sub?(objectClass=user)
> AuthLDAPBindDN "ACCF165\ldapusr"
> AuthLDAPBindPassword "globant25k"
> AuthType Basic
> Require group
> cn=wiki_acc_usrs,OU=People,DC=accendra,DC=com
> Satisfy Any
>
> </Directory>
>
>


--
Enviado desde mi dispositivo móvil

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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


Reply With Quote
  #4  
Old 10-31-2008, 06:41 AM
Eric Covener
Guest
 
Default Re: Another ldap question

On Fri, Oct 31, 2008 at 5:16 AM, Oliver Marshall
<Oliver.Marshall@g2support.com> wrote:
> Hi chaps,
>
> I have the following code setup in an apache config file to restrict
> access to trac sites on the server via LDAP group membership.
>
> ***************************
> <Location /url/to/page>
> SetHandler mod_python
> PythonInterpreter main_interpreter
> PythonHandler trac.web.modpython_frontend
> PythonOption TracEnv /trac/environ/site
> PythonOption TracUriRoot /url/to/page
>
> AuthName "Authentication"
>
> AuthType Basic
> AuthBasicProvider ldap
>
> AuthzLDAPAuthoritative on
>
> AuthLDAPBindDN "CN=LDAP USER,CN=Users,DC=mydomain,DC=local"
> AuthLDAPBindPassword passwordgoeshere
> AuthLDAPURL
> "ldap://ldapserver.mydomain.local:389/DC=mydomain,DC=local?sAMAccountNam
> e?sub?(objectCla ss=*)" NONE
> AuthLDAPGroupAttributeIsDN on
> require ldap-group CN=testgroup,OU=Security Groups,OU=My
> OU,DC=mydomain,DC=local
>
> Require valid-user
> </Location>
> ****************************
>
> This works fine, with one slight exception. When we change the
> membership of the ldap group (in active directory on a windows box), we
> have to restart Apache on the linux box. A reload doesnt work, it has to
> be a restart. If we dont, then the changes to the group aren't
> recognised. It's as though the membership of the group is cached on the
> linux box and that cache is never updated.
>


Should last 10 minutes in the cache by default:

http://httpd.apache.org/docs/2.2/mod...l#ldapcachettl
http://httpd.apache.org/docs/2.2/mod...ldapopcachettl


--
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 06:00 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.