*** tdoggette has joined #schooltool | 00:11 | |
*** mgedmin has quit IRC | 01:06 | |
*** aelkner has joined #schooltool | 01:17 | |
*** mgedmin has joined #schooltool | 01:43 | |
*** tdoggette has quit IRC | 02:37 | |
*** mgedmin has quit IRC | 03:29 | |
*** alga has quit IRC | 05:00 | |
*** mgedmin has joined #schooltool | 06:02 | |
*** tdoggette has joined #schooltool | 06:25 | |
*** mgedmin has quit IRC | 06:53 | |
*** tdoggette has quit IRC | 07:10 | |
*** ignas has joined #schooltool | 09:45 | |
*** Aiste has joined #schooltool | 10:07 | |
*** alga has joined #SchoolTool | 13:45 | |
*** jelkner has joined #schooltool | 14:18 | |
jelkner | yvl: good evening! | 14:21 |
---|---|---|
*** fsufitch has joined #schooltool | 14:22 | |
fsufitch | yvl, jelkner hi :) | 14:22 |
yvl | hi, jelkner | 14:22 |
yvl | hi Filip | 14:22 |
jelkner | i had to get up at 4:45 am to drag filip in here this morning! | 14:22 |
jelkner | but here we are ;-) | 14:22 |
fsufitch | :-P | 14:23 |
*** fsufitch has quit IRC | 14:24 | |
*** fsufitch has joined #schooltool | 14:25 | |
jelkner | yvl: i've asked filip to check in with you today | 14:27 |
jelkner | he is almost finished with the gradebook | 14:27 |
jelkner | as soon as that happens, it would be good if he could get some direction from you | 14:28 |
yvl | great! | 14:28 |
fsufitch | :) | 14:28 |
fsufitch | yvl: ping | 15:01 |
fsufitch | jelkner: ping | 15:01 |
yvl | yes? | 15:02 |
fsufitch | nvm, jelkner answered my qtn in person :) | 15:02 |
fsufitch | i was wondering what to do in the case of the "-" or UNSCORED grade in the gradebook for displaying the date | 15:03 |
*** replaceafill has joined #schooltool | 15:05 | |
*** th1a has joined #schooltool | 15:32 | |
fsufitch | yvl: all gradebook bugs are fixed | 15:47 |
fsufitch | it looks so beautiful ^_^ | 15:47 |
yvl | congrats! :) | 15:49 |
fsufitch | yvl: so wat now? | 15:51 |
yvl | let me take a look now... | 15:56 |
yvl | https://bugs.launchpad.net/cando/+bug/255143 looks easy | 16:00 |
yvl | and it would be nice to do https://bugs.launchpad.net/cando/+bug/255127 | 16:00 |
yvl | ah, and then there's https://bugs.launchpad.net/cando/+bug/252607 | 16:02 |
fsufitch | 255143, jason says not vital nor worth the time | 16:03 |
fsufitch | 255127 i can do :) | 16:03 |
fsufitch | and i'll do 252607 after that | 16:05 |
yvl | ok, thanks | 16:05 |
yvl | and then the one with actions menu, please | 16:06 |
yvl | oh, sorry I missed that you already said that :( | 16:06 |
fsufitch | :-P | 16:07 |
fsufitch | 'tis k | 16:07 |
*** alga has quit IRC | 16:20 | |
*** alga has joined #SchoolTool | 16:56 | |
*** replaceafill has quit IRC | 17:02 | |
th1a | aelkner: How are you doing? | 17:29 |
fsufitch | yvl: ping | 17:44 |
*** mgedmin has joined #schooltool | 17:55 | |
fsufitch | yvl: i'm done with the printviews. i'm gonna get to work on CSS for the gradebooks instead next though, as that's critical | 19:03 |
aelkner | hey th1a | 19:27 |
th1a | hi aelkner. | 19:27 |
aelkner | so last night I did a number of things: | 19:28 |
aelkner | 1) i added aelkner as a a user as you suggested | 19:28 |
aelkner | i didn't play around with that use more than just logging in as him and nothing different really happened | 19:28 |
aelkner | but he's there for when I want to play around with that | 19:29 |
aelkner | 1) | 19:29 |
th1a | You didn't create the user first in Moodle, right? | 19:29 |
aelkner | oh, i did | 19:29 |
aelkner | sorry, i remember now | 19:29 |
th1a | Did you see the last email I sent? | 19:29 |
aelkner | you talked about how CAS creates uesrs | 19:29 |
aelkner | wait | 19:29 |
aelkner | i was about to tell you that i found that SSO link too | 19:30 |
aelkner | Franky had found that and | 19:30 |
aelkner | we found that doing the sql update command suggested there does matter | 19:31 |
aelkner | i was gong to do that today | 19:31 |
th1a | Right. | 19:31 |
aelkner | but i wanted to look over what code changes i should make first | 19:31 |
th1a | Or perhaps you don't need it if the user does not exist in Moodle. | 19:31 |
aelkner | i haven't done any require_once commands yet | 19:32 |
th1a | I would say that route is most promising. | 19:32 |
th1a | I mean, the sql update command part. | 19:32 |
aelkner | so CAS.php is not being used yet | 19:32 |
aelkner | yes | 19:32 |
aelkner | i will first | 19:32 |
aelkner | the third thing i did | 19:32 |
aelkner | was to look into PHP LDAP | 19:32 |
th1a | I think your other changes were dubious -- getting it to work without them would be better. | 19:32 |
aelkner | yes | 19:33 |
aelkner | i found this link: http://us2.php.net/ldap | 19:33 |
aelkner | it talks about the need to compile php | 19:33 |
aelkner | but it doesn't go into how to do that | 19:33 |
aelkner | that looks like a slightly larger project | 19:34 |
aelkner | so i'm going to avoid that for now | 19:34 |
th1a | OK. | 19:34 |
th1a | Yes, it is relatively a long shot. | 19:34 |
aelkner | but did you come across anything that suggests where to do the require of CAS.php? | 19:35 |
aelkner | i mean, i would have to do that at some point, wouldn't i | 19:35 |
th1a | Hm? | 19:36 |
th1a | It is required in the original scripts, isn't it? | 19:36 |
aelkner | yeah, actuall, we commented it out which like you said is probably not the right way to go about it | 19:37 |
aelkner | i'll send you the list of patches | 19:38 |
th1a | There is a php-ldap package in Ubuntu, if PHP is installed from packages not source, which is another unknown probably, and people having trouble using it with Moodle come up quickly, so it is probably not a fruitful route. | 19:38 |
th1a | Well, I'd undo all them and pursue the question of existing users not working. | 19:38 |
aelkner | i haven't done the patches to the code yet | 19:40 |
aelkner | i did of course do the config stuff | 19:40 |
aelkner | with the eye and all | 19:40 |
aelkner | but that i have to do | 19:40 |
aelkner | i'm going to so the sql command now | 19:42 |
aelkner | th1a: i changed the admin user's mdl_user table entry to have auth set to 'CAS' | 19:47 |
aelkner | that cuase it to go further | 19:47 |
aelkner | guess whereto? | 19:47 |
th1a | Hm? | 19:47 |
aelkner | ERROR: LDAP-module cannot connect to any servers: | 19:47 |
th1a | Have you seen that before? | 19:48 |
aelkner | http://docs.moodle.org/en/error/auth/auth_ldap_noconnect_all | 19:48 |
aelkner | yes | 19:48 |
aelkner | i think that's where we started patching | 19:48 |
aelkner | so maybe, that's where we went wrong | 19:48 |
th1a | Well, maybe your patches will work now, but first I'd look into the LDAP side. | 19:49 |
aelkner | yeah | 19:49 |
aelkner | th1a: how do i determine if php was installed from a package or from source? | 19:50 |
aelkner | ldap | 19:50 |
th1a | I'm trying to figure out the command. | 19:51 |
th1a | apt-query... | 19:51 |
aelkner | oh, that's a new one for me | 19:51 |
th1a | I mean 'apt-cache' something | 19:51 |
aelkner | apt-cache i've used | 19:51 |
aelkner | that one checks to see if packages are available | 19:51 |
aelkner | like a synaptic package manager search | 19:52 |
th1a | I don't think apt-cache is right... | 19:53 |
aelkner | apt-cache search ldap | grep php | 19:53 |
aelkner | \ | 19:53 |
aelkner | php5-ldap - LDAP module for php5 | 19:53 |
aelkner | so that's what's available | 19:53 |
th1a | Well, I know it is available. | 19:54 |
aelkner | i'm looking at apt commands now | 19:54 |
th1a | try | 19:55 |
th1a | sudo apt-get -s install php5-ldap | 19:55 |
th1a | (with -s nothing actually happens) | 19:56 |
aelkner | The following NEW packages will be installed: | 19:56 |
aelkner | php5-ldap | 19:56 |
aelkner | 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. | 19:56 |
aelkner | yeah | 19:56 |
th1a | So PHP is already installed. | 19:56 |
th1a | (as is the most obvious way to do it) | 19:56 |
aelkner | hm? | 19:56 |
th1a | There isn't much motivation to compile PHP from source. | 19:56 |
th1a | So try installing that. | 19:56 |
aelkner | ok | 19:57 |
th1a | I'm not sure if you need to manually restart apache after the install. | 19:57 |
aelkner | The following NEW packages will be installed: | 19:57 |
aelkner | php5-ldap | 19:57 |
aelkner | 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. | 19:57 |
aelkner | Need to get 19.8kB of archives. | 19:57 |
aelkner | After unpacking 102kB of additional disk space will be used. | 19:57 |
aelkner | Err http://ubuntu.media.mit.edu dapper-updates/main php5-ldap 5.1.2-1ubuntu3.11 | 19:57 |
aelkner | 404 Not Found | 19:57 |
aelkner | Failed to fetch http://ubuntu.media.mit.edu/ubuntu/pool/main/p/php5/php5-ldap_5.1.2-1ubuntu3.11_i386.deb 404 Not Found | 19:57 |
th1a | I suspect it'll do it automatically. | 19:57 |
aelkner | E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? | 19:57 |
th1a | Are you connected to the internets? | 19:57 |
aelkner | how do i check that on a virtual server | 19:58 |
th1a | Can you ping ubuntu.media.mit.edu? | 19:58 |
aelkner | when ping keeps going without stopping that means it can't find it, right? | 19:58 |
aelkner | 64 bytes from ubuntu.media.mit.edu (18.85.21.55): icmp_seq=10 ttl=55 time=9.30 ms | 19:59 |
aelkner | 64 bytes from ubuntu.media.mit.edu (18.85.21.55): icmp_seq=10 ttl=55 time=9.30 ms | 19:59 |
aelkner | ... | 19:59 |
th1a | No... | 20:00 |
th1a | It is finding it. | 20:00 |
th1a | Try apt again. | 20:00 |
aelkner | oh, ok | 20:01 |
aelkner | same error | 20:01 |
th1a | Or try to wget the url. | 20:01 |
aelkner | same not fond error | 20:01 |
aelkner | could they be down? | 20:01 |
th1a | No, but the url is wrong (I can see on my browser). | 20:02 |
th1a | You probably need to apt-get update | 20:03 |
aelkner | well, the browser just gives the same 404 error | 20:03 |
th1a | The version number is supposed to be ubuntu.3.12 | 20:03 |
th1a | http://ubuntu.media.mit.edu/ubuntu/pool/main/p/php5/ | 20:03 |
aelkner | oh | 20:03 |
aelkner | i changes it to a 12 | 20:04 |
aelkner | and it wanted to download it | 20:04 |
aelkner | so maybe i need to edit the apt courses | 20:04 |
aelkner | sources | 20:04 |
aelkner | right now it has: | 20:05 |
aelkner | deb http://ubuntu.media.mit.edu/ubuntu/ dapper main restricted | 20:05 |
aelkner | deb-src http://ubuntu.media.mit.edu/ubuntu/ dapper main restricted | 20:05 |
aelkner | deb http://ubuntu.media.mit.edu/ubuntu/ dapper universe | 20:05 |
aelkner | deb-src http://ubuntu.media.mit.edu/ubuntu/ dapper universe | 20:05 |
th1a | What are you babbling about Alan? | 20:05 |
th1a | apt-get update! | 20:05 |
aelkner | apt-get update worked | 20:07 |
aelkner | what does it do? | 20:07 |
th1a | It updates the version numbers! | 20:07 |
aelkner | the apt-get install is going futher now | 20:07 |
aelkner | so the install worked | 20:07 |
aelkner | is there anything else you would suggest i do? | 20:09 |
aelkner | something that reboots php or something? | 20:09 |
th1a | Did it restart Apache? | 20:09 |
th1a | If you're not sure just do it manually. | 20:09 |
aelkner | I guess it tried and failed: | 20:10 |
aelkner | Setting up libapache2-mod-php5 (5.1.2-1ubuntu3.12) ... | 20:10 |
aelkner | * Forcing reload of apache 2.0 web server... apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName | 20:10 |
aelkner | so i can do it myself with etc/init.d/apache2 restart | 20:10 |
aelkner | i get the same error | 20:10 |
aelkner | * Forcing reload of apache 2.0 web server... apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName | 20:11 |
aelkner | [Thu Aug 21 13:08:40 2008] [warn] VirtualHost 192.168.2.14:8000 overlaps with VirtualHost www.scienceleadership.org:8000, the first has precedence, perhaps you need a NameVirtualHost directive | 20:11 |
aelkner | apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName | 20:11 |
aelkner | [Thu Aug 21 13:08:41 2008] [warn] VirtualHost 192.168.2.14:8000 overlaps with VirtualHost www.scienceleadership.org:8000, the first has precedence, perhaps you need a NameVirtualHost directive | 20:11 |
th1a | Yes, that's not a problem. | 20:11 |
*** tdoggette has joined #schooltool | 20:12 | |
th1a | Or, if it is, it always has been. But I don't think it is the actual current problem. | 20:12 |
aelkner | unfortunately, the ldap error still comes up | 20:13 |
aelkner | there must be something i need to configure with ldap | 20:13 |
th1a | Well, go to the admin page for CAS. | 20:14 |
th1a | Does it still warn you that PHP-ldap is not installed? | 20:14 |
aelkner | i was thinking of checking that, but i need to patch the db back, give me a sec | 20:14 |
th1a | Doing all this experimenting with the admin user is probably ill-advised. | 20:15 |
aelkner | ok, well, i patched the admin user to have auth manual as before | 20:16 |
aelkner | i got into moodle | 20:16 |
th1a | On your browser you can sudo apt-get install epiphany-browser and use that logged in as a different user. | 20:16 |
th1a | I mean, on your laptop, you can do that. | 20:16 |
aelkner | i understand | 20:16 |
th1a | I'm imagine there is a firefox plugin to do that in tabs... | 20:16 |
aelkner | ignas showed me a trick to create aliases in i don't remember what file at the moment | 20:19 |
aelkner | that allows you to be more than one user | 20:19 |
aelkner | i'm looking for that file now | 20:20 |
aelkner | /etc/hosts | 20:21 |
ignas | 127.0.0.1 localhost.localdomain localhost Ignas Ignas.com schooltool1 schooltool2 morka ivija1 ivija2 cando | 20:21 |
ignas | ;) | 20:21 |
aelkner | this is the line i have | 20:21 |
aelkner | 127.0.0.1 localhost cando teacher student | 20:21 |
aelkner | so yeah | 20:22 |
aelkner | but can that be done for a remote ip as well? | 20:22 |
ignas | yes | 20:22 |
aelkner | cool | 20:22 |
aelkner | do i need to specify the ip or could i use the host name? | 20:22 |
th1a | Ah... clever. | 20:22 |
aelkner | could i have: | 20:23 |
aelkner | test.scienceleadership.org sla_admin sla_teacher | 20:23 |
aelkner | or do i need to use the ip? | 20:23 |
aelkner | i'm using the ip for now | 20:24 |
aelkner | 192.231.162.184 sla_admin sla_teacher | 20:24 |
aelkner | i hope that works | 20:25 |
aelkner | that worked | 20:25 |
aelkner | well, it doesn't really help becuase, the ruby-cas server doesn't like the redirect | 20:32 |
aelkner | i get redirected to ruby-cas with this url | 20:33 |
aelkner | https://cas.scienceleadership.org/login?service=http%3A%2F%2Fsla_admin%2Fmoodle%2Flogin%2F | 20:33 |
aelkner | and i authenticate, and it gives this error | 20:33 |
aelkner | The target service your browser supplied appears to be invalid. Please contact your system administrator for help. | 20:33 |
aelkner | so ruby-cas can't get back to moodle | 20:33 |
aelkner | ug | 20:33 |
th1a | I think messing with /etc/hosts is not a good idea. | 20:38 |
aelkner | yeah, i'm undoing that now | 20:41 |
aelkner | i'll fix the aelkner user to use cas and try with that one | 20:42 |
aelkner | th1a: I did the same test with aelkner where i patched the auth to 'cas' | 20:44 |
aelkner | it gave me the same ldap error | 20:44 |
aelkner | wy the hell would it be trying to connect to an ldap server? | 20:45 |
th1a | Does the admin screen still complain that php-ldap isn't installed? | 20:45 |
aelkner | no | 20:46 |
th1a | Hm... | 20:48 |
th1a | Do you know if this data is in a config file or the database (i.e., is there a config file you can manually check)? | 20:49 |
*** jelkner has quit IRC | 20:50 | |
aelkner | which data do you mean? | 20:50 |
aelkner | config file for ldap or moodle? | 20:50 |
aelkner | i am looking at the code | 20:50 |
*** fsufitch has quit IRC | 20:51 | |
*** fsufitch has joined #schooltool | 20:51 | |
*** jelkner has joined #schooltool | 20:52 | |
aelkner | trying to figure out why it tries to connect to ldap... | 20:58 |
th1a | Perhaps you can grep the error and work backwards, too. | 21:05 |
*** ignas has quit IRC | 21:06 | |
aelkner | that's wha i'm doing | 21:08 |
aelkner | th1a: in auth/cas/auth.php there is a routine called sync_users | 21:11 |
aelkner | it looks like it's important | 21:11 |
aelkner | but why it insists on connecting to ldap i'm not sure | 21:12 |
th1a | It may literally be because everyone uses this with LDAP so nobody found the bug. | 21:12 |
aelkner | could be | 21:12 |
th1a | I mean, it is mostly universities that use CAS. | 21:12 |
th1a | And they're going to have LDAP. | 21:13 |
th1a | Does that look like where it is trying to force the connection? | 21:14 |
aelkner | sorry, a neigbor stopped by | 21:15 |
aelkner | it is in sysnc_users where it calls ldap_connect | 21:16 |
aelkner | and that of course is where it fails | 21:16 |
aelkner | so i think you're right | 21:16 |
th1a | Comment that out. | 21:16 |
aelkner | now you see the road Fanky and I went down, but maybe with you're help we'll do it in a better fashion | 21:17 |
aelkner | let me look at the code to see what it wold mean to comment it out | 21:17 |
th1a | Well, this is a different route. | 21:18 |
aelkner | so the class in auth/cas/auth.php is called auth_plugin_cas, and it depends heavily on ldap | 21:24 |
aelkner | it's init routine sets up defaults | 21:25 |
aelkner | and that sync_roles routine needs that ldap_connect in many places | 21:25 |
aelkner | but i'm going to comment out the connect just to see the next failure | 21:26 |
th1a | What does sync_roles do? | 21:26 |
aelkner | syncronizes user fron external db to moodle user table | 21:26 |
th1a | That entire thing is, at the moment at least, irrelevant. | 21:27 |
aelkner | it creates a temp table | 21:27 |
aelkner | connects to ldap | 21:27 |
aelkner | uses the info it finds there to update the temp table | 21:27 |
th1a | Can you comment out the whole thing. | 21:27 |
th1a | Or never call it? | 21:28 |
aelkner | i'll look | 21:28 |
th1a | Or just connect it to the CAS MySQL db instead? | 21:28 |
aelkner | it's not that easy | 21:31 |
aelkner | interesting! | 21:32 |
aelkner | after commenting out the call to sync_roles i get this camping problem | 21:32 |
aelkner | oh, never mind | 21:33 |
aelkner | i got some crash on the ruby server now that's a different thing | 21:33 |
aelkner | Lost connection to MySQL server during query: SELECT * FROM `casserver_lt` WHERE (`casserver_lt`.`ticket` = 'LT-1219343412r8742281964356D5A28') LIMIT 1: | 21:33 |
aelkner | looks like mysql went down on the cas server | 21:34 |
aelkner | i'll go check | 21:34 |
aelkner | i don't know what that was, but it went away, so I'm not going to worry about it | 21:37 |
th1a | kk | 21:41 |
th1a | aelkner: Making any progress? | 21:59 |
aelkner | sill looking | 21:59 |
aelkner | i put a stack trace into where it puts out that error, but it's talking a whlie to read | 22:00 |
aelkner | so there's this update_user_record routine which calls get_user_info | 22:10 |
aelkner | in there it tries to connect to ldap | 22:10 |
aelkner | but why are we trying to update a user record? | 22:10 |
aelkner | we don't have anything useful to update it with? | 22:10 |
th1a | That's what I'm saying, just cut the whole damn thing out. | 22:10 |
th1a | If you look at the config screen it refers to a whole system of syncing up user records, which we aren't using at all at this point. | 22:11 |
aelkner | looking over my notes, that's what we did, so I'll do it again | 22:11 |
th1a | Ah. OK then. | 22:11 |
th1a | I mean, if the difference between CAS.php in Moodle and the bare PHP-CAS stuff is a bunch of stuff like that we aren't using, then I see why you just bypassed CAS.php entirely. | 22:12 |
aelkner | check this out | 22:16 |
aelkner | it works now, and i didn't need ALL of the patches that we made | 22:16 |
aelkner | probably becuase we didn't know which ones worked | 22:16 |
aelkner | i'm going to remove one of the patches to see if it still works | 22:17 |
aelkner | btw, clearing session cookies in firefox solves the ticket not yet expired problem i metnioned yesterday | 22:18 |
aelkner | ooh, it still works after i removed a patch to an ldap routine | 22:19 |
aelkner | that's nice | 22:19 |
aelkner | i didn't need to patch that one because that was't where it was trying to connect to ldap | 22:19 |
th1a | Excellent. Once you've gotten this cleared up and tested a little more, send an email to Chris, Marcie and Bill & let them know what the problem was. | 22:19 |
aelkner | so the list is really short now | 22:20 |
th1a | And submit a bug report to Moodle. | 22:20 |
aelkner | this is Moodle | 22:20 |
aelkner | does Bill care? | 22:20 |
aelkner | i mean of course i can send him the note | 22:20 |
aelkner | but i thought maybe you confused drupaled with moodle | 22:21 |
th1a | They do Moodle stuff too, I'm pretty sure. | 22:26 |
aelkner | ok | 22:26 |
aelkner | and then i'll move onto drupaled | 22:27 |
*** jelkner has quit IRC | 22:37 | |
*** fsufitch has quit IRC | 22:46 | |
*** lisppaste5 has quit IRC | 22:57 | |
*** lisppaste5 has joined #schooltool | 22:57 | |
*** alga has quit IRC | 23:09 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!