Thursday, 2012-12-06

*** nowen (~nowen@99-174-93-102.lightspeed.tukrga.sbcglobal.net) has joined #wikid13:30
*** vladdy (~vladdy@host-31-180-205-198.stv.ru) has joined #wikid14:54
*** nowen has quit (Quit: Leaving.)15:13
*** nowen (~nowen@99-174-93-102.lightspeed.tukrga.sbcglobal.net) has joined #wikid16:28
*** vladdy has quit (Ping timeout: 265 seconds)16:46
*** vladdy (~vladdy@host-31-180-205-198.stv.ru) has joined #wikid16:48
*** vladdy has quit (Quit: Get MacIrssi - http://www.sysctl.co.uk/projects/macirssi/)17:55
*** johndbro1 (d0fef13f@gateway/web/freenode/ip.208.254.241.63) has joined #wikid20:42
johndbro1Hello20:42
nowenhi20:42
johndbro1two questions for you:  first - is the Wikid Radius network client only listening to localhost connections?20:42
nowennot sure I understand the question - the listener is on localhost, but it will talk to any network client20:43
johndbro1So it will accept connections from other servers on the network20:44
nowenyes, they need to be entered as network clients.  then you have to restart the wikid server so they are added to the cache20:44
johndbro1ok.  interesting.  I have not had any luck connecting to my wikid server's radius listener from other machines on my LAN20:45
nowenok - a few tricks20:45
nowen1. you might need to run 'wikidctl stop' then start20:46
nowenand maybe 'killall -9 java' in between for good measure20:46
johndbro1Ok.  I've been doing a restart and it seemed to start cleanly, but I'll give that a shot20:46
nowen2. set the logs to debug: http://www.wikidsystems.com/support/wikid-support-center/troubleshooting-faq/how-can-i-set-radius-logging-to-debug-how-can-i-see-if-wikid-is-getting-the-radius-requests20:46
nowen3. run 'tcpdump port raidus' on the server to make sure the request are getting there20:47
nowen4. run 'netstat -anp | grep 1812' to make sure the listener is up20:47
johndbro1I did 2 and 4 previously, but I'll double check20:48
nowenthe logs revert to non-debug on restart unless you save the config20:48
johndbro1interesting20:49
nowenwell, debug creates a lot of info.  enough to slow a server down depending on the box20:50
johndbro1Yeah, I wasn't criticizing :)  Just wasn't expecting it20:51
nowengotcha20:55
johndbro1Ok, the second question is timely now - can I use radtest from the freeradius package to test that WiKID can authenticate the WiKID user I set up, assuming I have the token and the shared secret?20:56
nowenyeah, I've used that and radlogin20:56
johndbro1Ok.  I used radtest on my Wikid server, and I gave it the current passcode, and it presents this in the logs: Server returns passcode: -121:01
nowenhmm21:01
johndbro1along with other stuff, but that seems to be the key line21:01
nowenthat's in the WiKIDAdmin logs?21:02
johndbro1asdfas21:02
johndbro1 opt/wikid/log/radius.log21:02
johndbro1I forgot about leading / being meta-commands in IRC.  Been a long time21:03
nowenheeh21:03
nowenI find it to be a great support tool21:03
johndbro1Yeah, this is pretty nice - unless you get a bunch of people in here, I would imagine it would get pretty confusing then21:03
nowenor perhaps, step one is 'get on irc' and that limits access!21:03
johndbro1yeah, probably21:04
johndbro1any thoughts on that return code?21:06
nowencan you check in the WiKIDAdmin logs?  could be non-radius21:06
johndbro1sure - the logs in the Web admin include: Server returns passcode: -1  and then21:09
johndbro1<111> Access-Request(1) LEN=76 127.0.0.1:42833 Access-Request by johnbr Failed: AccessRejectException: Access Denied21:09
nowenand you're getting the OTP ok?21:09
johndbro1yeah, no problems there.  I see that in the logs as well21:09
nowenis the log level set to debug?21:09
johndbro1yes sir21:10
johndbro1both of those lines were debug level logs21:10
johndbro1Oh - I do not have postgres set up - is that required for this to work?21:12
nowenhaha, yes21:12
nowenhow did you install without it?21:12
nowenhow do you login without it?21:12
johndbro1everything just works - I can log in, view logs, create domains, etc21:12
nowenthen postgres is setup21:12
nowendid you get a cert from us?21:13
johndbro1Yeah - I filled out a form on my wikid server, and then pasted something on your site, and you emailed me back a cert21:13
johndbro1or something like that21:13
nowenok21:13
nowenhmm21:13
nowenis the user enabled?21:14
johndbro1yes21:15
nowenwhat version of WiKID is this?21:15
johndbro1And I can verify that postgres is running.  There are some logs that look like they're saying it isn't21:15
johndbro1but I think they must be from the initial install.21:15
johndbro1wikid-server-enterprise-3.5.0-b135921:16
johndbro1well, I was enabled before, but when I just checked now, I was disabled.  Let me try my test again21:19
nowenjust run 'wikidctl restart'21:19
nowenit will start all the needed services21:20
johndbro1I meant my user - johnbr - was marked disabled21:20
nowenahh21:20
johndbro1but now, having double checked that the johnbr account is enabled, I still get the same result - server returns passcode -121:21
nowenand in the logs you see: "Issued passcode to device ..."21:23
nowenand then that error?21:23
johndbro1Issued passcode to device 102041590330983226421:24
johndbro1then a bunch of protocol stuff21:24
nowencan you paste the pertinent log to pastebin?21:24
johndbro1http://pastebin.com/E8qUF9Bq21:26
nowencan you double-check your shared secrets?21:27
johndbro1you bet21:27
johndbro1They are the same - when I use radtest with a slightly different secret, it doesn't respond at all21:29
nowenhmm21:34
johndbro1Glad to know I'm not just being dumb, at least so far21:36
nowencan you upgrade to this: http://wikidsystems-dl.com/wikid-server-enterprise-3.5.0.b1373-1.noarch.rpm21:39
nowenjust use rpm -Uvh to upgrade21:39
johndbro1ok21:42
johndbro1BTW, I looked at the curr_codes table in the database, and I can confirm that the curr_codes entry in the table is the same as what I'm using in my radtest call21:42
johndbro1ok, upgraded and restarting21:44
johndbro1still rejecting the passcode, in the same way21:51
nowenok, can you add a new user and try again?21:51
johndbro1sure21:52
johndbro1yay, that worked22:00
nowenhuh22:00
johndbro1I created a new user, ann, and she was granted access22:00
nowenany thoughts on what might have happened?  could the user have been disabled, but the page not refreshed?22:01
johndbro1I'm thinking that I may not have properly configured johnbr during the registration process - maybe I never properly attached him to a registration code or something22:01
johndbro1but he was definitely enabled22:02
nowenhmm22:02
johndbro1I think I may have done the 'Create New Domain' thing on the client a couple of times - perhaps I clicked on the wrong registration code on the Admin screen when I was completing the loop22:03
johndbro1in which case, he was attached to a 'stale' registration code22:03
johndbro1In any case, I am much, much closer to my goal now.  Thank you for that!22:06
johndbro1as soon as I can reproduce ssh-with-wikid with a different PC, I think I'll be ready to buy the licenses and move into production22:07
johndbro1Thanks again for your all your help.   Take care22:08
*** johndbro1 has parted #wikid (None)22:08
*** nowen has quit (Quit: Leaving.)23:13

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!