Thursday, 2012-03-08

*** Jon_Ole has quit (Quit: Page closed)07:16
*** nowen (~nowen@adsl-74-176-212-133.asm.bellsouth.net) has joined #wikid13:58
*** nowen has quit (Read error: Connection reset by peer)14:52
*** nowen (~nowen@adsl-74-176-163-69.asm.bellsouth.net) has joined #wikid14:53
*** Andrew_ (c010ccd7@gateway/web/freenode/ip.192.16.204.215) has joined #wikid16:02
Andrew_Hi Nick16:09
nowenhi16:09
Andrew_I was wondering if you'd have any ideas on where I should start troubleshooting wikid tokens not being accepted when login16:10
nowenwhat's your setup again?16:10
Andrew_I have wikid setup to use radius and radius authenticates against our ldap server16:10
nowenand where does it start? at a VPN?16:11
Andrew_I'm able to login to a test host using radius credentials which were validated against the ldap but it doesn't seem to accept wikid tokens16:11
Andrew_I setup sshd on a test box to use radius by following the wikid directions from: http://www.wikidsystems.com/support/wikid-support-center/how-to/how-to-secure-ssh-with-two-factor-authentication-from-wikid16:12
nowenso, it sounds like the creds are stopping at the ldap server16:12
nowenwhat ldap server are you using?16:13
Andrew_openldap16:13
nowendid you see this doc: http://www.wikidsystems.com/support/wikid-support-center/how-to/how-to-add-two-factor-authentication-to-openldap-and-freeradius16:13
nowendid you Create an entry in /etc/raddb/proxies.conf?16:14
Andrew_yes however the file name is now /etc/raddb/proxy.conf16:15
nowenhuh, now why would they do that to me?  ;)16:15
nowencan you only have one proxy?16:15
nowenso - you can log in with static creds that are in ldap, but WiKID fails16:16
Andrew_ha yes16:16
nowenwhat's the last message in the WiKIDAdmin logs?16:16
Andrew_A C3P0Registry mbean is already registered. This probably means that an application using c3p0 was undeployed, but not all PooledDataSources were closed prior to undeployment. This may lead to resource leaks over time. Please take care to close all PooledDataSources.16:17
nowenyeah, not applicable.  do you see the OTP request?16:18
Andrew_I'm running radius in debug and it returns access reject when using the wikid token16:18
Andrew_Issued passcode to device -84954.....16:19
nowenok16:20
nowenso, the fact that you don't see anything after that that mentions radius, makes me think the request is not getting to the server16:20
nowenhttp://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-requests16:20
nowenalso, you can run 'tcpdump -p radius' to see if a request is coming in16:21
Andrew_2012-03-08 10:56:02.894INFOcom.wikidsystems.radius.log.DBSvrLogImplRADIUS Receiver Started: listening on port 838816:24
nowenhmm16:24
nowencan you run16:24
nowen'netstat -anp | grep 1812' on the terminal for me?16:24
nowenpost the results here16:24
Andrew_netstat -anp | grep 1812 udp        0      0 0.0.0.0:1812                0.0.0.0:*                               19041/radiusd16:27
nowenok16:28
Andrew_should that be binded to an IP?16:28
nowenlooks normal to me16:28
nowenthe ldap server is on a different box, right?16:29
Andrew_correct16:29
nowenrun 'iptables -L -n16:29
nowen'16:29
nowenand makes sure it's ip is listed16:30
Andrew_it doesn't appear to be there16:32
nowendid you set it up as a Network Client?16:32
Andrew_Just did, restartign wikid now16:33
Andrew_ok it's listed in iptables now16:34
nowengood stuff16:34
nowenwhat version of WiKID is this?16:34
Andrew_wikid-server-enterprise-3.4.87-b115916:34
nowenok16:34
nowenwe have an update, so before you go, let's do that too16:34
nowenit might take a bit for radius to start16:35
nowenyou can re-run the netstat command to make sure it has come up16:35
Andrew_would it make a difference if I was running radius in a separate terminal using /usr/sbin/radiusd -X to watch it process requests?16:36
Andrew_or does it have to be started with wikid?16:36
Andrew_it's still running on the same box just wasn't started through wikid, the netstat on port 1812 shows it listening16:36
nowenis freeradius running on the same server as WiKID?16:37
Andrew_yes16:37
nowenis this just for testing?16:37
Andrew_yup16:37
Andrew_once I have wikid working I'm going to be moving it into the QA/preproduction and out of dev16:38
nowenok16:38
nowenit's just that WiKID uses 1812 for it's listener so I'm not sure that freeradius can run on it too16:38
nowenunless you change freeradius's port16:38
Andrew_that's fine16:39
nowenok16:39
nowenI guess try to auth again and see what happens16:39
Andrew_the ssh to the test server responded: Permission denied, please try again.16:40
Andrew_the RADIUS logs show: rlm_ldap: Bind failed with invalid credentials   modcall[authenticate]: module "ldap" returns reject for request 1 modcall: leaving group LDAP (returns reject) for request 1 auth: Failed to validate the user.16:41
Andrew_the LDAP directory wouldn't have the wikid pw in it, which is what it's trying to authenticate against and failing16:41
Andrew_it seem like the communication between radius/ldap and wikid isn't working16:42
nowenanything in the WiKIDAdmin logs?16:44
Andrew_2012-03-08 11:25:33.391INFOcom.wikidsystems.radius.log.DBSvrLogImplFailed to create RADIUS server socket on port 8388: java.net.BindException: Address already in use  2012-03-08 11:25:33.388INFOcom.wikidsystems.radius.log.DBSvrLogImplRADIUS Receiver Started: listening on port 838816:45
nowenhmm16:45
nowenahh - I didn't look at your response close enough16:45
nowen(11:27:47 AM) Andrew_: netstat -anp | grep 1812 udp        0      0 0.0.0.0:1812                0.0.0.0:*                               19041/radiusd16:45
nowenthat's not WiKID16:46
nowenit is freeradius16:46
nowenso, the WiKID radius listener is not starting16:46
Andrew_yes, so I should change the ports on the freeradius server?16:46
nowenyou need to move freeradius off that port or onto another box16:46
Andrew_Which ports should I have freeradius start on?16:47
nowendoesn't matter, but not 80,443, 8388 or 181216:47
Andrew_gotcha restarting wikid now16:49
Andrew_just ran netstat -anp | grep 1812 after restarting wikid and nothing came up16:50
nowengive it some time16:50
Andrew_freeradius is running on 164516:50
nowenit needs entropy and there's not much on a headless system16:51
nowenyou can run ls -allR on / to create some16:51
Andrew_how long will it typically take?16:52
nowenwell, we did some optimization16:53
nowennot sure if you have that in that version16:53
Andrew_what's the latest version available now?16:53
nowenstill nothing?16:53
nowenactually, I think you have the most recent radius updates http://www.wikidsystems.com/downloads/changelogs/enterprise-changelog16:54
Andrew_nope, nodda thing just re-ran netstat -anp | grep 181216:54
nowenyou moved freeradius and then restarted WiKID?16:55
Andrew_yup16:55
nowencheck the WiKIDAdmin logs16:55
Andrew_2012-03-08 11:49:40.373FATALcom.wikidsystems.radius.authserver.AuthServerCan't start RADIUS Server   2012-03-08 11:49:40.298INFOcom.wikidsystems.radius.log.DBSvrLogImplFailed to create RADIUS server socket on port 8388: java.net.BindException: Address already in use  2012-03-08 11:49:40.279INFOcom.wikidsystems.radius.log.DBSvrLogImplRADIUS Receiver Started: listening on port 8388  2012-03-08 11:49:39.949INFOcom.wikidsys16:56
Andrew_isn't wauth supposed to be on 8388?16:57
nowenrun:  'wikidctl stop'  then 'killall -9 java' and 'wikidctl start16:57
nowen'16:57
Andrew_ok it did prompt me for the wauth passphrase which i added to /etc/wikid/security as it said to do in the youtube videos16:59
nowendoes it always do that? or just this once16:59
Andrew_just this time since we killed java17:00
nowenhmm17:00
Andrew_wikid's still not running on port 1812 after running ls -allR /17:00
nowenyour network client is using radius, right?17:01
Andrew_yes17:01
Andrew_2012-03-08 11:58:24.561INFOcom.wikidsystems.radius.log.DBSvrLogImplRADIUS Receiver Started: listening on port 838817:01
Andrew_that was directly after the wikidctl stop and start17:02
nowendid you change any of the items on the radius protocol page?17:02
Andrew_nope17:02
Andrew_from radius pg in wikid: Host Name:  IP Address:  Port: 181217:02
nowenyou should see "RADIUS Receiver Started: listening on port 1812" in the WiKIDAdmin logs17:03
Andrew_012-03-08 11:58:24.561INFOcom.wikidsystems.radius.log.DBSvrLogImplRADIUS Receiver Started: listening on port 838817:04
Andrew_nothing about 181217:05
nowenthere's nothing running on 1812?17:05
Andrew_nothing showing up in netstat17:05
Andrew_netstat -anp | grep 8388 tcp        0      0 0.0.0.0:8388                0.0.0.0:*                   LISTEN      13104/java           udp        0      0 0.0.0.0:8388                0.0.0.0:*                               13252/java17:05
nowenodd17:07
Andrew_is this setting defined in a conf file somewhere on wikid?17:08
nowen no, it is hard-coded17:12
Andrew_hmm quite interesting17:12
nowentry disabling radius, doing a restart and then enable and restart17:12
Andrew_disable it in the wikid admin pg?17:13
nowen yeah17:13
Andrew_Its restarting the last time now17:15
Andrew_tcp        0      0 0.0.0.0:8388                0.0.0.0:*                   LISTEN      16431/java           udp        0      0 0.0.0.0:8388                0.0.0.0:*                               13252/java17:17
Andrew_nothing running on port 1812 yet17:17
nowentry running 'rngd -r /dev/urandom'17:19
Andrew_still nothing there17:22
nowenlet's upgrade and see if that helps17:22
Andrew_ok17:22
nowenhttp://wikidsystems-dl.com/wikid-server-enterprise-3.4.87.b1216-1.noarch.rpm17:23
nowendownload that to the server and run 'rpm -Uvh wikid-server-enterprise-3.4.87.b1216-1.noarch.rpm'17:24
nowenthen restart17:24
Andrew_just wikid or the server?17:24
nowenjust WiKID17:24
Andrew_ok download's complete installing now17:25
Andrew_starting up now17:26
Andrew_it's still asking for the wAUTH passphrase instead of using the one in the file17:27
nowenperhaps you need to put it in quotes17:27
Andrew_single or double quotes?17:27
nowenie WAUTH_PASSPHRASE='usingnonalpha@#$@#$@#"17:27
noweneither17:27
nowenbut not both, as in my example ;)17:28
Andrew_haha updating now17:28
Andrew_still didnt work17:29
Andrew_it asked for it once I restarted again17:29
nowenand it is in /etc/WiKID17:30
Andrew_in a file named security17:30
nowenyou sure it is the intermediate CA passphrase?17:31
Andrew_it was in a directory called /etc/wikid instead of WiKID17:32
nowenyeah, that won't work17:32
Andrew_it seem to work now that it's moved to the correct folder17:32
Andrew_sry bout that17:32
nowennp17:32
Andrew_ok wikid is back online and it still isn't running radius on 181217:33
nowensame log message?17:33
Andrew_but 8388 has java running on both udp and tcp17:33
Andrew_plenty of red in the logs:17:34
Andrew_2012-03-08 12:32:18.135FATALcom.wikidsystems.radius.authserver.AuthServerCan't start RADIUS Server   2012-03-08 12:32:18.114ERRORcom.wikidsystems.server.wAuthCouldn't validate the client certificate. Verify the validity and dates of the client cert.  2012-03-08 12:32:18.092ERRORcom.wikidsystems.client.wClientERROR: javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown  2012-03-08 12:32:15.728ERRO17:34
nowenyeah, you've got cert issues17:34
Andrew_can I simply remake the cert?17:35
nowenyes17:35
Andrew_how should I do that17:35
nowenhttp://www.wikidsystems.com/support/wikid-support-center/troubleshooting-faq/how-do-i-know-if-my-certificate-is-valid17:35
nowenyou can validate them via the command line17:35
nowenor just create new ones via the WiKIDAdmin config tab17:35
Andrew_ok they're both good until 201317:37
nowenhmm. maybe those errors were from earlier?17:38
Andrew_nope just tried restarting the wikid and the same errors popped up:17:39
Andrew_2012-03-08 12:39:10.407FATALcom.wikidsystems.radius.authserver.AuthServerCan't start RADIUS Server   2012-03-08 12:39:10.022ERRORcom.wikidsystems.client.wClientERROR: java.net.SocketException: Broken pipe  2012-03-08 12:39:09.904ERRORcom.wikidsystems.server.wAuthCouldn't validate the client certificate. Verify the validity and dates of the client cert.  2012-03-08 12:39:07.079ERRORorg.apache.catalina.core.ContainerBase.17:39
Andrew_will you be around this afternoon?17:40
nowenyes17:42
nowendid the hostname change or anything like that?17:42
*** nowen1 (~nowen@adsl-98-66-180-154.asm.bellsouth.net) has joined #wikid17:46
*** nowen has quit (Ping timeout: 252 seconds)17:48
Andrew_Nope, always been radiusdev19:25
Andrew_87WestDna19:26
Andrew_could it be that the wikid's radius server isn't starting properly?19:29
nowen1could be19:35
Andrew_should I remove it and reinstall?19:36
nowen1did you recreate the certs?19:36
Andrew_nope19:36
nowen1that might help, but at this point, I would recommend you start from scratch.  while that sounds bad, it's not that hard19:38
Andrew_ok19:38
Andrew_how should I uninstall the server19:43
nowen1just use rpm -e wikid.. and the rm /opt/WiKID and /etc/WiKID19:44
Andrew_error: package wikid-server-enterprise-3.4.87.b1216-1.noarch.rpm is not installed19:44
nowen1is this a virtual server?19:45
Andrew_yes19:45
nowen1can you just rebuild it from scratch or use the iso?  seems a bit borked to me19:45
Andrew_yup19:47
Andrew_I'm gonna start a fresh vm and build it up according to the instructions here :19:50
Andrew_http://www.wikidsystems.com/support/wikid-support-center/installation-how-tos/how-to-install-the-wikid-enterprise-rpms19:50
Andrew_are those still accurate?19:50
nowen1or you can use the iso.  it is based on centos19:50
nowen1yes19:50
Andrew_will this work on rhel6?19:50
nowen1yes19:51
Andrew_Ok will let you know how it goes19:51
Andrew_Thanks19:51
nowen1np - sorry for the issues19:51
Andrew_it's ok. no worries19:53
Andrew_Can you remove the ca on your end?19:53
Andrew_This CSR contains a Distinguished Name(DN) that already exists in the WiKID CA database.19:53
nowen1sure19:53
nowen1what's the fqdn?19:54
Andrew_radiusdev.net.ias.edu19:54
nowen1done19:54
Andrew_Thanks19:55
*** nowen1 has quit (Quit: Leaving.)23:10

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