{"id":614,"date":"2013-09-19T14:07:16","date_gmt":"2013-09-19T18:07:16","guid":{"rendered":"http:\/\/blog.uvm.edu\/ctl-projects\/?p=614"},"modified":"2013-09-19T14:07:16","modified_gmt":"2013-09-19T18:07:16","slug":"614","status":"publish","type":"post","link":"https:\/\/blog.uvm.edu\/waw\/2013\/09\/19\/614\/","title":{"rendered":"Mixing UVM and non-UVM passwords"},"content":{"rendered":"<div id=\"descGen_2\">\n<div>\n<div>Entered on 09\/19\/2013 at 14:02:35 EDT (GMT-0400) by Bob Erickson<\/div>\n<blockquote><p><em>I am working on a web site project that will require users to log in, we need to restrict this to uvm faculty and students which is easily done with uvm authentication in an htaccess file.<\/em><\/p>\n<div><em>however we need to allow 6 or more non uvm people access. i looked into the temporary wireless guest accounts but those do not work with uvm\u00a0authentication. I did not find any reference online about just getting temporary uvm accounts. Does any have any thoughts on the matter?<\/em><\/div>\n<div><\/div>\n<\/blockquote>\n<p>Entered on 09\/19\/2013 at 14:03:46 EDT (GMT-0400) by Wesley Wright:<\/p>\n<\/div>\n<p>Can&#8217;t use  or  without an error 502.  works<\/p>\n<p>Can&#8217;t link<\/p>\n<p style=\"padding-left: 30px\">ln -s UVM_ONLY NOT_UVM<\/p>\n<p>Apache sees through that, knows they are the same thing, and defaults to the original when choosing  directive<\/p>\n<p>Don&#8217;t want ErrorDocument 403 &#8212; failed authentication generates error 401 . ErrorDocument 401 is tricky. Send it to a php file with header(&#8220;Location: blahblah&#8221;) and error 401 goes there without \u00a0asking for Basic Credentials . Send it to \/~waw\/UVM_ONLY, get &#8220;Additionally, a 302 Found error was encountered while trying to use an ErrorDocument to handle the request.&#8221;<\/p>\n<p>Tried a lot of stuff that didn&#8217;t work, came up with this<\/p>\n<p>mkdir UVM_ONLY<br \/>\nmkdir NOT_UVM<br \/>\nmkdir UVM_ONLY\/shared<br \/>\nput content in shared<br \/>\ncd NOT_UVM<br \/>\nln -s ..\/UVM_ONLY\/shared<\/p>\n<p>Put this in NOT_UVM\/.htaccess<\/p>\n<p>AuthType Basic<br \/>\nAuthName &#8220;Guest Access&#8221;<br \/>\nAuthUserFile \/users\/w\/a\/waw\/ht_password_file_mysql_admin<br \/>\nrequire valid-user<br \/>\norder deny,allow<br \/>\nErrorDocument 401 \/~waw\/uvm_only.html<\/p>\n<p>Put this in UVM_ONLY\/.htaccess<\/p>\n<p>AuthType WebAuth<br \/>\nrequire valid-user<br \/>\nsatisfy any<br \/>\norder allow,deny<\/p>\n<p>put this in \/~waw\/uvm_only.html<\/p>\n<p>Click \u00a0<a href='\/~waw\/UVM_ONLY\/shared'>here<a><\/a> to access site with UVM NetID<\/p>\n<p>Now go here:<\/p>\n<p><\/a><a href=\"https:\/\/www.uvm.edu\/~waw\/NOT_UVM\/shared\/\">https:\/\/www.uvm.edu\/~waw\/NOT_UVM\/shared\/<\/a><\/p>\n<p>USe name:dog pass:cat, you&#8217;re in<\/p>\n<p>Else click cancel,click here, use UVM auth, you&#8217;re in<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Entered on 09\/19\/2013 at 14:02:35 EDT (GMT-0400) by Bob Erickson I am working on a web site project that will require users to log in, we need to restrict this to uvm faculty and students which is easily done with &hellip; <a href=\"https:\/\/blog.uvm.edu\/waw\/2013\/09\/19\/614\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41826],"tags":[42758],"class_list":["post-614","post","type-post","status-publish","format-standard","hentry","category-wes","tag-boffins"],"_links":{"self":[{"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/posts\/614","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/comments?post=614"}],"version-history":[{"count":0,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/posts\/614\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/media?parent=614"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/categories?post=614"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/tags?post=614"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}