*** wbrady has joined #schooltool | 00:20 | |
*** didymo has joined #schooltool | 01:59 | |
*** wbrady has quit IRC | 02:31 | |
*** didymo has quit IRC | 02:34 | |
*** aelkner has joined #schooltool | 03:44 | |
*** lisppaste5 has quit IRC | 03:53 | |
*** lisppaste5 has joined #schooltool | 04:05 | |
*** tdoggette has quit IRC | 05:07 | |
*** tdoggette has joined #schooltool | 05:11 | |
*** didymo has joined #schooltool | 05:58 | |
*** didymo has quit IRC | 13:11 | |
*** tdoggette has quit IRC | 13:40 | |
*** tdoggette has joined #schooltool | 13:59 | |
*** tdoggette_ has joined #schooltool | 15:15 | |
*** tdoggette has quit IRC | 15:16 | |
*** tdoggette_ is now known as tdoggette | 15:16 | |
*** tdoggette_ has joined #schooltool | 15:17 | |
*** tdoggette_ has quit IRC | 15:46 | |
*** tdoggette_ has joined #schooltool | 15:48 | |
*** wbrady has joined #schooltool | 15:54 | |
*** ignas has joined #schooltool | 16:14 | |
*** ignas has quit IRC | 16:14 | |
*** ignas_ has joined #schooltool | 16:14 | |
th1a | ignas: I have a bzr question ;-) | 16:27 |
---|---|---|
*** tdoggette_ has quit IRC | 16:30 | |
*** tdoggette_ has joined #schooltool | 16:39 | |
*** wbrady_ has joined #schooltool | 16:54 | |
wbrady_ | Lumiere: ayt? | 16:54 |
*** wbrady has quit IRC | 17:06 | |
*** wbrady_ has quit IRC | 17:06 | |
*** wbrady has joined #schooltool | 17:06 | |
*** tdoggette_ has quit IRC | 17:26 | |
*** tdoggette_ has joined #schooltool | 17:27 | |
*** aelkner has quit IRC | 17:49 | |
*** aelkner has joined #schooltool | 18:06 | |
aelkner | ignas: ayt? | 18:30 |
aelkner | ignas_: ayt? | 18:43 |
ignas_ | yes, but on/off | 18:43 |
aelkner | i had a quick question about cas | 18:43 |
aelkner | i've studied the code and it's schooltool equivelent | 18:43 |
aelkner | and i'm not sure how it resolves the utitlity lookup | 18:44 |
aelkner | because both schooltool's and schooltool.cas' utilities are registered for the same interface | 18:44 |
aelkner | is there some kind of registration i have to do to get one to be prefered | 18:44 |
ignas_ | the names are different i think | 18:45 |
ignas_ | as for the preferred one - it's schooltool.conf that picks the one | 18:45 |
aelkner | there's no name | 18:45 |
ignas_ | that will be used | 18:45 |
aelkner | just the factory and the interface | 18:45 |
aelkner | in schooltool.cas.configure | 18:46 |
aelkner | you've used this before, right? | 18:46 |
ignas_ | i don't think the configure.zcml is used at all | 18:46 |
ignas_ | i think you just install the egg | 18:46 |
ignas_ | and add the CAS section | 18:46 |
aelkner | no? | 18:46 |
ignas_ | in schooltool.conf | 18:46 |
ignas_ | ahh | 18:47 |
ignas_ | zcml:condition="have cas_authentication"> | 18:47 |
ignas_ | in the <configure> block | 18:47 |
ignas_ | is the safeguard | 18:47 |
ignas_ | so yeah - you probably have to include the zcml | 18:47 |
ignas_ | but it is not enabled unless you set it up in schooltool.conf | 18:47 |
aelkner | i would think you include the package, thus including the zcml | 18:47 |
aelkner | what's the line in schooltool.conf? | 18:48 |
aelkner | have you done this yourself before? | 18:48 |
ignas_ | yes | 18:49 |
aelkner | you wrote this, right? | 18:49 |
ignas_ | yes | 18:49 |
ignas_ | <cas_authority> | 18:49 |
ignas_ | server foo_bar_baz | 18:49 |
th1a | This isn't the kind of thing you'd expect to work without touching some configuration. | 18:49 |
ignas_ | </cas_authority> | 18:49 |
ignas_ | i think its that way | 18:49 |
ignas_ | th1a: nope, you have to configure | 18:49 |
ignas_ | it | 18:49 |
ignas_ | what you don't want is - servers set in zcml | 18:50 |
ignas_ | what works with CAS is - putting CAS include slug in the plugins directory i think | 18:51 |
ignas_ | so you don't touch any zcml at all | 18:51 |
ignas_ | just - install the plugin (don't have a workflow for that yet) | 18:51 |
ignas_ | and edit your schooltool.conf | 18:51 |
ignas_ | same with LDAP | 18:52 |
aelkner | i still don't understand how the utility gets found | 18:53 |
aelkner | the auth class does a lookup for the plugin | 18:53 |
ignas_ | well - easy, there are 3 options for the utility in the worst case, but 2 of them are not loaded | 18:53 |
ignas_ | because of the condition bits in the zcml | 18:53 |
aelkner | def authPlugin(self): | 18:53 |
aelkner | return getUtility(ISchoolToolAuthenticationPlugin) | 18:53 |
ignas_ | look at the zcml | 18:54 |
ignas_ | the utility is not registered | 18:54 |
aelkner | which zcml? | 18:54 |
ignas_ | schooltool.cas/src/schooltool/cas/configure.zcml | 18:54 |
ignas_ | <?xml version="1.0"?> | 18:54 |
ignas_ | <configure xmlns="http://namespaces.zope.org/zope" | 18:54 |
ignas_ | xmlns:browser="http://namespaces.zope.org/browser" | 18:54 |
ignas_ | xmlns:zcml="http://namespaces.zope.org/zcml" | 18:54 |
ignas_ | zcml:condition="have cas_authentication"> | 18:54 |
ignas_ | the "have cas_authentication" bit | 18:54 |
aelkner | i saw that, but how does that prevent the other utilty from being found | 18:54 |
ignas_ | look at the file that the other utility is registered in | 18:55 |
*** jelkner has joined #schooltool | 18:55 | |
aelkner | <utility | 18:55 |
aelkner | xmlns:zcml="http://namespaces.zope.org/zcml" | 18:55 |
aelkner | zcml:condition="not-have authentication" | 18:55 |
aelkner | factory=".security.PersonContainerAuthenticationPlugin" | 18:55 |
aelkner | provides=".interfaces.ISchoolToolAuthenticationPlugin" /> | 18:55 |
ignas_ | zcml:condition="not-have authentication" bit | 18:55 |
ignas_ | so - we only load the default authentication | 18:56 |
ignas_ | if alternate authentication mechanism | 18:56 |
ignas_ | was not loaded | 18:56 |
*** jelkner has quit IRC | 18:56 | |
ignas_ | context.provideFeature('cas_authentication') | 18:56 |
ignas_ | context.provideFeature('authentication') | 18:56 |
ignas_ | bit | 18:56 |
ignas_ | makes schooltool load cas_authentication, and makes schooltool skip the default authentication | 18:56 |
ignas_ | and it's all in the schooltool.conf, so you can switch to whichever utility you want without touching any code and any zcml | 18:57 |
aelkner | oh, i see | 18:57 |
aelkner | by default, not-have is true | 18:57 |
aelkner | but when one adds one like cas does , then it's false | 18:57 |
aelkner | i get it | 18:57 |
aelkner | thanks | 18:58 |
aelkner | were you looking for me yesterday? | 18:58 |
aelkner | i saw you pinged me | 18:58 |
ignas_ | yeah | 18:59 |
ignas_ | i wanted to ask whether you can get me ssh access | 18:59 |
ignas_ | to your PC and to SLA | 18:59 |
ignas_ | or somehing like that | 19:00 |
ignas_ | so I could diagnose your problems in a more efficient manner | 19:00 |
ignas_ | having remote desktop access | 19:00 |
ignas_ | would be the perfect thing | 19:00 |
*** tdoggette has quit IRC | 19:00 | |
aelkner | i can email you the root access to SLA | 19:00 |
aelkner | but my development machine, i don't know how to get you into it | 19:01 |
aelkner | would i have a static IP? | 19:01 |
ignas_ | do you have an external ip address | 19:01 |
ignas_ | static is not necessary | 19:01 |
ignas_ | external is important | 19:01 |
aelkner | how i do check? | 19:01 |
ignas_ | hmm | 19:01 |
ignas_ | what's your IP ? | 19:01 |
aelkner | ifconig | 19:02 |
aelkner | what do i look for? | 19:02 |
ignas_ | inet addr: | 19:02 |
aelkner | i'll email you that | 19:03 |
aelkner | but you need a login | 19:03 |
ignas_ | nope | 19:03 |
ignas_ | no login | 19:03 |
ignas_ | let's do this | 19:03 |
ignas_ | post me your ip in private on irc (as safe as email, really) | 19:03 |
ignas_ | open preferences | 19:03 |
ignas_ | System -> preferences -> remote desktop | 19:03 |
ignas_ | check 2 first checkboxes | 19:04 |
ignas_ | and the other 2 | 19:04 |
ignas_ | and set some dummy password | 19:04 |
ignas_ | (you will be confirming it using a dialog anyway) | 19:04 |
ignas_ | and i'll try connecting using vncviewer | 19:04 |
ignas_ | to your PC | 19:04 |
ignas_ | oh | 19:04 |
ignas_ | ok, you don't have an external IP address | 19:04 |
aelkner | can we do this for just a one off | 19:05 |
aelkner | i mean i have private info on this machine | 19:05 |
ignas_ | well - i mean - if you had given me remote desktop access | 19:06 |
ignas_ | it would be one off | 19:06 |
ignas_ | and i would be controling the same desktop you are | 19:06 |
ignas_ | so you would see what i am doing | 19:06 |
ignas_ | which is as if i was sitting behind you | 19:06 |
aelkner | that's fine | 19:06 |
aelkner | but my IP won't work, right? | 19:06 |
ignas_ | and next time - your confirmation would be needed... | 19:07 |
ignas_ | yes | 19:07 |
ignas_ | so i am thinking of workarounds | 19:07 |
aelkner | you'll be careful with the SLA machine, yes? | 19:08 |
ignas_ | yes | 19:08 |
ignas_ | only for diagnostic reasons, i will set up my ssh key and forget the password | 19:08 |
aelkner | i'm not worrying about you knowing the password | 19:09 |
ignas_ | well - when connecting using ssh - using a public ssh key is just a good practice | 19:09 |
ignas_ | then you only need the password when doing sudo on that machine | 19:10 |
ignas_ | ok, connection to that server works | 19:12 |
aelkner | what kind of diagnostics do you plan to run | 19:14 |
ignas_ | well - like ¨bzr st" | 19:15 |
ignas_ | for example | 19:15 |
ignas_ | i mean - i only need it in cases when something breaks down and you want me to help you | 19:15 |
ignas_ | which happens sometimes, and I have realised | 19:15 |
ignas_ | that if we were in the same office it would have taken ~15 minutes | 19:15 |
ignas_ | not 3 hours | 19:16 |
aelkner | i hear you | 19:16 |
ignas_ | which is why I want to be able to get remote desktop access when you want my help | 19:18 |
ignas_ | because you could see what i am doing | 19:18 |
ignas_ | and i could do the things, instead of use you as a robot | 19:18 |
aelkner | so do have the workaround in mind for ne not having an external ip | 19:19 |
ignas_ | yes | 19:19 |
ignas_ | working on it | 19:19 |
ignas_ | we might have to use the SLA server as the intermediate "hop" | 19:20 |
*** alga has joined #SchoolTool | 19:29 | |
*** ignas_ has quit IRC | 19:45 | |
*** ignas has joined #schooltool | 19:46 | |
aelkner | i'm back | 19:51 |
aelkner | i don't see the icon you mentioned | 19:51 |
aelkner | is that becuase you didconnected already? | 19:51 |
aelkner | ignas: anyway, i went to the remote desktop and disallowed users | 19:52 |
ignas | yes | 19:52 |
ignas | because i am not connected anymore | 19:52 |
*** tdoggette has joined #schooltool | 20:25 | |
*** tdoggette has quit IRC | 20:47 | |
*** ignas has quit IRC | 21:21 | |
*** wbrady has quit IRC | 22:26 | |
*** alga has quit IRC | 23:30 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!