<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ideas.... &#187; LDAP</title>
	<atom:link href="http://rosalynmetz.com/ideas/tag/ldap/feed/" rel="self" type="application/rss+xml" />
	<link>http://rosalynmetz.com/ideas</link>
	<description>a blog for me to record thoughts and ideas</description>
	<lastBuildDate>Thu, 14 Apr 2011 17:56:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>WebWork</title>
		<link>http://rosalynmetz.com/ideas/2011/03/14/webwork/</link>
		<comments>http://rosalynmetz.com/ideas/2011/03/14/webwork/#comments</comments>
		<pubDate>Mon, 14 Mar 2011 19:51:04 +0000</pubDate>
		<dc:creator>Rosalyn Metz</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[WebWork]]></category>

		<guid isPermaLink="false">http://rosalynmetz.com/ideas/?p=934</guid>
		<description><![CDATA[Recently the college decided to implement a piece of software that allows professors to assign students math homework via the web.  Professors can pick a bunch of math problems from a library of math problems, students do the work, and they are &#8230; <a href="http://rosalynmetz.com/ideas/2011/03/14/webwork/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Recently the college decided to implement a piece of software that allows professors to assign students math homework via the web.  Professors can pick a bunch of math problems from a library of math problems, students do the work, and they are given grades.  Fairly simple really.</p>
<p>The install process wasn&#8217;t so easy.  To be fair there are instructions for <a href="http://bit.ly/iehtGK">installing WebWork on Ubuntu 10.04</a> but if you deviate from the instructions you have to start all over again.  I learned that when I tried to install it in the /var/www directory rather than the /opt directory it asks for.  Luckily a friend had warned me, so I only made that mistake once.</p>
<p>We&#8217;ve made the decision to migrate from the MAA (which hosts WebWork if you have under 100 users) to our own installation.  Unfortunately, we&#8217;re doing it this week and I just got the archives of the courses last week, so I&#8217;m in a mad dash to figure out how to do all of this.  And of course, in true Rosalyn format, I&#8217;m going to write a blog post on the topic.  Hopefully these instructions will come in handy this summer as I move the rest of the courses to the WebWork server and figure out LDAP authentication for the system.  So here it goes, I know how much you all love this:</p>
<p>&nbsp;</p>
<p><strong>1) Determine what Archives I need to Migrate</strong></p>
<p>So when I requested the archives from the folks at MAA they sent all of our courses, even older ones.  But nothing in the course name indicated what semester these archives were from.  So I needed to figure it out on my own.  After extracting one course, I noticed there was a log directory with two files, one that talked about when people submitted answers and one that showed the last time users logged in.  Beautiful.  I decided to go with the answers log, since I felt that would be a more accurate portrayal of when the course was from.  I extracted each one separately and just took a peek at the last entry.</p>
<pre>tar -xvf {tarball.tar.gz} {path/to/file}</pre>
<p>Turns out there were only three current courses that needed to be migrated.  And then luckily one professor said they would continue using the MAA server until the end of the semester (and option we offered them).  Yay.  Less work for me.</p>
<p>&nbsp;</p>
<p><strong>2) Import the Course</strong></p>
<p>So the first step is to move the archives to the server.  Now in order to unarchive the course, they need to be in the /opt/webwork/courses folder.  I sftped the files to my server, and then went into the admin interface and clicked unarchive course and followed the prompts.</p>
<p style="text-align: left;">&nbsp;</p>
<div id="attachment_938" class="wp-caption aligncenter" style="width: 586px"><a href="http://rosalynmetz.com/ideas/wp-content/uploads/2011/03/Screen-shot-2011-03-14-at-3.29.25-PM.png"><img class="size-large wp-image-938 " title="WebWork Unarchive Course" src="http://rosalynmetz.com/ideas/wp-content/uploads/2011/03/Screen-shot-2011-03-14-at-3.29.25-PM-1024x481.png" alt="WebWork Unarchive Course" width="576" height="270" /></a><p class="wp-caption-text">WebWork Unarchive Course</p></div>
<p>When all was said and done I couldn&#8217;t log into the course.  This was the moment that everything that I thought was slightly off about the software came to make sense.</p>
<p>&nbsp;</p>
<p><strong>3) Change the Admin Password</strong></p>
<p>So each course gets their own tables in the webwork database:</p>
<ul>
<li>coursename_key</li>
<li>coursename_password</li>
<li>coursename_permission</li>
<li>coursename_problem</li>
<li>coursename_problem_user</li>
<li>coursename_set</li>
<li>coursename_set_locations</li>
<li>coursename_set_locations_user</li>
<li>coursename_set_user</li>
<li>coursename_setting</li>
<li>coursename_user</li>
</ul>
<p>No you&#8217;re reading that right.  There isn&#8217;t a global table for users and passwords, there are user and password tables <em><strong>for each course</strong></em>.  I know, I know&#8230;my normal form loving brain hurts thinking about it too.  But I guess it makes it easier to maintain each course??? (I&#8217;m really trying to be an optimist)</p>
<p>Since I don&#8217;t know the password for the admin user I realized I needed to change the password if I wanted to be able to get into the imported courses.  So I went into the database on my server and ran a select query so I could find the hashed up password of an account where I knew the actual password.</p>
<pre>select * from coursename_password;</pre>
<p>For some added annoyance WebWork can use spaces and other characters that you wouldn&#8217;t normally include in a MySQL table name.  I have actually never run across this before so I wasn&#8217;t sure what to do.  I tried containing the table names in single quotes and double quotes.  Turns out you need to use the accent mark located below the tilde on your keyboard.  Yay for trial and error.</p>
<p>So once I got the hashed up password of an account I knew the password for, I updated the table for the newly imported course in WebWork:</p>
<pre>update `coursename_password`
set password = "&lt;newhashedpasswordhere&gt;" where user_id = "admin";</pre>
<p>Once you&#8217;ve done that you should be able to log in to the course as the admin user.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Frosalynmetz.com%2Fideas%2F2011%2F03%2F14%2Fwebwork%2F&amp;title=WebWork" id="wpa2a_2">Share/Save</a></p>]]></content:encoded>
			<wfw:commentRss>http://rosalynmetz.com/ideas/2011/03/14/webwork/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Logging into MediaWiki using LDAP</title>
		<link>http://rosalynmetz.com/ideas/2009/01/06/logging-into-mediawiki-using-ldap/</link>
		<comments>http://rosalynmetz.com/ideas/2009/01/06/logging-into-mediawiki-using-ldap/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 19:48:14 +0000</pubDate>
		<dc:creator>Rosalyn Metz</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[MediaWiki]]></category>

		<guid isPermaLink="false">http://rosalynmetz.com/ideas/?p=302</guid>
		<description><![CDATA[First I&#8217;d like to say that I know nothing about LDAP. I think its a magical thing that has all our usernames and passwords and just connects to software so I don&#8217;t have to maintain user information. This makes LDAP &#8230; <a href="http://rosalynmetz.com/ideas/2009/01/06/logging-into-mediawiki-using-ldap/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>First I&#8217;d like to say that I know nothing about LDAP.  I think its a magical thing that has all our usernames and passwords and just connects to software so I don&#8217;t have to maintain user information.  This makes LDAP wonderful.</p>
<p>That being said its actually important that you know a little something about LDAP when setting up LDAP and MediaWiki.  While this page is helpful:<br />
<a href="http://www.mediawiki.org/wiki/Extension:LDAP_Authentication#Explanation_of_options">http://www.mediawiki.org/wiki/Extension:LDAP_Authentication#Explanation_of_options</a></p>
<p>You really need to know what&#8217;s going on with your LDAP.  I&#8217;d post what I discovered here, but then you&#8217;d know how to get into my LDAP server and that would be bad.  Needless to say, the best thing to do is copy the options on the page above and then talk to the owner of the LDAP server.  They can point you in the right direction.</p>
<p>I&#8217;d also like to end this post with a shout out to Brian Gibson for helping me out and teaching me a little something about LDAP.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Frosalynmetz.com%2Fideas%2F2009%2F01%2F06%2Flogging-into-mediawiki-using-ldap%2F&amp;title=Logging%20into%20MediaWiki%20using%20LDAP" id="wpa2a_4">Share/Save</a></p>]]></content:encoded>
			<wfw:commentRss>http://rosalynmetz.com/ideas/2009/01/06/logging-into-mediawiki-using-ldap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EZProxy and LDAP</title>
		<link>http://rosalynmetz.com/ideas/2008/11/06/ezproxy-and-ldap/</link>
		<comments>http://rosalynmetz.com/ideas/2008/11/06/ezproxy-and-ldap/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 18:58:05 +0000</pubDate>
		<dc:creator>Rosalyn Metz</dc:creator>
				<category><![CDATA[Ideas]]></category>
		<category><![CDATA[EZProxy]]></category>
		<category><![CDATA[LDAP]]></category>

		<guid isPermaLink="false">http://rosalynmetz.com/ideas/?p=155</guid>
		<description><![CDATA[I&#8217;ve been dealing with a lot of off-campus access problems and dreaming of having my own ezproxy server.  I was thinking that the best way to sell it is as part of single sign-on (ie students only have to use &#8230; <a href="http://rosalynmetz.com/ideas/2008/11/06/ezproxy-and-ldap/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been dealing with a lot of off-campus access problems and dreaming of having my own ezproxy server.  I was thinking that the best way to sell it is as part of single sign-on (ie students only have to use one login).  So I found an OCLC page on <a href="http://www.oclc.org/support/documentation/ezproxy/usr/ldap.htm">using EZProxy with LDAP</a>.  That reminded me that OCLC is trying to take over the library world (they just purchased the rights to EZProxy.  I hope they don&#8217;t try to make users pay for it.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Frosalynmetz.com%2Fideas%2F2008%2F11%2F06%2Fezproxy-and-ldap%2F&amp;title=EZProxy%20and%20LDAP" id="wpa2a_6">Share/Save</a></p>]]></content:encoded>
			<wfw:commentRss>http://rosalynmetz.com/ideas/2008/11/06/ezproxy-and-ldap/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

