Perl 6 - the future is here, just unevenly distributed

IRC log for #webwork, 2012-08-14

| Channels | #webwork index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:24 aubreyja joined #webwork
00:24 aubreyja joined #webwork
13:53 aubreyja joined #webwork
14:48 CIA-110 joined #webwork
17:07 goehle joined #webwork
17:15 goehle hey aubreyja
17:16 aubreyja How-D
17:16 aubreyja ?
17:16 goehle So i've got my ldap info
17:16 aubreyja cool
17:16 goehle and am trying to set up the new authetnication
17:16 goehle when I try to log in I get
17:17 goehle "uses an external authentication system.  You've authenticated through that system, but aren't allowed to log into this course"
17:17 goehle I didn't put in any login info though
17:17 aubreyja so, when you say 'try to log in' what do you mean -
17:17 goehle when I visit the course page
17:17 goehle http://webwork2.wcu.edu/webwork2/Math255Fall12Section2/
17:18 goehle you should be able to see the same thing
17:18 aubreyja ah, right - that's from Bill Wheeler's stuff - there was a bug fix - let me find were it is - just a sec
17:20 aubreyja https://github.com/whwheeler/webwork2-dev/commit/0fc67ba23c36d383ee56e7b95ece3a0ee5752f7a
17:21 aubreyja do you have an authen_LTI.conf? If not this is probably all in your global.conf
17:21 goehle no
17:21 goehle I moved some stuff from global.conf.dist
17:21 goehle to postlocal.conf
17:22 goehle hmm didnt help
17:22 aubreyja just a sec - let me find where that message is coming from
17:23 goehle I'm probably setting up things incorrectly
17:25 aubreyja you got this from openwebwork/webwork2 right?
17:25 goehle yeah
17:25 goehle not the dev version
17:27 aubreyja ok, Login.pm...
17:28 aubreyja ah, somewhere you have $exernalAuth =1 I think
17:28 goehle yeah
17:28 aubreyja probably global.conf, post local.conf...
17:28 goehle well its external_auth
17:28 goehle but probably the same thing
17:29 goehle if I set that to zero I can log in using the regular system
17:29 goehle but i still get a wierd "your authentication failed" error
17:29 aubreyja and I have $authen{user_module} = { * => "WeBWorK::Authen::LDAP"};
17:30 goehle hmm
17:30 goehle I have
17:30 aubreyja and all of the other options commented out
17:30 goehle sql_ldap   => "WeBWorK::Authen::LDAP",
17:30 goehle "*" => "WeBWorK::Authen",
17:31 aubreyja right, change sql_ldap to * and comment out the second line.
17:31 aubreyja sql_ldap doesn't actually make any sense
17:32 aubreyja it refers to an old possible db layout from the days they were doing things that way
17:32 goehle ok
17:32 goehle looks like that didn't do it
17:33 aubreyja did you restart the server?
17:33 goehle trying tha tnow
17:33 goehle same problem
17:34 aubreyja just a sec - phone
17:34 aubreyja ok
17:35 aubreyja ah, here's another important setting
17:35 aubreyja $session_managment_via
17:36 aubreyja should be "session_cookie"
17:36 goehle it si
17:36 goehle maybe I need to delete cookies?
17:36 aubreyja hmm...
17:36 aubreyja could be
17:37 goehle nah
17:37 goehle same problem
17:39 aubreyja so, I only see external_auth set in Cosign.pm, Shibboleth.pm and LTIBasic.pm
17:40 aubreyja Try this - put a line in Login.pm that echoes the value of $auth->{exernal_auth}
17:40 goehle any way to check that its not my webwork specific settinsg that arent off?
17:41 goehle hmm
17:41 goehle that variable is undefined
17:41 goehle but...
17:41 goehle $ce->{external_auth} is 1
17:42 aubreyja well, the only reason I can think of that external_auth would be 1 is that somewhere in some place $authen{user_module} lists LTIBasic.pm or one of the others.
17:42 aubreyja So, you could try putting that equal to 0 at the bottom of postlocal.conf - just for kicks
17:43 aubreyja (doesn't really tell us where the problem is, but might at least prove this is the problem)
17:44 goehle hmm
17:46 goehle must have done somehting
17:46 aubreyja cool
17:47 goehle now I get
17:47 goehle The wrong password was supplied or the SASL credentials could not be processed
17:47 goehle but that must be something on my end
17:47 aubreyja I see the warning message on your Login.pm
17:47 aubreyja yes, check login.log - there will be an LDAP error message there
17:52 aubreyja brb
17:55 aubreyja any luck?
17:56 aubreyja this not knowing what's where and which version of webwork to get has got to stop. Someone on the forums had trouble getting webwork from git too but got a different revision and so a different problem
17:59 aubreyja also, I want to push forward with the great db conversations we had at Winona - maybe we should plan get togethers online for each table
18:03 goehle yeah
18:03 goehle thats not a bad idea
18:04 goehle Mike had another good idea
18:04 goehle basically we rewrite everything from DB.pm down
18:04 goehle so we leave the basic structure of the stuff in DB.pm the same
18:04 goehle but we rewrite everything to use proper perl msql stuff
18:04 goehle oh and I didn't get it working
18:05 goehle I think it might be my credentials though
18:05 goehle how do I turn ldap off?
18:05 goehle I though tit was external_auth, but apparently not
18:05 aubreyja yeah, that's a good idea.  Basically we would have two middle layers and a mid-middle layer
18:05 aubreyja you can set failover => "all" in the ldap settings
18:05 goehle well if the DBi stuff is as nice as you say it is
18:06 goehle then we might be able to put all (or most) of it directly into DB.pm
18:06 goehle failover => "all" lets people log in
18:06 goehle but I still get all kinds of error messages that I want to supress
18:08 goehle I'm still getting :
18:08 goehle Your authentication failed. Please try again. Please speak with your instructor if you need help
18:08 goehle when I visit the login page for the first time
18:08 goehle nto a major issue
18:08 goehle but annoying
18:08 aubreyja it's even better than I say it is, that is, if you like stuff that's good
18:08 aubreyja what's the message?
18:08 goehle Your authentication failed. Please try again. Please speak with your instructor if you need
18:09 aubreyja ah, that's related to Bill Wheeler's bug fix - it's sending your user id but no password I think...
18:10 aubreyja but no ldap…do you know if it's MS Active Directory?
18:10 goehle but that is from a fresh visit to a new course
18:10 goehle it is ms active directory
18:11 aubreyja ok, so you did the bindAccount and smAName or whatever it was?
18:11 goehle yeah
18:11 goehle well
18:11 goehle I didn't get smAName
18:11 goehle or anything
18:11 goehle I got bind account info
18:12 aubreyja ok, there's an issue with telling AD what the proper username field is - let me check
18:12 aubreyja net_ldap_rdn => "sAMAccountName" should be uncommented
18:13 goehle I did uncomment that
18:13 goehle I dont know if
18:13 goehle sAMAccountName is right though
18:13 aubreyja and net_ldap_rdn => 'kid' commented
18:13 aubreyja obviously auto-correct is trying to kill me
18:13 goehle thats out its set up
18:14 aubreyja ok, I also have net_ldap_base => "dc = edu",
18:14 goehle I got values for net_ldap_base and searchDN from my sysadminb
18:14 aubreyja and searchDN=>"….,DC=missouri,DC=edu"
18:14 aubreyja ok…hmmm…any info from the login.log?
18:15 goehle just that the ldap authentication failed
18:15 aubreyja also, there is a command line ldap tool you can use to check if it's your credentials or webwork
18:16 aubreyja ldapsearch, e.g., they're proabably in ubuntu's package collection
18:16 goehle i'll try that
18:17 goehle try to visit
18:17 goehle http://webwork2.wcu.edu/webwork2/Math256Fall12Section1/
18:17 goehle do you see an error message?
18:17 aubreyja yep, "Your authentication failed…."
18:17 aubreyja yeah, and I'm not getting that: https://webwork.math.missouri.edu/webwork2/MU_Math_1400_FS12/
18:18 goehle yeah
18:18 goehle hmmm
18:19 aubreyja and, your ldap host is of the form ldap://yadayada:3268
18:19 goehle ldaps
18:19 goehle I pinged the server
18:19 goehle and it seems to be alive
18:20 aubreyja I just noticed my default timezone is wrong :)
18:20 goehle doh
18:21 aubreyja see, now I'm afraid to upgrade, we start next week but, for example, the version I got doesn't have your Achievments.pm although it gives me the option of enabling achievements in course config...
18:21 goehle yeah
18:21 goehle upgrading is dangerous
18:22 aubreyja part of the problem is the switch to github - in Rochester we actually did work on the config files to make it easier to upgrade, but so much for that!
18:22 aubreyja well, Danny Glin did such work
18:23 aubreyja and I'm going from ~2500 students to ~5000 :)
18:23 goehle I think it will be asier in the long run
18:23 goehle but the transition is hard
18:23 goehle ouch
18:23 goehle I think I have 100 or so
18:50 JohnTravis joined #webwork
18:51 goehle another question ...
18:51 goehle is the "Site Information" box on your webwork server weirdly placed
18:53 JohnTravis Hey Geoff.  Watching an interview with a math whiz on CNN right now.
18:53 goehle hey
18:53 goehle trying to get my ldap authentication working with jason
18:53 JohnTravis Was your question for Jason or whomever
18:53 JohnTravis Aha
18:56 JohnTravis Which css are you using when checking course configuration?
18:56 goehle math3
18:56 goehle I found position: absolute;
18:57 goehle left: 810px;
18:57 goehle in the css file
18:57 goehle I commented it out
18:57 goehle and that seemed to make it look better
18:59 JohnTravis math 3 is kind of wierd to me.  I'd love to start over and create a wildly new style but too much to do in order to get started.
19:42 aubreyja goehle: actually, I was just talking about css issues with one of my instructors…interesting..I'll give that a try.
19:42 goehle actually it was something else
19:42 goehle in addition to that
19:43 aubreyja por que?
19:43 goehle commenting out the absolute position stuff puts the info box in the right place
19:43 goehle but its *waay* to skinny
19:44 goehle I fixed that by commenting out the line
19:44 goehle max-width: 40%
19:44 goehle in the InfoPanel section
19:44 aubreyja my site information moved way over to the center :)
19:45 goehle hmm
19:45 aubreyja was the first comment out in .info-wrapper?
19:45 goehle not in mine
19:45 goehle I have float: right
19:46 goehle in my info-wrapper
19:47 aubreyja https://webwork.math.missouri.edu/webwork2
19:49 aubreyja actually, for me just commenting out width:39% made a big difference
20:39 goehle aubreja, interesting, because yoru infobox still goes off the side of the page on my screen
20:39 goehle http://webwork2.wcu.edu/webwork2/?
20:39 goehle oh and I "fixed" that error message
20:45 aubreyja how did you fix it?  Any l(ove)dap?
20:48 goehle no, unfortunatelly
20:48 goehle ldap is still down
20:49 goehle as for the error message
20:49 goehle https://github.com/goehle/webwork2/blob/master/lib/WeBWorK/Authen.pm
20:49 goehle I commented out likes 234 and 235
20:50 goehle Its doing some sort of "catchall" error checking there
20:50 goehle which is catching the initial load of the login page
20:50 goehle I dont recommend my fix as a perminant solution
20:51 aubreyja why is it !defined(error) or !$error.  Shouldn't it be defined($error) or $error?
20:51 goehle I have no idea
20:51 goehle I was going to ask the same thing
20:52 goehle unless error is reversed
20:52 aubreyja It looks wrong to me, at least that's my initial impression based soley on the variable name
20:52 aubreyja right
20:52 goehle maybe the or should be an and
20:53 aubreyja I'll check my install which isn't doing that
20:53 goehle yeah
20:54 aubreyja a lot is different, but the corresponding conditional is if($error)
20:54 aubreyja but error still comes from $self->{error}
20:55 aubreyja ah, wait
20:56 aubreyja that whole bit from 233 to 236 is missing and I only have up to 232 and after 236
20:56 aubreyja so, $error is definitely the same
20:59 goehle ok then
20:59 goehle so it looks like my solution is basically the official one
21:00 aubreyja yeah, I think so, but it's new code so somebody must have had some reason for putting it there (even if they made a mistake)
21:01 aubreyja sometimes there are subtle differences between defined($x) and $x
21:01 goehle yeah
21:01 aubreyja Like if $x = 0, defined($x) is true, but if($x) would evaluate to false I think
21:01 goehle I was thinking maybe they were checking to see if the error is defined as 0
21:01 goehle so you check to see that error was assigned 0
21:02 aubreyja yeah - I think that's probably the intention or something very close
21:03 goehle hmm
21:03 goehle maybe it was supposed to be
21:03 goehle !defined($error) or $error
21:04 goehle nah still causes problems
21:04 goehle error must not be defined in this case
21:11 R4md4c joined #webwork
21:11 R4md4c left #webwork
21:13 aubreyja why not just if(defined($error)) - isn't that true whenever there is an error of any type? $error=0 or $error = 1, etc.
21:13 goehle sure but I figured $error 0 would be ok
21:14 aubreyja ah, I see, you're thinking $error =0 could mean no errors
21:14 goehle right
21:14 aubreyja hmph
21:14 goehle but I think error is actually a string
21:14 goehle with the text of the error message
21:14 goehle so its only ok if its not defined
21:15 aubreyja also, we could stringily it if not, like $error = "$error"…(of course it would be better to know what $error is…)
21:16 goehle right
21:16 aubreyja or maybe if(defined("$error"))
21:17 aubreyja http://www.perlmonks.org/?node=what%20is%20true%20and%20false%20in%20Perl%3F
21:22 goehle if(defined("$error") doesnt complain on the initial loadup
21:23 goehle I dont know of an error which will make it complain but whatevs :)
21:27 goehle left #webwork
21:57 aubreyja_ joined #webwork
21:57 aubreyja_ joined #webwork

| Channels | #webwork index | Today | | Search | Google Search | Plain-Text | summary