Wednesday, 2013-09-04

*** JRorie has quit (Ping timeout: 250 seconds)11:54
*** nowen (~nowen@50-194-249-125-static.hfc.comcastbusiness.net) has joined #wikid12:12
*** NickS_ (540c8c38@gateway/web/freenode/ip.84.12.140.56) has joined #wikid15:00
nowenHey NickS_, I see you just downloaded the server15:02
NickS_Hi, w're an existing enterprise customer, been using WiKID for a few years now.15:03
nowenyeah - is Mark still with you?15:03
NickS_We have WiKID installed on VMWare from a Centos ISO15:03
NickS_Yes, Mark is still here.15:04
nowenexcellent. tell him Hi15:04
NickS_Will do, he's in a meeting at the moment15:04
nowenok - what's up? Anything wrong?15:04
NickS_Nothing wrong with the current installation, but I'm trying to migrate our VMware image into OpenStack.15:05
noweninteresting.15:05
NickS_We use VMware's convertor, import the VMDK into OpenStakc, and create an instance but it fails to boot15:06
nowenhmm. how many users do you have?  would it be easier to start fresh?15:07
NickS_Well that's a possibility, probably using an unbuntu DEB, which is why I started down the route of downloading ir.15:08
NickS_But it looks like we'd have to start again from scratch?15:08
NickS_I think we've got 10 or so users15:08
nowennot at al.  I can also help you move the data to a fresh install15:09
nowenI'm guessing that vmware's importer isn't much of an exporter ;-)15:09
nowenis there a specific error you get on booting?15:09
NickS_We found other reports of people having problems with Centos. We have successfully booted Ubuntu VMware images. ubuntu is our preferred OS15:10
NickS_Specfic errors are;15:10
nowenI worry about moving the data from centos to ubuntu - differences in the postgresql setup15:10
NickS_mount: could not find filesystem 'dev/root'15:10
NickS_no fstab.sys mounting internal defaults15:11
NickS_setuproot: error mounting /proc15:11
NickS_A few others, and than a Kernel panic15:11
nowenyeah, seems bad15:11
NickS_Yep15:12
NickS_So, your not keen on a Centos to Ubuntu migration?15:12
nowenwell, maybe if you do a psql data dump it would work.15:13
nowenhere are the options as I see them:15:13
nowen1. set up a centos wikid server same version as your current (update to latest, first).  copy the db files and certs to new server, set IP and start15:14
nowen1. Setup replicant server on openstack, replicate existing server to slave, promote slave (essentially the same as above, but uses our scripts)15:15
nowenooops - that was 2. ;-)15:15
NickS_;-)15:15
nowen3.  use postgresql tools to dump db, restore to new ubuntu server, copy over certs etc and see15:15
nowen4. start fresh with ubuntu setup15:16
nowenreally a question of the time you want to spend on something that might not work15:16
NickS_Okay.15:18
NickS_and I guess 4 could follow 3 by resetting the DB if 3 fails15:19
NickS_?15:19
nowenyes, and you can probably do, 3, then 2 or 1.  3 should not damage the database at all15:19
nowenthough you might lose data during the process15:19
nowenbut mostly likely it would be logging info and not, say, new user registrations15:20
NickS_You mean lose data during a replication, not during an export?15:20
nowenyou should not lose data during replication nor export15:21
nowenwell15:21
nowenlet's say you export the db at 2:00 pm15:21
nowenit works and you start the new server at 3:00 pm15:21
nowenthat hour of data is not on the new server15:22
NickS_Okay, that's fine. We accept that.15:23
nowenyou can leave the WiKID server off and you won't lose any data ;-)15:23
NickS_We'll get compaints ;-(15:25
NickS_Okay, I'll have a think and discuss with Mark.15:25
nowenhehe, well, glad to hear you are using it!15:25
nowenok15:25
NickS_Are there any docs on migrating the DB and certificates?15:25
nowenno, we have some on replication, but I would have to walk you through it. let me check though15:26
NickS_Okay, thanks15:27
nowenit's really just two directories.  /opt/WiKID/private  and /var/lib/pgsql/data.15:27
nowenfor postgres, I think it would be something like pgdump/pgrestore15:27
NickS_Okay. I guessing we'll go for option 3 in the first instance.15:28
nowenok15:28
NickS_There's a spelling mistake on your website15:29
nowenoh - where?15:29
NickS_Under "View our wuick links":15:29
NickS_New! WIKID Installation Videos! 15 minites to two-factor authentication!15:29
NickS_should be "minutes"?15:29
nowenoh, yes it should15:30
NickS_Ok, thanks. I might be back!15:30
nowennp, I will be here15:30
NickS_Bye15:30
nowenlater15:30
NickS_Hello again16:04
nowenhi16:04
NickS_I'm looking for our existing postgress login details16:04
NickS_Are they fixed, or where can I find them?16:04
nowenif you are root on the box , you should be able to 'su - postgres'16:04
nowenit is locked to the server localhost16:04
NickS_ok, hang on16:04
NickS_Thanks. That's got me going.16:15
nowenok16:15
*** NickS_ has quit (Quit: Page closed)16:31
*** AccentureDan (0cfa9442@gateway/web/freenode/ip.12.250.148.66) has joined #wikid16:54
nowenHey AccentureDan16:54
AccentureDanhey bud16:54
AccentureDanso working on this thing again16:54
nowenhow goes it?16:54
AccentureDangood man hbu?16:54
AccentureDanso i had to swap some configuration around in my test domain because of how I plan on implementing wikid, just need some help16:55
nowenok16:55
AccentureDanagain, my test domain has a VPN jump box VM with two network adapters, one for external (10.67.x.x) network and one for internal (192.168.x.x) network16:55
AccentureDanmy wikid is purely on the 192.168.x.x network and my Domain Controller is purely on the 192.168.x.x network16:56
AccentureDanshould i have my Wikid auth server facing the 10.67.x.x network?  all i want to do is have the user use TFA plus their AD credentials when they VPN in16:57
AccentureDani think you sent something my way but i cannot seem to find it16:57
AccentureDanone more question...when i set up the domain server ID, should that be the ID of an internal 192.168.x.x address or the external facing adapter address (10.67.x.x)?16:57
nowenok, so the server needs to communicate with the tokens which are outside your FW16:58
nowenthe domain id should use the External IP16:58
AccentureDanyup16:58
AccentureDanohhhhh okay i thought so16:58
AccentureDanone sec lemme go edit this up16:58
nowenso, even though you might NAT the server, the domain id is the external16:58
AccentureDanokay the only external IP address right now that i have is the external IP address of the VPN that users from the external network are connecting to16:59
AccentureDanbasically which server would be best suited as the domain server ID?  the domain controller, the wikid auth server, or my VPN jump box?17:00
nowenwell, if your VPN can handle it, you can route any traffic on port 80 going to /wikid to the WiKID server17:00
AccentureDanshould be able to, i turned off everything for testing purposes17:00
AccentureDanfirewalls and such17:00
AccentureDani mean for best practices, should i have my wikid auth server as the domain ID and have that NATd to the external network?17:01
nowenyes17:01
nowenthat's the way it has to be17:01
AccentureDanfantastic, that clears that up...this will take a few minutes, have to add a virtual network adapter and all that jazz17:01
AccentureDanbrb man, thx for the advice :)17:01
nowenotherwise the tokens won't be able to reach it17:01
nowennp17:01
AccentureDanawesome17:01
AccentureDanthanks :)17:01
AccentureDanokay all created...so question regarding network clients17:30
AccentureDanjust a bit confused on what will be requesting stuff from WiKID17:30
nowenyour VPN17:30
AccentureDani only have my domain controller added as of now17:30
AccentureDanokay should it be the internal or external address for the VPN?17:31
nowenyou AD server doesn't talk to WIKID17:31
AccentureDanokay, just the VPN?17:31
nowenor do you have NPS on it?17:31
AccentureDani have NPS17:31
nowenahh17:31
nowenok17:31
nowensorry, then it should go:  VPN >> NPS >> WiKID.17:31
AccentureDanahhhhh okay one sec17:32
AccentureDanNPS for RADIUS and VPN for LDAP?17:32
nowennope17:32
nowenno need for LDAP at all17:32
AccentureDanfantastic17:32
nowenthe VPN talks to NPS17:32
nowennot WiKID17:32
AccentureDanawesome17:32
AccentureDanthen NPS routes to WiKID17:33
nowenNPS will proxy the credentials to WiKID after authorizing the user based on their username17:33
AccentureDanas i have that set up from the installation manual17:33
nowenyes17:33
nowenthe user will enter their username and OTP into the VPN.17:33
AccentureDanokay awesome, so the only network client i should have is the NPS client?17:33
nowenvpn send that to NPS17:33
AccentureDanahhhhh okay17:33
nowenyes17:33
AccentureDansweet!17:33
AccentureDanlet me dump this in to the test domain, one sec bud17:33
nowenNPS does the AuthZ, if that goes ok, NPS sends credentials to WiKID for AuthN17:34
nowenthe tricky part is the connection request policy in NPS, IMO17:34
AccentureDanyeah its a pain lmao17:36
AccentureDanokay so design question17:36
AccentureDanback to NPS17:36
nowenok17:36
AccentureDani set the client as my external IP for the VPN, got that17:36
AccentureDanthe remote radius server is WiKID17:36
AccentureDanshould i set the internal IP address of WiKID or external?17:36
nowenwait - what do you mean by 'client'?17:36
AccentureDanokay in NPS when you set up a VPN you set up both a client and a server...normally my RADIUS server would be my domain controller to proxy AD credential auth requests, but i have it set up as my WiKID server to proxy OTP requests17:38
AccentureDanthe RADIUS client i have set as my external IP for my VPN17:38
AccentureDanto service VPN requests17:38
AccentureDandoes that sound correct?17:38
nowenon NPS, the VPN should be the client and WiKID the Server17:38
AccentureDanfantastic17:38
AccentureDangot that down then17:38
AccentureDanjust one quick question17:38
AccentureDani just added another card with an external address to the WiKID server instead of NATting because of the way I have it set up, ease of use basically...would i set up the RADIUS server with the external or internal IP address of the WiKID server?17:39
nowenNPS is your radius server.  It would be a Network Client on WiKID, using it's internal IP address17:40
AccentureDanfantastic17:40
AccentureDanone sec17:40
AccentureDanokay so theoretically this seems to all be set up correctly17:41
AccentureDanjust want to go over one last thing before I test17:41
nowenok17:41
nowenso, when you test, run 'tcpdump -v port radius' on the WiKID server17:48
nowenit will show you if your radius requests are getting from NPS to WiKID17:49
AccentureDannothing getting to WiKID17:55
AccentureDanhave it listening and no radius requests received17:56
nowenanything in the Windows event log?17:56
AccentureDanlet me check one sec17:56
AccentureDanyep got a remote access errort17:57
AccentureDanone sec17:57
AccentureDanthe user wikid\newuser1 has connected and failed to authenticate oon port VPN3-12717:57
nowenis the Remote-RADIUS-to-Windows-User-Mapping set to True?17:58
AccentureDanwikid is my test domain's name17:58
AccentureDannope i was just about to ask about that work around17:58
AccentureDancan you forward me the link to set that up?17:58
nowenhttp://www.wikidsystems.com/support/wikid-support-center/how-to/how-to-add-two-factor-authentication-to-nps is what we have17:58
AccentureDanthanks man!17:58
nowenyou may get better info from MS17:58
AccentureDanokay still a no go, but got a different error18:04
nowen?18:04
AccentureDanthe user wikid\newuser1 connected from 10.67.x.x but failed an authentication attempt due to the following reason: the connection was prevented because of a policy on your RAS/VPN server18:06
nowenthat's kinda helpful actually!18:06
AccentureDanSpecifically, the authentication method used by the authentication server...blah blah blah18:07
AccentureDanhahahaha18:07
AccentureDanyay!18:07
AccentureDanany idea?18:12
nowenyour connection request policy isn't allowing it to pass to auth18:12
nowendo you see the last image on our nps page?18:12
AccentureDansorry im back18:22
AccentureDanyup18:22
AccentureDani just set that up18:22
nowenthat Route to WiKID basically limits request to anytime18:22
AccentureDanlet me restart RRAS18:22
AccentureDanokay good news18:29
AccentureDani am getting RADIUS stuff in tcpdump18:29
nowenok!18:29
AccentureDanbad news, still not authenticating18:29
AccentureDan;-)18:29
nowenis the user enabled?18:29
AccentureDanso im assuming the username is wrong18:29
AccentureDanlet me check18:29
nowenwell that could be it.  the username needs to be the same in WiKID and NPS/AD18:30
AccentureDanokay lemme check18:32
AccentureDanokay i enabled the user, that was wrong, and made sure it matched as a user who is enabled with dial-in permissions in AD18:34
AccentureDanshould i be putting the domain before the username?18:34
nowenI don't think so.18:35
nowenif you run that tcpdump command with -vvv you might see what name is coming through18:35
nowenif not, do this: 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-requests18:35
AccentureDanokay it is passing what i enter, wikid\newuser118:42
AccentureDanlet me try newuser1 instead18:42
AccentureDanokay still getting a policy error18:43
AccentureDani dont have any network policies or health policies in place, at ALL...all i have is the route to wikid18:44
nowenand that's the error in Event logger?18:44
AccentureDanwell i am getting a warning and error18:45
AccentureDanthe same warning as i typed above, but now i get this error18:45
AccentureDan"The following error occurred in the Point to Point Protocol module: VPN-12718:46
AccentureDanThe connection was prevented because of a policy on your RAS/VPN server18:47
AccentureDanmight have been there before, just figured i would add it18:47
AccentureDanin my VPN connection settings should i be forcing a certain setting?18:47
AccentureDanfor the client that is18:47
AccentureDanthe VPN settings within the client18:47
nowendo you get that same error if you login with the domainname/username?18:48
AccentureDanyup same exact error and warning18:48
nowenis the user getting auth'd by WiKID?18:49
AccentureDanshould i enable debugging to figure that out or would that be listed in tcpdump?18:50
nowenyou have to enable debugging18:54
AccentureDanokay i checked with the example.jsp and it is accepting the OTPs from the client18:57
AccentureDanshould i enable debugging?18:57
AccentureDannot sure if that works or not18:57
nowenyes. it will show you much data18:57
AccentureDanokay let me enable debugging then18:57
AccentureDansame one as the link you sent me?18:57
nowenyes18:58
AccentureDanokay one sec18:58
AccentureDanhm where are these logs?19:00
AccentureDani found a few spots19:00
AccentureDando i configure these within a file?19:00
nowenok - in the WiKIDAdmin, top right cornter19:00
AccentureDanohhhhhhhhhh i see19:00
nowenweb ui19:00
AccentureDani was in terminal hahahaha19:00
nowen;-)19:01
AccentureDanokay set to debug and all that jazz19:02
AccentureDanshould i restart the server or start another authentication request?19:03
nowenok - start by getting an otp19:03
AccentureDanokay one sec19:03
AccentureDangot one19:03
AccentureDanshould i check the logs?19:04
nowenyes19:04
nowenyou should see the otp getting delivered19:04
nowennow try to login, then refrest19:04
AccentureDanokay i see a bunch of stuff one sec19:06
AccentureDanyep i see issued passcode to device19:06
AccentureDanawesome let me try and VPN in19:06
AccentureDanokay what should i be looking for here19:09
AccentureDani let the VPN connect and it failed again19:09
AccentureDanjust trying to filter through the logs19:09
nowendo you see log data after the OTP delivery?19:09
AccentureDanyup19:10
nowena rejection or success?19:10
AccentureDanlots of BasicResourcePool and NewProxyConnection yellow boxes19:10
AccentureDanif that is right19:10
AccentureDanall yellow boxes after the passcode was sent to me19:10
AccentureDanno gray ones19:11
nowennothing from com.wikidsystems.radius.log.DBSvrLogImpl19:11
nowendo you have the Log Level set to debug?19:12
AccentureDanyeah man have that added in there and set to debug19:14
AccentureDanbut nothing coming out of it19:14
AccentureDani created it just like i was supposed to19:14
nowenit's not all javascripty either, you have to set it and hit filter again19:14
AccentureDanohhh ok19:14
AccentureDanweird19:15
AccentureDannot showing up in the log list19:15
AccentureDaneven though i hit apply changes19:16
AccentureDando i have to do something for it to show up in the log list?19:16
AccentureDanthe log drop down that is\19:16
nowendoes tcpdump show the connection coming in?19:16
AccentureDanyep shows it is coming in19:20
AccentureDani get a bunch of stuff in the logs of tcpdump19:20
AccentureDanshowing it is passing the credentials in to WiKID it looks like19:21
AccentureDani just dont know how to read it19:21
nowendid you add com.wikidsystems.radius.log.DBSvrLogImpl and set it to debug?19:21
AccentureDanyup19:22
AccentureDanthing is, it is in the list of logs to debug19:22
AccentureDanbut when i go to the drop-down for filtering it doesnt show up19:22
nowenhm19:23
nowenok - go to the Configure Loggers page19:23
nowendo  you see com.wikidsystems.radius.log.DBSvrLogImpl listed?19:24
AccentureDanyes sir!19:27
nowenand it's set to debug?19:27
AccentureDanyup19:28
nowenrun 'service iptables stop' and try to login again19:29
nowenyou should see something like User-Name (1), Length: 7, Data: [nowen], 0x6E6F77656E Acct-Session-Id (44), Length: 18, Data: [1378323787N15dhy], 0x313337383332333738374E3135646879 NAS-IP-Address (4), Length: 6, Data: [IP 127.0.0.1], 0x7F000001 NAS-Identifier (32), Length: 11, Data: [Localhost], 0x4C6F63616C686F7374 NAS-Port (5), Length: 6, Data: [# 0], 0x00000000 Calling-Station-Id (31), Length: 12, Data: [1115551212], 0x313131353519:31
nowenhere is what I see on tcpdump: http://pastebin.com/Ey6Lq8tF19:46
nowenand my logs look like http://pastebin.com/zVzmnfKM19:46
AccentureDansorry about that im back20:15
AccentureDanchecking out your stuff20:15
nowen0o20:15
nowenok20:15
AccentureDanmy tcpdump is 10 times longer20:16
AccentureDanit receives 12 packets20:16
AccentureDanfriggin weird20:16
AccentureDando you want to see the logs?20:16
nowenyes20:17
AccentureDanokay good news20:20
AccentureDanrestart the wikid service and that log i created is showing up20:20
nowenok20:20
AccentureDanlet me try and VPN in and see if it shows something20:20
AccentureDangetting somewhere!20:22
AccentureDanlogs show i was accepted20:22
AccentureDanbut i am failing MS-CHAP authentication20:22
AccentureDanokay so i just typed in NewUser1 and the OTP20:24
AccentureDanand it said access granted20:24
nowenin WiKID?20:24
AccentureDanbut i get the VPN window popping up saying windows could not connect using the current username and password, try again20:24
AccentureDanyep in WiKID it works, grants me access20:24
AccentureDanbut then it seems like Windows AD cannot auth me20:24
nowencheck the Windows event logs20:24
AccentureDanokay one sec20:25
AccentureDansame friggin policy error20:25
AccentureDanerrrrrrrrrrrrrrrrrrr20:25
AccentureDanso it gets through to the WiKID, once it is does with WiKID what does it do?20:25
nowenWiKID sends it back to NPS20:26
AccentureDanhmmmm20:26
AccentureDanso that last part is where we are snagging20:27
AccentureDanhey what time are you going to be on for?20:29
AccentureDani am going to grab some lunch real quick, give my eyes a break, been glued to this screen all day20:29
nowenuntil about 6ish easter20:29
AccentureDanfantastic20:29
noweneastern20:29
AccentureDanill be back around 515ish your time20:29
nowenok20:29
AccentureDanthanks again for all of your help man...all this time and effort once it works will get thrown to my boss for approval, your efforts wont go wasted for free ;-)20:30
nowennp20:30
nowenlol20:30
AccentureDanbrb ma man20:30
AccentureDanalrighty im back21:22
nowenok21:22
AccentureDanso i was thinking, with regards to NPS21:22
AccentureDanit uses the connection policy to allow a connection, but does there need to be a network policy in place to allow authentication?21:23
AccentureDanthere were two native ones that came with NPS but were disabled by default, i usually just delete them21:23
nowensounds reasonable21:24
AccentureDanokay going to do some research21:25
AccentureDanone sec21:25
AccentureDanwhat information is being sent back to NPS?21:37
AccentureDanit doesnt require any password authentication from AD right?21:37
nowenno,21:37
AccentureDanokay21:37
nowennps should get the Access-Accept21:37
AccentureDanso the only thing it is authenticating is the username from AD?21:37
nowenand go with it21:37
AccentureDanokay i kind of figured21:38
nowenyes - but technically that is authorization - not authn21:38
AccentureDani think if no network policy is defined in NPS it just defaults to allow, im going to check21:38
AccentureDanyep got cha21:38
AccentureDanin order for the AD auth to work, does NPS have to reside on that server?21:44
nowenI don't think so.21:44
AccentureDani normally put NPS on my DCs as recommended, but i did not this time because of experimentation from last project i was working on21:44
AccentureDanokay one sec21:44
nowenbut I really don't know21:44
AccentureDanits okay i think i know what the problem was21:45
AccentureDannevermind, wasnt it21:50
nowenrats21:50
AccentureDani think its getting lost21:50
nowenwhat is the error again?21:51
AccentureDanmy AD is on my domain controller, but my VPN is not on my domain...i added it to DNS where it wasnt before, dur21:51
AccentureDanforgot how i had it set up21:51
AccentureDanim just getting the username and password problem, i think its trying to authenticate on the VPN box21:51
AccentureDani might have to add another server route so it knows to send the second request to authorize the username to the domain controller from the VPN box21:52
nowenhm21:56
nowenwhat do you have under Network Policies?22:05
nowendo you have Ignore User Dial-in Properties as true?22:05
AccentureDannope never set that up22:09
nowentry that22:09
AccentureDanokay one sec22:09
AccentureDanwhere is this located?22:11
AccentureDanokay so i moved NPS to my domain controller for authentication purposes, just as a trial22:14
AccentureDanbear with me22:14
nowenok - unde Network Policy Server > policies > Network Policies, I have a policy called   Restrict Access22:15
nowenthe conditions are windows groups, Remote Access Group22:15
nowenunder constraints, I have ms-chap2and ms-chap22:16
*** nowen has quit (Remote host closed the connection)22:16
*** nowen (~nowen@50-194-249-124-static.hfc.comcastbusiness.net) has joined #wikid22:28
nowenmy X server crashed22:28
nowennow on a back computer22:28
nowenAccentureDan: can we pick this up tomorrow?22:36
nowenok - I gotta go.22:39
*** nowen has quit (Quit: Leaving.)22:39
*** AccentureDan has quit (Ping timeout: 250 seconds)23:36

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