Wednesday, 2015-02-04

*** ricardoamaro has quit (Ping timeout: 264 seconds)02:14
*** ricardoamaro (~ricardoam@drupal.org/user/74228/view) has joined #wikid09:17
*** Paul_ (d9243c68@gateway/web/freenode/ip.217.36.60.104) has joined #wikid09:55
Paul_Morning WiKID,  So you are aware Apache 2 API has now changed ad generates a compile error in xradius_chache.c09:57
Paul_it is with unixd_config and I beleive this should be ap_unixd_cofig09:58
Paul_ap_unixd_config*09:59
*** ricardoamaro has quit (Quit: Leaving.)10:23
*** Paul_ has quit (Quit: Page closed)10:30
*** ricardoamaro (~ricardoam@drupal.org/user/74228/view) has joined #wikid10:46
*** Paul_ (d9243c68@gateway/web/freenode/ip.217.36.60.104) has joined #wikid10:57
Paul_Anyone online?10:58
*** Paul_ has quit (Quit: Page closed)11:42
*** ricardoamaro has quit (Ping timeout: 256 seconds)11:49
*** _markh_ (~chatzilla@wish-hq3.gotadsl.co.uk) has joined #wikid12:03
*** _markh_ has quit (Client Quit)12:05
*** ricardoamaro (~ricardoam@drupal.org/user/74228/view) has joined #wikid12:09
*** ricardoamaro has quit (Ping timeout: 264 seconds)12:49
*** ricardoamaro (~ricardoam@drupal.org/user/74228/view) has joined #wikid13:06
*** NickS (540c8c38@gateway/web/freenode/ip.84.12.140.56) has joined #wikid13:15
*** _markh_ (~chatzilla@wish-hq3.gotadsl.co.uk) has joined #wikid13:32
_markh_nowen: can you ping NickS when you get on?  Wikid server (commercial) won't start...13:35
*** ricardoamaro has quit (Ping timeout: 252 seconds)13:49
*** ricardoamaro (~ricardoam@drupal.org/user/74228/view) has joined #wikid14:06
*** nowen1 (~nowen@50-194-249-125-static.hfc.comcastbusiness.net) has joined #wikid14:10
NickSnowen1: We have a non-working server. Hangs forever on "Waiting for wAuth initialization to complete..". Can you help?14:20
nowen1NickS: who are you with?14:20
NickSMJog Limited14:20
*** nowen1 is now known as nowen_office14:21
nowen_officewhat version of WiKID is it?14:22
NickSwikid-server-enterprise 3.5.0-b1472 and wikid-utilities 3.4.2 running on Ubuntu 12.04.4 LTS14:24
nowen_officeis mjog also softoption?14:24
NickSMjog is formally SoftOption. We changed the company name.14:24
nowen_officeok - I'm guessing that your certs are expired and that you need to update to the latest rpm14:25
nowen_officeor deb ;-)14:25
NickSI did check the cert earlier and it looked okay. I'll do ita again and post the result.14:26
nowen_officehmm14:26
nowen_officeusing keytool?14:26
nowen_officecheck the local host too14:27
nowen_officehttps://www.wikidsystems.com/support/wikid-support-center/troubleshooting-faq/how-do-i-know-if-my-certificate-is-valid14:27
NickSkeytool -list -v -keystore /opt/WiKID/private/intCAKeys.p12 -storetype pkcs12 -storepass "<redacted>" gives:14:28
NickSValid from: Fri Nov 09 16:31:53 GMT 2012 until: Mon Nov 09 16:31:53 GMT 201514:28
nowen_officeok14:29
NickSUmm, however, keytool -list -v -keystore /opt/WiKID/private/localhost.p12 -storetype pkcs12 -storepass "<redacted>" gives:14:31
NickSkeytool error: java.io.IOException: PKCS12 key store mac invalid - wrong password or corrupted file. java.io.IOException: PKCS12 key store mac invalid - wrong password or corrupted file14:32
NickSand, wauth.log says: Exception in thread "main" java.lang.NoClassDefFoundError: sun/security/util/CryptoPrimitive14:32
nowen_officehmm.  ok - try moving localhost.p12 to a different directory and restarting14:32
NickSok, hang on...14:33
NickSI moved localhost.p12 to another directory and still have the same problem, i.e. it's stuck "Waiting for wAuth initialization to complete....". Should it have created a new localhost.p12 file?14:37
nowen_officeno, you have to do that via the WiKIDAdmin14:38
nowen_officedid you change anything on the box? do any updates?14:38
NickSWe don't have a working web console.14:38
nowen_officeI know14:39
nowen_officedid you update java or something?14:39
NickSUbuntu unattended upgrades ran last night and rebooted the box. It upgraded: "linux-headers-virtual linux-image-virtual linux-libc-dev linux-virtual unzip"14:40
nowen_officehmm14:40
NickSIt is running: "Linux wikid 3.2.0-76-virtual #111-Ubuntu SMP Tue Jan 13 22:33:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux"14:40
nowen_officeso, something could have changed before that and the reboot killed it14:41
nowen_officewhat version of java is this?14:41
NickSjava version "1.6.0_33" OpenJDK Runtime Environment (IcedTea6 1.13.5) (6b33-1.13.5-1ubuntu0.12.04) OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode)14:42
nowen_officeok - try moving intCA and starting14:43
NickSIs that intCAKeys.p12?14:43
nowen_officehow many users do you have on this box?14:43
NickSa dozen or so users14:44
nowen_officeok - might be a good idea to back up the db.  can you tar up /var/lib/pgsql/data?14:45
nowen_officeand yes, ntCAKeys.p1214:47
nowen_officehmm14:47
nowen_officeactually, I think I know the issue14:47
nowen_officeit's not your certs, it is our cert.  our CA expired14:47
NickSWell, in the meantime a wikid start has worked. I got a token but still couldn't login and out control panel isn't working14:48
nowen_officewe updated for the expired cert with 3.5.0-b142814:49
*** ricardoamaro has quit (Ping timeout: 250 seconds)14:49
nowen_officeok14:49
nowen_officeis this a VM or a real box?14:50
NickSIt's a VM running on OpenStack. It's been running fine since late 201314:51
nowen_officeyeah, I'm guessing that the cert expired some time ago.  you would have an issue with it until wikid restarted14:51
nowen_officeso, I recommend we take a snapshot, update to the latest and get new certs14:52
NickSYou said you updated for the expired cert with 3.5.0-b1428, so should the version we're running (3.5.0-b1472) be okay?14:56
nowen_officehmm, good point14:58
nowen_officeand yet it could be any number of other bugs that have been fixed14:59
nowen_officetomcat updates alone15:01
NickSTrue. I'll upgrade.15:01
nowen_officehttp://wikidsystems-dl.com/wikid-server-enterprise_4.0.1-b1821-1.deb15:02
nowen_officeand http://wikidsystems-dl.com/wikid-utilities_3.4.3-1.deb15:02
NickSThanks.15:02
nowen_officethe CA setup is different now.  with better feedback for expirations and license management. I can walk you through it15:02
*** ricardoamaro (~ricardoam@drupal.org/user/74228/view) has joined #wikid15:05
NickSIs this all I have to do (for Ubuntu): https://www.wikidsystems.com/support/wikid-support-center/installation-how-tos/how-to-upgrade-your-wikid-strong-authentication-server15:07
nowen_officeyes. that should be it15:08
nowen_officeyou might have to run 'sudo apt-get -f install' to make sure about any dependencies15:09
nowen_officeNickS: the new ca server is at https://ca.wikidsystems.com15:19
nowen_officeyou have to create an account.15:19
NickSI've created an account. What do I have to do now?15:24
nowen_officedid the server start up for you?15:25
NickSYes! I got a passcode and used it to login to a server and I can login to the web control panel15:29
nowen_officeok15:30
nowen_officedo you see the link for the Certificate on the Configuration tab?15:30
NickSThe "Purchase, add, renew...." link?15:32
nowen_officeno - the Display Certificate15:32
nowen_officeclick that and copy the cert to the clipboard15:33
nowen_officethen click the Purchase, Add, Renew link15:33
NickSok15:34
nowen_officelogin and click Add a Server License - paste the cert in there15:34
NickSI get: "Error: Submitted data could not be processed as a valid WiKID Certificate"15:36
NickSThere's no BEGIN/END with the displayed certificate15:36
nowen_officeok - did you create a new cert after you started wikid?15:37
NickSNo15:37
nowen_officeok - you will need to do that.15:37
NickSIs that with "/opt/WiKID/bin/wikidctl setup"?15:38
nowen_officeno - via the WiKIDAdmin > Configuration > Create an Intermediate CA.  you will also have to create a localhost15:39
NickSWhen I generated the Intermediate CA I just got a menu with a blank page. Is that correct?15:48
nowen_officeno, did you start with Create An Intermediate CA?15:48
*** ricardoamaro has quit (Ping timeout: 245 seconds)15:49
NickSI did. Filled in the form and pressed "Generate"15:49
nowen_officeand you get a blank page?15:49
NickSYes. I'll try again.15:50
nowen_officeok - can you rerun 'wikidctl setup' and run through the network piece15:50
nowen_officein particular the domain name15:50
NickSSame again. I'll rerun "wikidctl setup".15:51
*** ricardoamaro (~ricardoam@drupal.org/user/74228/view) has joined #wikid16:07
NickSI'm still getting a blank page when I attempt to generate the intermediate certificate.16:08
nowen_officeugh. I'm sorry - what version of java again?16:08
nowen_officealso - is there an error in the WiKIDAdmin logs?16:11
NickSjava version "1.6.0_34" OpenJDK Runtime Environment (IcedTea6 1.13.6) (6b34-1.13.6-1ubuntu0.12.04.1) OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode)16:13
NickSThere are errors in the logs:16:13
NickSERROR: javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown16:13
NickSCouldn't validate the client certificate. Verify the validity and dates of the client cert.16:13
NickSERROR: java.net.SocketException: Broken pipe16:13
NickSCan't start RADIUS Server16:14
NickSWith regard to the last error, when I start wikidctl one of the messages states "RADIUS protocol daemon already started."16:15
nowen_officecan you give me the output of ls -all /opt/WiKID/private plx16:17
nowen_officeplz16:17
NickSls -all /opt/WiKID/private total 36 drwxr-xr-x  3 wikid root 4096 Feb  4 15:09 . drwxr-xr-x 15 wikid root 4096 Sep  6  2013 .. -rw-r--r--  1 wikid root 2222 Sep  6  2013 Admin.p12 -rw-r--r--  1 wikid root 2652 Sep  6  2013 CACertStore drwxr-xr-x  2 wikid root 4096 Feb  4 15:09 googlesso -rw-r--r--  1 wikid root 2235 Sep  6  2013 HC Admin.p12 -rw-r--r--  1 wikid root 2931 Sep  6  2013 intCAKeys.p12 -rw-r--r--  1 wikid root 2174 Sep  6  2016:18
NickSI hope that makes sense!16:18
nowen_officeyes ;-).  Try this: mv CACertStore and intCAKeys.p12 and restart wikid.16:20
nowen_officeI'm worried though, you should have a WiKID4CA.cer in there16:21
NickSThere is a WiKIDCA.cer, it looks like it got chopped off the end of my copy-paste16:24
NickSI've restarted wikidctl, but there was no "Waiting for wAuth initialization to complete", it want straight from "Starting Timecop" to "Starting Tomcat"16:25
nowen_officehmm, no WiKID4CA.cer though?16:27
NickSYes, see previous comment16:28
nowen_officeok - try to create the int ca again16:30
NickSI'm still getting a blank page16:31
NickS(with menu and logo)16:31
nowen_officeugh, usually that's some issue with the hostname and re-running setup fixes it16:33
NickSSo when I ran the set up I first put in the hostname as wikid.local.example.com as that is the hostname of the box. I then tried it again (and it is now) wikid.example.com, as that is how we access it from other servers16:35
nowen_officethat should be fine16:38
nowen_officeI'm booting up an old ubuntu server to see if I can recreate16:38
NickSThanks16:39
*** ricardoamaro has quit (Ping timeout: 240 seconds)16:49
*** ricardoamaro (~ricardoam@drupal.org/user/74228/view) has joined #wikid17:06
nowen_officeNickS: ok - i have replicated.17:29
nowen_officecan you move your certs back to /opt/WiKID/private and try to get it working again?17:29
nowen_officeoh wait17:30
nowen_officerun:  sudo apt-get install openjdk-7-jdk17:30
nowen_officeand restart17:30
nowen_officeNickS: you see that?17:32
NickSOk17:33
*** ricardoamaro has quit (Ping timeout: 264 seconds)17:49
NickSI have upgraded to jdk7, copied the certs back, restarted and generated and intermediate certificate and pasted that into the "Add server" on the certificate management site17:51
NickSbtw. our license was due to expire on 15th and we renewed that earlier today17:52
nowen_officeyes - saw taht17:54
nowen_officethat17:54
nowen_officeok - so add users and the term and you pay via PO.  I will process the order based on what you paid today17:55
NickSI've added a 10 user pack, to match what we paid earlier.17:58
nowen_officeok - you need to add a term18:00
nowen_officeand then the payment button should appear18:01
nowen_officeterm == Add/Extend License18:01
nowen_officeonce you do, the Purchase License button should appear.18:01
NickSDone. Can you fix expiry date when you match PO to earlier payment?18:03
NickSDo I need to put the cert on the server?18:03
nowen_officeyes - Configuration > Install Intermediate cert18:04
nowen_officewait - let me fix the expiration first18:05
nowen_officeyou said 2/15/15?18:05
*** ricardoamaro (~ricardoam@drupal.org/user/74228/view) has joined #wikid18:06
NickSYes18:09
nowen_officeok - you will most likely have to log out and log in again18:09
nowen_officeyou should see that it is paid and expires 2.15.1618:10
NickSSo, I tried to paste the cert back in and it's failed the license validation check as we have 18 users listed, but there are only 9 actual people as each has entries for 2 domains, Apparently we've only ever paid on the basis of the number of actual people18:10
nowen_officelol18:11
nowen_officeeach license is a user in a domain - a user can have more than one token on the same license on the same domain but not two domains18:12
NickSWhen did that change?18:13
nowen_officenever18:13
nowen_officeit just wasn't really enforced very well18:14
NickSokay, can you sort us out with something short term as we've been offline all day and I'll pass this on to our technical director to resolve?18:15
nowen_officeyeah, go in and add more seats.  then pay via PO again.  You should get a cert that's good for 60 days18:16
NickSok thanks.18:17
NickSI can't make the "Purchase" button active.18:20
nowen_officehmm, should be Add A user License and then Add/Extend License.  no go?18:21
nowen_officetry logging out/in again18:21
nowen_officesome odd session things seem to be going on18:22
NickSLogging in/out did resolve it.18:26
NickSI had trouble pasting cert in. Your instructions say to include the BEGIN/END, but in fact it only works without BEGIN/END18:26
nowen_officeugh - that's supposed to be fixed18:27
NickSAm restarting server...18:27
nowen_officeI see the 2nd order18:30
NickSRestarted ok. I can get passcodes and use them to log okay. The web console works and recognises the licence. So is that all okay now?18:30
nowen_officeare you showing 20 license?18:31
NickSYes18:31
NickS20 licenses18:31
nowen_officeok - should be good for 60 days18:31
NickSokay, thanks. I will pass the license issue across to our technical director. Will you be sending him the invoice for the outstanding licenses?18:32
nowen_officeI can18:32
nowen_officeis that Mark?18:32
NickSyes it is.18:32
nowen_officeok18:33
NickSAnd thank you very much for your help this afternoon18:33
nowen_officenp. sorry for the isse18:33
NickSBye.18:33
nowen_officeyou really need to update the wikid server every once in a while18:33
nowen_officeyou should subscribe to the newsletter18:34
laszloflol18:34
NickSYes. Thanks again.18:34
nowen_officelater18:34
*** NickS has quit (Ping timeout: 246 seconds)18:38
*** ricardoamaro has quit (Ping timeout: 240 seconds)18:40
*** ricardoamaro (~ricardoam@drupal.org/user/74228/view) has joined #wikid19:32
*** ricardoamaro has quit (Quit: Leaving.)19:40
*** ricardoamaro (~ricardoam@drupal.org/user/74228/view) has joined #wikid19:56
*** nowen_office has quit (Quit: Leaving.)20:18
*** Paul_ (5e019438@gateway/web/freenode/ip.94.1.148.56) has joined #wikid20:58
Paul_@nowen, you online?20:58
*** nowen1 (~nowen@50-194-249-125-static.hfc.comcastbusiness.net) has joined #wikid20:58
*** nowen1 is now known as nowen_office21:01
Paul_nowen_office, you online?21:03
nowen_officeyes21:03
Paul_Sent you an email.  The forums aren't sending registration links...and looking for support with the software and interfacing it with Apache221:05
nowen_officePaul:  did you restart the WiKID service after adding apache as a network client?21:05
Paul_yup.21:05
Paul_a few times.21:05
nowen_officeok21:06
Paul_com.wikidsystems.radius.log.DBSvrLogImpl<136> Access-Request(1) LEN=69 10.0.1.5:40418 Access-Request by user2 Failed: AccessRejectException: Access Denied com.wikidsystems.radius.access.WikidAccess4Access denied for user2, domain code: 010000001006 client: /10.0.1.5 com.wikidsystems.radius.log.DBSvrLogImpl<136> Access-Request(1) LEN=69 10.0.1.5:38203 Access-Request by user2 Failed: AccessRejectException: Access Denied com.wikidsystems.21:06
nowen_officeok - I guess you saw the radius debug page?21:06
Paul_that doesn't really help that line actually.  I have sent the full log....is there somewhere i can upload it to make easier.21:06
Paul_Yup.  I have a full log21:06
nowen_officesure - pastebin.com - just note that it's public21:07
nowen_officebut first - is user2 still enabled?21:07
Paul_Yer.  I reenabled all the users.21:08
Paul_http://pastebin.com/ciQfVacX21:08
Paul_As you can see from the logs, the 2 clients work using the example.jsp script.  However, neither work when they attempt to authenticate web a web browser at the relevant directory.  When I followed the instructions on https://www.wikidsystems.com/support/wikid-support-center/how-to/two-factor-authentication-for-apache-2.2-or-higher  I had to modify xradius_cache.c from unixd_config to ap_unixd_config whoever errors still came up, but comp21:08
nowen_officeahh21:08
nowen_officeI see21:08
nowen_officeAccess-Accept(2) LEN=69 10.0.1.5:35600 Access-Request by user2 succeeded21:08
Paul_ followed the remainder of the instructions and move the mod_auth_xradius.so file to the correct directory.  The AuthXRadiusAddServer "10.0.1.6:1812" "super_secret" has been set.  The network client also is correct set by IP and to use xradius.  Any idea?21:08
nowen_officeyes - something is wrong with the cache21:09
nowen_officeit's trying to authenticate every http request21:09
nowen_officewhich is a problem with a one-time passcode21:09
nowen_officedo you have: AuthXRadiusCache dbm conf/authxcache?21:10
Paul_yes i have that line in the config along with the load module.21:12
Paul_Just going to check that directory exists thought21:13
Paul_though*21:13
nowen_officeyeah - and the permissions21:13
Paul_do you know what the permissions should be www-data?21:13
nowen_officeit would need read/write I suspect21:14
nowen_officeI don't have a working test of apache right now21:14
nowen_officeI know that the authors of freeradius complain about apache changing their interface for no reason, and that's why mod_auth_radius stopped working21:15
nowen_officeis this ubuntu or redhat?21:15
Paul_ubuntu21:17
nowen_officehttps://www.howtoforge.com/how-to-configure-apache-to-use-radius-for-wikid-two-factor-authentication-on-ubuntu might be a better guide21:17
Paul_thanks. I only have an image of the machine with me.   The AuthXRadiusCache dbm ... is that based on the root directory of the system or with the /etc/apache2 ?21:21
Paul_ls21:21
Paul_cancel*21:21
nowen_officeI would think it's the /etc/apache2.  you can try /etc/apache2/conf/authxcache21:22
nowen_officeinstead of just conf/authxcache21:22
Paul_Ok cheers.  I'll try that tomorrow and add sudo chown -R :www-data /etc/apache2/conf/authxcahe and sudo chmod g+r user21:23
Paul_that should sort the permissions out21:23
nowen_officeok I guess I need to update those apache tutorials21:24
nowen_officeI see one for ubuntu 821:24
Paul_If i get it up and running, I an writing the documentation up anyway for my system.  So can send you a copy of what i did.21:25
nowen_officeawesome!21:25
Paul_no worries.  thanks for your time tonight Nick.  I'll give it a shot tomorrow and email you with the settings if all goes well.  If not, i'll see you on here.21:26
nowen_officeok ;-)21:26
*** Paul_ has quit (Ping timeout: 246 seconds)21:32
*** ricardoamaro has quit (Quit: Leaving.)22:40
*** nowen_office has quit (Quit: Leaving.)23:06

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