Keep Server Online
  
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
  
or
  
 
  
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
  
Thank You! Steffen
  
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
 |    |   
 | 
     Topic: multiple ldap group | 
 |   
| Author | 
  | 
 
phipm1
 
 
  Joined: 24 May 2013 Posts: 2 Location: Canada
  | 
 Posted: Fri 24 May '13 22:27    Post subject: multiple ldap group | 
     | 
 
  | 
 
I'm trying to get multiple GUN groups to have access to certain directories.
 
 
Access to transport, delete
 
 
When you go to access transport or delete you get prompted for user name and password when entered you get in.  However when I add GUNtest10  in the required ldap group.  It doesnt accept your user name and password.
 
 
######ACL Directives######
 
 
 
LoadModule ldap_module modules/mod_ldap.so
 
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
 
 
<Directory /bills/>
 
   AuthType Basic
 
   AuthBasicProvider ldap
 
   AuthName "1Login with your Windows ID and password"
 
   AuthLDAPURL "ldap:xxxxxx/dc=stholdco,dc=com?sAMAccountName?sub?(objectClass=*)" NONE
 
   AuthzLDAPAuthoritative on
 
   AuthLDAPBindDN "cn=xxxxx,ou=Application Install Accounts,OU=Appl Mgmt,OU=Administration,dc=stholdco,dc=com"
 
   AuthLDAPBindPassword "xxxxx"
 
   AuthLDAPGroupAttribute uniqueMember
 
   AuthLDAPGroupAttributeIsDN on
 
 require ldap-group CN=GUNxxxxAI,OU=GUN Objects,OU=AD Mgmt,DC=stholdco,DC=com
 
 require ldap-group CN=GUNxxxxJR,OU=GUN Objects,OU=AD Mgmt,DC=stholdco,DC=com
 
 require ldap-group CN=GUNxxxxSZ,OU=GUN Objects,OU=AD Mgmt,DC=stholdco,DC=com
 
 require ldap-group CN=GUNtest10,OU=GUN Objects,OU=AD Mgmt,DC=stholdco,DC=com
 
</Directory> | 
 
  | 
 
| Back to top | 
 | 
 
James Blond Moderator
  
  Joined: 19 Jan 2006 Posts: 7443 Location: EU, Germany, Next to Hamburg
  | 
 Posted: Tue 28 May '13 23:07    Post subject:  | 
     | 
 
  | 
 
usualy the require has one value after another
 
 
In the following example, all users in the alpha and beta groups are authorized, except for those who are also in the reject group.
 
 	  | Code: | 	 		  
 
<Directory /www/docs>
 
    <RequireAll>
 
        Require group alpha beta
 
        Require not group reject
 
    </RequireAll>
 
</Directory>
 
 | 	  
 
 
Not sure if that works with LDAP group, too.
 
 
In the example for M$ Frontpage there is the use of a group file See http://httpd.apache.org/docs/2.4/mod/mod_authnz_ldap.html#frontpage | 
 
  | 
 
| Back to top | 
 | 
 
 
 
 
 | 
 
 
 |  
 
 |  
  |   
 |