web:webprotect:authbyeecs
Differences
This shows you the differences between two versions of the page.
web:webprotect:authbyeecs [2017/12/22 14:09] – created jas | web:webprotect:authbyeecs [2021/04/01 08:55] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 7: | Line 7: | ||
AuthType Basic | AuthType Basic | ||
AuthName "Name of Web Area You Are Protecting" | AuthName "Name of Web Area You Are Protecting" | ||
- | AuthBasicProvider | + | AuthBasicProvider |
If you wish to restrict access to ALL valid EECS accounts, add: | If you wish to restrict access to ALL valid EECS accounts, add: | ||
Line 21: | Line 21: | ||
Require user < | Require user < | ||
- | If you wish to restrict access to specific groups, add: | + | If you wish to restrict access to specific |
- | Require | + | Require |
- | Again, for simplicity, you can list all the groups on one line: | + | You need 1 " |
- | Require unix-group < | + | For example, to limit access to your page to users in the EECS groups " |
- | If you only care about group membership alone (eg. all EECS users who are in faculty | + | Require ldap-group cn=faculty,cn=users, |
+ | | ||
- | By default, only **one** of the conditions needs to be true to provide access, | + | It's important to note that, by default, only **one** of the " |
- | | + | Surround your Require |
- | Require | + | |
+ | < | ||
+ | < | ||
+ | Require ldap-group cn=faculty, | ||
+ | Require ldap-group cn=mylab, | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | In the above case, only users who are members of both EECS groups faculty and mylab would be able to access the page. | ||
+ | |||
+ | You can combine < | ||
+ | |||
+ | < | ||
+ | < | ||
+ | Require | ||
+ | < | ||
+ | Require | ||
+ | Require ldap-group cn=mylab, | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | In the above case, only users who are members of both groups faculty and mylab would be able to access the page. | ||
+ | |||
+ | You can also use < | ||
- | ... then ANY valid EECS user would be allowed in (eg. an undergrad, grad, staff member, faculty, or guest), or, any EECS user who is in group faculty. | + | < |
+ | < | ||
+ | Require | ||
+ | < | ||
+ | Require ldap-group cn=ugrad,cn=users,dc=ad,dc=eecs,dc=yorku,dc=ca | ||
+ | </ | ||
+ | </RequireAll> | ||
+ | </ | ||
- | <RequireAll> | + | You can combine RequireAny, |
- | Require valid-user | + | |
- | Require unix-group faculty | + | |
- | </ | + | |
Check file permissions on your .htaccess file and directory permissions on all directories leading up to .htaccess. | Check file permissions on your .htaccess file and directory permissions on all directories leading up to .htaccess. |
web/webprotect/authbyeecs.1513969781.txt.gz · Last modified: 2017/12/22 14:09 by jas