*** nowen has quit (Quit: Leaving.) | 15:47 | |
*** nowen (~nowen@adsl-66-164-120.asm.bellsouth.net) has joined #wikid | 16:25 | |
*** myndwire|WFH (myndwire@208.40.196.99) has joined #wikid | 17:03 | |
myndwire|WFH | ello | 17:20 |
---|---|---|
myndwire|WFH | nowen: hey there... it's adam from the emails this morning. so i've got to use freeradius for this, right? | 17:20 |
nowen | hi myndwire|WFH | 17:21 |
nowen | no - you don't have to | 17:21 |
nowen | you can have the client talk directly to wikid, if you like | 17:21 |
myndwire|WFH | ahh, the nomachine client, right? | 17:21 |
myndwire|WFH | from what i've read it appears freenx is the piece that does that | 17:22 |
nowen | well, no I mean the freenx server - it would be a radius client to the WiKID server | 17:22 |
nowen | yes - that's right so you set freenx through pam to talk to wikid | 17:22 |
myndwire|WFH | ya that's what i was shooting for, so wikid's radius plugin acts as the radius server and freenx just connects as a client | 17:23 |
nowen | exactly | 17:23 |
myndwire|WFH | the only place i get stuck is adding the pam_radius_auth.so module to the sshd config for pam | 17:23 |
myndwire|WFH | the file doesn't exist, i figured it'd be part of freenx | 17:24 |
myndwire|WFH | sorry for being a pain, i'm quite close to fully understanding all of this though | 17:24 |
nowen | ahh - no, you have to install pam-radius separately | 17:25 |
myndwire|WFH | a-ha, i gotcha | 17:25 |
nowen | http://freeradius.org/pam_radius_auth/ | 17:25 |
nowen | not all of freeradius, tho, just that | 17:25 |
myndwire|WFH | NOW i see, it's only a small portion, and isn't in the yum repository | 17:26 |
nowen | and this might help too http://www.wikidsystems.com/support/wikid-support-center/how-to/pam-radius-how-to/?searchterm=pam%20radius | 17:26 |
myndwire|WFH | oh perfect, thanks | 17:27 |
nowen | you will need to install pam-devel | 17:28 |
myndwire|WFH | just noticed that one hehe | 17:28 |
myndwire|WFH | had to grab gcc too | 17:28 |
myndwire|WFH | oo i think it built.. | 17:29 |
myndwire|WFH | -rwxr-xr-x 1 root root 26498 Apr 28 13:28 pam_radius_auth.so | 17:30 |
myndwire|WFH | nice... some make errors but it still built. | 17:30 |
nowen | hmm, what were the errors? | 17:30 |
myndwire|WFH | pam_radius_auth.c: In function âtalk_radiusâ: | 17:30 |
myndwire|WFH | pam_radius_auth.c:886: warning: pointer targets in passing argument 6 of ârecvfromâ differ in signedness | 17:30 |
myndwire|WFH | pam_radius_auth.c: In function âpam_sm_authenticateâ: | 17:30 |
myndwire|WFH | pam_radius_auth.c:1102: warning: assignment from incompatible pointer type | 17:30 |
myndwire|WFH | cc -Wall -fPIC -c -o md5.o md5.c | 17:30 |
myndwire|WFH | ld -Bshareable pam_radius_auth.o md5.o -lpam -o pam_radius_auth.so | 17:30 |
myndwire|WFH | then it built | 17:30 |
nowen | ok - well, just warnings, so I guess that is ok | 17:31 |
myndwire|WFH | yeah thats what i'm thinking | 17:31 |
myndwire|WFH | the line they mention 2nd in the howtoforge doc mentions pam_stack.so... although that line isn't part of my /etc/pam.d/sshd | 17:33 |
myndwire|WFH | are they saying to *add* that line as well? it's tough to interpret | 17:34 |
myndwire|WFH | i added my line for the pam_radius_auth module | 17:34 |
myndwire|WFH | then it mentions /etc/raddb/server which i don't have.. isn't that part of freeradius? | 17:34 |
nowen | I think pam_stack is deprecated | 17:34 |
myndwire|WFH | ah ok, i was thinking that may just be older stuff | 17:34 |
nowen | for /etc/raddb/server use http://freeradius.org/pam_radius_auth/pam_radius_auth.conf | 17:35 |
nowen | rename to server | 17:35 |
myndwire|WFH | oh right, i saw that mentioned | 17:35 |
myndwire|WFH | i guess just toss it into /etc | 17:36 |
myndwire|WFH | since i don't have a /etc/raddb/ | 17:36 |
nowen | no - make the raddb dir | 17:36 |
nowen | at least, that is what I have done | 17:36 |
myndwire|WFH | that works for me, yeah | 17:37 |
myndwire|WFH | 127.0.0.1 secret 1 | 17:37 |
myndwire|WFH | 10.2.21.50 shared_secret 1 | 17:37 |
nowen | yes, that should be it | 17:37 |
myndwire|WFH | i'm guessing i *literally* change 'routeableIPaddress' to the actual address | 17:38 |
nowen | .50 is your wikid server? | 17:38 |
myndwire|WFH | yessir | 17:38 |
myndwire|WFH | wikid and this all run on the same box | 17:38 |
myndwire|WFH | and all communications will be on 10.x space anyway | 17:38 |
nowen | myndwire|WFH: I have yet to root my android | 17:40 |
myndwire|WFH | oh yeah? noticed the channels i live in hehe | 17:41 |
myndwire|WFH | what device do you have? | 17:41 |
nowen | you mentioned it in the emails. moto cliq | 17:41 |
nowen | running 2.1 now | 17:41 |
nowen | do you still need the sdk to root? | 17:41 |
myndwire|WFH | oh that's right..yeah, most moto devices sort of got left in the dust with their crazy bootloader locks. you don't need the sdk to actually *root* the device, but you'll need it to do anything commandline. it's just like having a local terminal / ssh session | 17:42 |
myndwire|WFH | mainly you grab the sdk for the platform tools... adb mainly | 17:42 |
myndwire|WFH | i wonder how verbose the cliq is... i'll have to look. i actually have the opportunity to pick up a verizon samsung fascinate for 70 bucks, so i think i'm going for it just to play with | 17:43 |
myndwire|WFH | now, i've got two evo's and the viewsonic g tablet, all running cyanogenmod 7 | 17:43 |
nowen | wow | 17:43 |
myndwire|WFH | all open source android, i love it. a good friend of mine is actually the head of the project | 17:44 |
nowen | we need to re-write our android token | 17:44 |
nowen | the ui is screwy | 17:44 |
myndwire|WFH | and i'm also part of 'teamwin'.. basically we created hdmi mirroring, wimax (4g) for htc devices, and now a few apps, like kernel manager. | 17:44 |
nowen | sweet | 17:45 |
myndwire|WFH | yeah, i was messing with the token app for android yesterday, but mainly have been playing with the regular windows one | 17:45 |
myndwire|WFH | it'll be nice to have that ability, especially when this first step of the vnc stuff is working as a proof of concept.. then i can start creating all sorts of two-factor requirements for the IT staff. | 17:45 |
myndwire|WFH | i'd love to essentially have this in place for *everything*, or at least all PCI stuff | 17:46 |
nowen | yes, it's a must have for pci | 17:46 |
myndwire|WFH | primarily the whole vnc thing is for POS machines, forcing 2-factor for remote admin by our team. | 17:46 |
myndwire|WFH | definitely going to be nice | 17:46 |
nowen | I'm a big fan of freenx/nomachine | 17:47 |
myndwire|WFH | from all of this stuff i've read, it sounds absolutely perfect for getting 2-factor into just about everything | 17:47 |
myndwire|WFH | i was revisiting the stuff from the 'using freenx to sure terminal svcs/vnc with two-factor' doc, and i'm looking at the 'patch' mentioned, as well as the node.conf stuff... anything different with those? | 17:49 |
myndwire|WFH | i can see right away there's an existing node.conf already, with tons of commented content | 17:49 |
nowen | the patch is no longer needed, IIRC | 17:50 |
myndwire|WFH | oh nice, ok. i'm still adding FORCE_LOGIN_METHOD=SSH to node.conf though | 17:51 |
nowen | yeah | 17:52 |
myndwire|WFH | got it. i left the rest of the file stock, it appears 95% of it is commented out anyway. | 17:52 |
myndwire|WFH | grabbing nxclient for windows, although i'm sure there's more i need to do before it works ;) | 17:54 |
nowen | see how it breaks! I say! | 17:55 |
myndwire|WFH | hehe yeah exactly :) | 17:55 |
myndwire|WFH | i just sort of enabled the radius module in wikid, so thats 'on'.. but i forget if any config was required beyond what i did. | 17:55 |
myndwire|WFH | odd.. couldn't obtain config info for the domain i created.. | 18:00 |
nowen | for the radius network clients, you need to run wikidctl restart to get it cached and the fw open | 18:00 |
myndwire|WFH | oh right | 18:00 |
nowen | typically, that is a networking issue | 18:01 |
myndwire|WFH | yeah, i forget, doesnt the client look at the 12-digit number first, then turn it into an ip | 18:01 |
myndwire|WFH | or isn't it supposed to communicate directly w/ the wikid box, and then it's supposed to understand the 12-digit number and in return communicate with the domain i created | 18:01 |
nowen | it turns it into an IP or into a wikidsystems.net address | 18:02 |
myndwire|WFH | oh right, i was going to say, maybe i shouldn't have changed my jw.properties | 18:02 |
myndwire|WFH | b/c my 'domain suffix' is just set to rmu.edu right now.. that won't help one bit | 18:02 |
nowen | if your using an IP, you can set it to use an IP first | 18:03 |
myndwire|WFH | yeah, i've got useIpBeforeDns=true on | 18:03 |
myndwire|WFH | maybe the issue is that the 12-digit number i have for that domain is the IP address of that individual server running the vnc client | 18:03 |
myndwire|WFH | it should be the wikid server's ip huh | 18:04 |
nowen | yeah | 18:04 |
myndwire|WFH | that or localhost, since it's going to use that as transit to nomachine | 18:04 |
myndwire|WFH | cool | 18:04 |
myndwire|WFH | ahh ok... re-created my domain properly | 18:10 |
myndwire|WFH | but creating the network client is sort of confusing... i'm adding the ip of the local machine basically since nomachine runs on this box, protocol is radius, but it wants me to enter a shared secret | 18:11 |
nowen | yes, we assume that it is on a different box. use the actual ip. | 18:11 |
myndwire|WFH | i guess just pick one | 18:11 |
myndwire|WFH | a random shared secret | 18:11 |
nowen | the radius listener is on 127.0.0.1 | 18:12 |
myndwire|WFH | ah right, i wonder if i have to make it use localhost | 18:12 |
myndwire|WFH | that or make it run on the actual ip | 18:12 |
nowen | just use the .50 address for the network client | 18:12 |
myndwire|WFH | k | 18:12 |
myndwire|WFH | and just make up a shared secret | 18:12 |
nowen | yes, and put the same secret and in /etc/raddb/server | 18:13 |
myndwire|WFH | the actual secret into /etc/raddb/server ? | 18:16 |
nowen | yes, 10.2.21.50 shared_secret 1 | 18:17 |
nowen | shared_secret should be the same in both place | 18:17 |
myndwire|WFH | oh duh, so swap out shared_secret for my actual secret | 18:17 |
nowen | s | 18:17 |
nowen | yep | 18:17 |
myndwire|WFH | haha, oops. i though that was an auth type | 18:17 |
myndwire|WFH | should that line live before 127.0.0.1's entry? | 18:18 |
nowen | I don't think so. | 18:18 |
myndwire|WFH | didn't think so, but wasn't sure since it's on the same box | 18:18 |
nowen | could be. | 18:18 |
nowen | but I say leave it and test first | 18:18 |
myndwire|WFH | ya lets see how this goes. going to fire up the client and try this out | 18:19 |
nowen | also, you can test it via ssh | 18:19 |
myndwire|WFH | well, not the client, the token client | 18:19 |
myndwire|WFH | oh yea? | 18:19 |
nowen | yes, assuming you are using ssh for nx auth | 18:19 |
nowen | it's the same config | 18:19 |
nowen | one issue is that you will not be able to login remotely via ssh if the wikid server is down | 18:20 |
myndwire|WFH | registration successful | 18:20 |
myndwire|WFH | on the token client | 18:20 |
myndwire|WFH | i guess add a user now | 18:20 |
myndwire|WFH | oh right, yeah | 18:20 |
myndwire|WFH | that's fine, this machine lives on a vmware farm | 18:20 |
myndwire|WFH | sweet, i'm registered | 18:21 |
myndwire|WFH | now i'll setup the client | 18:22 |
nowen | there you go | 18:22 |
myndwire|WFH | even though i need my username actually added to the vnc permissions on that box before it will actually work :) | 18:22 |
myndwire|WFH | NX> 203 NXSSH running with pid: 5204 | 18:28 |
myndwire|WFH | NX> 285 Enabling check on switch command | 18:28 |
myndwire|WFH | NX> 285 Enabling skip of SSH config files | 18:28 |
myndwire|WFH | NX> 285 Setting the preferred NX options | 18:28 |
myndwire|WFH | NX> 200 Connected to address: 10.2.21.50 on port: 22 | 18:28 |
myndwire|WFH | NX> 202 Authenticating user: nx | 18:28 |
myndwire|WFH | NX> 208 Using auth method: publickey | 18:28 |
myndwire|WFH | NX> 204 Authentication failed. | 18:28 |
myndwire|WFH | hmm | 18:28 |
myndwire|WFH | i'm an idiot, i didnt restart stuff | 18:30 |
myndwire|WFH | let me do that before i make myself look dumber :) | 18:31 |
nowen | hmm - i think you need to update the key in the client with the one on the server | 18:31 |
nowen | but I can't remember how to do it | 18:32 |
myndwire|WFH | doesn't it pull it automatically when you add the domain? | 18:32 |
myndwire|WFH | er you mean the nxclient | 18:32 |
myndwire|WFH | oops | 18:32 |
myndwire|WFH | too many clients/certs/etc hehe | 18:32 |
nowen | yeah - nxclient | 18:32 |
nowen | haha - yes, a lot of moving parts ;) | 18:32 |
myndwire|WFH | absolutely, but when it works and is done we're good :) | 18:33 |
myndwire|WFH | good luck to the next guy without having my giant notepad doc full of this stuff though hehe | 18:33 |
myndwire|WFH | yeah, same thing. i'll see if i can figure that part out with the client | 18:34 |
myndwire|WFH | theres a 'key' button. i hit it, it shows me a dsa key | 18:35 |
myndwire|WFH | i can replace it, but the question is which cert haha | 18:35 |
myndwire|WFH | or i could be completely wrong | 18:35 |
nowen | that's the one, I think | 18:39 |
myndwire|WFH | ah ok | 18:40 |
myndwire|WFH | its the only place i can find any ccerts, but apparently thats just a key | 18:40 |
myndwire|WFH | yea that's got to be it.. its the only place anything can go | 18:41 |
nowen | no, where to get the right one.. | 18:42 |
nowen | is it in /etc/nx? | 18:42 |
myndwire|WFH | lemme see | 18:42 |
myndwire|WFH | a-ha | 18:42 |
myndwire|WFH | /etc/nxserver contains: | 18:42 |
myndwire|WFH | -rw------- 1 nx root 672 Apr 27 15:48 client.id_dsa.key | 18:42 |
myndwire|WFH | -rw------- 1 nx root 604 Apr 27 15:48 server.id_dsa.pub.key | 18:42 |
myndwire|WFH | bet that 2nd one is it | 18:42 |
myndwire|WFH | theres a users.id_dsa and "".pub | 18:43 |
nowen | hmm | 18:43 |
nowen | any docs in /share? | 18:44 |
myndwire|WFH | doesn't look like there are any docs at all, no | 18:45 |
myndwire|WFH | hmm | 18:46 |
myndwire|WFH | http://www.nomachine.com/ar/view.php?ar_id=AR01C00126 | 18:46 |
myndwire|WFH | we want the nomachine key as part of the client right | 18:47 |
myndwire|WFH | but i'm guessing the one in there by default was picked up on first connection, like any ssh connection | 18:47 |
nowen | yeah, I feel like it used to "just work", I guess no one changed the keys | 18:48 |
myndwire|WFH | weird.. isn't the nxserver process supposed to run? | 18:54 |
nowen | hmn. yeah, i think it more like a shared library - called and does it's thing | 18:55 |
nowen | but i really can't remember | 18:55 |
myndwire|WFH | ah ok.. so it may be normal that its just not running as a server process | 18:55 |
nowen | yes, I think i remember being spooked by that ;) | 18:56 |
myndwire|WFH | hehe | 18:57 |
myndwire|WFH | i wonder if my radius crap isn't set right in wickid | 18:57 |
nowen | if not, then you will get an error in the WiKIDAdmin logs | 18:57 |
nowen | if the last thing in the logs is the OTP request, then it is elsewhere | 18:58 |
myndwire|WFH | whats the main logfile again? | 18:58 |
nowen | for WiKID, it is in the webui | 18:59 |
myndwire|WFH | opt/WiKID/log/ | 18:59 |
myndwire|WFH | oh ok duh | 18:59 |
myndwire|WFH | just an exception from a while ago | 18:59 |
myndwire|WFH | org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/WiKIDAdmin].[jsp] | 18:59 |
myndwire|WFH | 2 of those | 18:59 |
myndwire|WFH | servlet exception | 19:00 |
myndwire|WFH | changed to debug | 19:00 |
myndwire|WFH | only thing that happened during my auth attempt was: | 19:01 |
myndwire|WFH | com.wikidsystems.server.DeviceTransactionExec | 19:01 |
myndwire|WFH | Issued passcode to device 1597322458765493271 | 19:01 |
myndwire|WFH | oh wow, yeah, nothing related to the pass-off to nx | 19:02 |
myndwire|WFH | i had multihomed enabled.. turned that off. otherwise the rest is all defaults i think | 19:03 |
myndwire|WFH | yeah, its definitely failing the publickey auth. i'm gonna try subbing out the key, hopefully its different? | 19:05 |
nowen | A part of the key that must be distributed to clients is placed in:/usr/NX/share/keysDistribute the private key from the newly generated couple of keys located in the file:/usr/NX/share/keys/default.id_dsa.key | 19:06 |
myndwire|WFH | neither exact path exist, but i've got: | 19:07 |
myndwire|WFH | well... the only keys i have with freenx live in /etc/freenx | 19:08 |
myndwire|WFH | -rw------- 1 nx root 672 Apr 27 15:48 client.id_dsa.key | 19:08 |
myndwire|WFH | -rw-r--r-- 1 nx root 22594 Apr 28 13:52 node.conf | 19:08 |
myndwire|WFH | -rw-r--r-- 1 nx root 22553 Oct 3 2010 node.conf.sample | 19:08 |
myndwire|WFH | -rw------- 1 nx root 0 Apr 27 15:48 passwords | 19:08 |
myndwire|WFH | -rw------- 1 nx root 0 Apr 27 15:48 passwords.orig | 19:08 |
myndwire|WFH | -rw------- 1 nx root 604 Apr 27 15:48 server.id_dsa.pub.key | 19:08 |
myndwire|WFH | -rw------- 1 nx root 668 Apr 27 15:48 users.id_dsa | 19:08 |
myndwire|WFH | -rw-r--r-- 1 nx root 604 Apr 27 15:48 users.id_dsa.pub | 19:08 |
nowen | I'm thinking you need to put client.id_dsa.key in the client | 19:08 |
myndwire|WFH | thats what i'm thinking too | 19:08 |
myndwire|WFH | i'm going to backup the old one and try it out | 19:08 |
myndwire|WFH | its workin it seems | 19:12 |
myndwire|WFH | 'waiting authentication' | 19:12 |
nowen | all they way? | 19:12 |
myndwire|WFH | oh hell yeah | 19:12 |
myndwire|WFH | auth failed for user obringer, but thats fine -- i dont have a login | 19:12 |
myndwire|WFH | i can only test as far as that i think | 19:12 |
nowen | awesome | 19:12 |
myndwire|WFH | oh yeah, the logs look verbose now | 19:13 |
myndwire|WFH | radius receiver started: listening on port 1812 | 19:13 |
myndwire|WFH | accounting logs set up | 19:13 |
myndwire|WFH | nice, i think its actually working | 19:14 |
myndwire|WFH | i'll know tomorrow for sure when we setup another box on the LAN before putting it in place and i setup credentials to test with | 19:14 |
nowen | cool | 19:14 |
myndwire|WFH | heck yeah, hey i truly appreciate your help man, this is going to be awesome when it's all set up :) | 19:15 |
nowen | np | 19:15 |
myndwire|WFH | i'll ttyl, i have to run | 19:30 |
*** myndwire|WFH has parted #wikid (None) | 19:30 | |
*** nowen has parted #wikid (None) | 22:21 |
Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!