Tuesday, 2014-04-08

Satheesh_https://103.251.108.50/wikid/GSSO?SAMLRequest=fVLJTsMwEL0j8Q%2BR781SIYSsJqi0qqhUIKKBAzfXmcQGL8HjtPD3uGkr4ACST%2BM3b5mZyfWHVtEWHEprcpLFKYnAcFtL0%2BbkqVqMrsh1cX42QaZVR6e9F%2BYR3ntAH4VOg3T4yEnvDLUMJVLDNCD1nK6ndys6jlPaOestt4pEy3lOWFuDsBtohGi51tLoDRev1tRCSCU6tqmbxnBZk%2Bj5ZGu8t7VE7GFp0DPjQynNLkZpeFdVmtI0o9nlC4nKo9KNNIcE%2F9naHEBIb6uqHJUP62og2Moa3H1A56S1tlUQc6v38iVDlNtQbphCINEUEZwPBmfWYK%2FBrcFtJYenx1VOhPcd0iTZ7XbxN03CksYB1FYLxt9iaRLGkRTDd00:01
nowenok - works for me00:03
nowendoes it not work for you?00:03
Satheesh_no00:04
Satheesh_is it redirecting back to google?00:04
nowenI'm not logging in00:04
Satheesh_yup00:04
nowencan you try it in a different browser00:04
Satheesh_I get wikid login page00:05
nowenok00:05
nowenthat;s good00:05
Satheesh_after entering token it is not redirecting back to google00:05
nowenis the authentication successful?00:05
Satheesh_looks like it is not validating the credentials00:05
nowenis the user enabled?00:06
Satheesh_irrespective of what ever value I give it throws out the same error00:06
Satheesh_"page not found"00:06
Satheesh_https://103.251.108.50/wikid/GoogleSSOServlet00:06
Satheesh_that is the URL00:06
Satheesh_"error URL"00:06
nowenmost likely you need to get another saml token00:09
Satheesh_sorry I did not get that00:10
nowenIf i give you a reg code, can you register my token?00:10
Satheesh_ok00:11
nowen7AZK4y1o00:11
nowenyou can give me a name like deleteme00:12
Satheesh_It is Nick00:13
nowenok00:14
nowenhmm - yep. I see00:15
nowenon the network clients page, what do you have as the ACS url?00:18
nowenit should be https://www.google.com/a/103.251.108.50/acs00:19
Satheesh_https://www.google.com/a/freedomhack.in/acs00:19
nowenthat's probably the issue00:21
Satheesh_what it should be?00:22
nowen https://www.google.com/a/103.251.108.50/acs00:22
Satheesh_should I have to restart the server after change?00:22
Satheesh_I meant service00:22
nowenI don't think so00:23
Satheesh_it did not work00:23
Satheesh_I tried after your comment00:23
Satheesh_changed00:23
Satheesh_you can try00:23
nowengive it a restart00:23
Satheesh_ok00:24
Satheesh_let me restart the service00:24
nowenI wonder if it needs to be a dns entry00:24
Satheesh_nope no change00:27
Satheesh_it is same00:27
nowenodd. it is working for me00:29
nowenwhat's the google apps domain?  freedomhack.in?00:29
Satheesh_yep00:30
nowenit is setup for google apps and mail?00:30
Satheesh_yep00:31
Satheesh_is it redirecting back to google?00:31
nowenhmm - google saml uses 44300:31
nowenyes, I get to the email login page00:31
Satheesh_strange00:32
Satheesh_Y it is not for me00:32
nowenyou downloaded the cert from the Network Client page and uploaded it gApps?00:33
Satheesh_yes00:34
nowendo you have "Use a domain specific issuer " checked?00:38
Satheesh_no00:38
nowentry it with that checked00:38
Satheesh_no it is same00:41
Satheesh_but how come you could access the page not in my system00:41
nowenwell, let's review the way mine is setup00:41
nowenon google sso. my sign in url is00:41
nowenhttps://ec2-54-83-42-36.compute-1.amazonaws.com/wikid/GSSO/00:41
nowenmy network client has ip address of 127.0.0.1 and google protocol00:42
nowenmy ACS url is https://www.google.com/a/jointradio.com/acs00:42
nowenwhen you created the network client, did you use the freedomhack.in url?00:47
Satheesh_yes00:47
nowenis 443 open to the outside?00:49
nowenoutbound, that is00:51
Satheesh_yes00:53
Satheesh_I have put DNS name in signin URL00:53
Satheesh_can you check00:54
nowensure00:54
nowenstill nothing00:54
nowenI'm thinking it is the outbound 443 - your server can't respond to google00:54
*** Satheesh__ (6a3300ba@gateway/web/freenode/ip.106.51.0.186) has joined #wikid00:56
Satheesh__is DNS resolution happening?00:56
Satheesh__looks like my session got disconnected00:57
nowenI'm still getting the same error00:57
nowenI'm thinking it is the outbound 443 - your server can't respond to google00:57
Satheesh__@nowen - u there00:57
Satheesh__ok00:57
nowen is 443 open to the outside?00:57
*** Satheesh_ has quit (Ping timeout: 245 seconds)00:58
Satheesh__yes 443 outbound is open00:59
nowenhmm00:59
nowencan your run 'wget https://www.google.com' from the command line?01:00
Satheesh__telnet www.google.com 443 Trying 74.125.236.51... Connected to www.google.com (74.125.236.51). Escape character is '^]'.01:01
nowenhmm01:01
nowenif you look here: https://developers.google.com/google-apps/sso/saml_reference_implementation?csw=1 it looks like we are stuck on 801:02
nowen601:02
nowenI mean01:02
nowenany thing in the WiKIDAdmin logs?01:03
Satheesh__actually log is not working01:04
Satheesh__whatever I change in configuration I don't see log file updated01:04
Satheesh__hope /opt/Wi../log is the directory01:05
nowenno, in the WiKIDAdmin UI01:05
nowentop right corner01:05
nowenmine says "GoogleSSO login succeeded for username nowen with acsURL https://www.google.com/a/jointradio.com/acs"01:08
nowenSatheesh__: do you see anything in the logs?01:13
Satheesh__nope01:15
Satheesh__any specific filter to check?01:15
nowenon the Configure loggers page, you can set com.wikidsystems and com.wikidsystems.server.wAuth to debug01:15
nowenis the log level set to debug?01:16
nowenyou have set it and then hit filter01:16
nowenit's not all javascripty01:16
Satheesh__which logger should be DEBUG?01:16
nowenleave the loggers at None01:17
Satheesh__com.wikidsystems.google.GoogleSSOServlet - I have set that logger to DEBUG01:17
Satheesh__in the logger configuration page01:17
Satheesh__any other specific logger needs to be in debug?01:17
nowenyes com.wikidsystems and com.wikidsystems.server.wAuth01:18
Satheesh__it is set to Debug01:22
Satheesh__no log entries01:22
nowenunder Timestamp, I assume 2 hours?  Level Debug and source None?01:23
Satheesh__yep01:23
Satheesh__I see other log entry01:24
nowenwhat do you see?01:24
Satheesh__nothing specific to sso authentication01:24
Satheesh__com.wikidsystems.server.WikidCode3AES01:24
Satheesh__Passcode request processing successfully completed.01:24
Satheesh__that was the last entry01:24
nowenand which loggers are on debug?01:25
*** Satheesh_ (6a3300ba@gateway/web/freenode/ip.106.51.0.186) has joined #wikid01:28
*** Satheesh__ has quit (Ping timeout: 245 seconds)01:28
*** coolacid has quit (Ping timeout: 265 seconds)01:32
Satheesh_how to go about it01:38
nowenon the logs/configure loggers page01:39
nowenthere's a box of Current Log Filter Levels01:39
nowenset all the com.wikidsystems loggers to debug01:39
nowenSELInux isn't enforcing is it?01:41
Satheesh_SELinux not enforcing01:43
nowenok01:44
*** nowen_phone (~AndChat72@99-174-92-191.lightspeed.tukrga.sbcglobal.net) has joined #wikid01:45
*** coolacid (~CoolAcid@unaffiliated/coolacid) has joined #wikid01:53
Satheesh_there are few other questions01:58
nowenok01:58
Satheesh_lets park the sso issue for sometime now01:59
nowenok01:59
Satheesh_is Domain configurable only with IP?01:59
Satheesh_I meant the DomainIdentifier01:59
nowenmostly  - we can create  a dns entry in wikidsystems.net and you can use that01:59
Satheesh_the reason for that I want to implement 2factor across regions02:00
Satheesh_and with replication I want to point user to respective location based on proximity02:00
Satheesh_using Global DNS02:00
Satheesh_how does the DNS entry works?02:01
nowenit does not do what you want it to do.  it just points the dns entry to your ip02:02
nowenhow many users will you have/02:02
Satheesh_so I can register the token clients with DNS entry instead of IP?02:02
Satheesh_we are around 800 users02:02
nowenno.  your domain identifier would still be the number02:03
nowenI think that level of replication would be over kill02:03
Satheesh_hmm what is the max replication factor02:03
nowenwell, currently we have a master/secondary replication02:04
nowen each request is typically 300 bytes or so.  6 digits encrpyted02:05
Satheesh_if domain identifier can only be number then I have to point all users to 1 IP02:06
Satheesh_is that correct?02:06
Satheesh_irrespective where they are02:06
nowenyes.02:06
nowenbut we have customers with 10 times that number of users across the globe02:10
Satheesh_ok02:10
Satheesh_do they point to 1 server?02:10
nowenyes, then they have replicant ready to take over02:11
Satheesh_hmm is it hot standby?02:11
nowenessentially, they script the failover02:11
Satheesh_ok02:12
Satheesh_hm next is how to disable account registration from external02:13
Satheesh_Actually 2Factor is for VPN02:13
nowenif you can't do that via the firewall, I can tell you how to do it in tomcat02:13
Satheesh_yes I would need that02:14
nowenok - it's 10pm here, so maybe not tonight02:14
Satheesh_ok np02:15
Satheesh_send that when you get time02:15
nowenwill do02:15
Satheesh_also I would like to know how to handle SSO error02:15
nowenyeah. me too02:15
Satheesh_ok. ping me if you get to know the solution02:16
nowencan we do a google hangout tomorrow to revew?02:16
Satheesh_sure02:16
nowenI think screen sharing is the next step02:16
Satheesh_we can do that02:16
Satheesh_ok take rest then. Mail me when we can connect02:17
nowenok02:17
nowengood night02:17
Satheesh_then we shall do screen sharing02:17
Satheesh_good night to you too02:17
*** nowen has quit (Quit: Leaving.)02:17
*** Satheesh_ has quit (Ping timeout: 245 seconds)02:24
*** nowen_phone has quit (Quit: Bye)03:20
*** coolacid has quit (*.net *.split)10:03
*** coolacid (~CoolAcid@unaffiliated/coolacid) has joined #wikid10:04
*** Rudy6 (~Rudy6@213.132.115.194) has joined #wikid11:29
*** nowen (~nowen@99-174-92-191.lightspeed.tukrga.sbcglobal.net) has joined #wikid13:28
*** Rudy6 has quit (Remote host closed the connection)14:00
*** Troy (329b98a8@gateway/web/freenode/ip.50.155.152.168) has joined #wikid14:41
*** Ajay-Utilyx (55852b1d@gateway/web/freenode/ip.85.133.43.29) has joined #wikid14:46
Ajay-Utilyxhello Nick14:46
nowenHi Ajay14:46
Ajay-Utilyxhow you doing?14:47
nowenGood, how are you?14:47
Ajay-Utilyxok the issuw i was talking about is... i already registered my self on domain with one of my device14:47
Ajay-Utilyxand now i have two devices issued to myself and need my second device to be able to use wikid two factor14:48
Ajay-Utilyxand when i am registering my second device i was getting that error message shared with you in email14:48
nowenyes, this is possible, but it must be done through the API.  Thus the use of the example.jsp, which shows all the functions of the API14:49
Ajay-Utilyxand if i have more than one user who have more than one or two devices and want all of there devices two use two factor authentication then do i need toedit this file for each and every user or something else?14:54
nowenno - once it is edited, you can use it again and again14:55
nowenalso, have you looked at ADRegister at all?14:55
nowenhttp://www.wikidsystems.com/support/wikid-support-center/installation-how-tos/how-to-let-users-add-themselves-using-ad-credentials?searchterm=adregister14:55
nowenit allows users to add themselves after logging in with their AD creds14:55
Ajay-Utilyxhmm14:56
Ajay-Utilyxi will look into this now14:56
Ajay-Utilyxgive me some time14:56
nowenok14:57
TroyHi Nick16:14
nowenhi Troy16:14
Troydoes the root user have to start or restart wikid after updating wikid using the RPMs??16:15
nowenhmm, it shouldn't16:16
Troyi started as the wikid user.. but I think that was a mistake.. i keep seeing the webapp folders reset back too root:wikid16:16
nowenhmm16:16
nowenit should have chown'd them to wikid16:17
Troyhmmm. hold on. i'll get them change back and restart wikid again16:17
nowenBTW, I'm supposed to go give blood in about 30 mins, Ajay-Utilyx, Troy16:22
TroyI keep getting  "The requested page could not be found. "on the lab server where i created the new inter and localhost certificates16:22
Troybut only on a few of the WiKID admin pages16:22
Troylike create or edit new domain16:22
nowenwhat's in /opt/WiKID/tomcat/webapps?16:22
nowenhuh? you mean there is an index page, but not some others?16:23
Troyyea.. strange.. i'm able to login to admin page and get to most of the pages, but a few come back with the error16:24
Troyseems like a permission issue to me16:24
Troyeven the wikid/ADRegister/ADRegister.jsp comes back with page not found.. but I know it's there16:25
nowenwhat are the perms on /var/lib/pgsql/data?16:26
Troypostgres:postgres16:28
nowenok16:28
Troynot an emergency.. go give blood and i'll investigate the logs / perms16:29
nowenok16:29
nowenAjay-Utilyx: are you ok?16:29
TroyFYI.. on the other lab server, i upgrade to b1545 and i'm able to see the pages fine16:29
nowenhmm16:29
Troyonly difference is the new certificates were not created16:30
nowenhmm16:31
nowenany errors in the WiKIDAdmin logs or /opt/WiKID/tomcat/logs/catalina.err?16:39
nowenok - I'm out for about an hour, unless they suck me dry16:43
*** nowen has quit (Quit: Leaving.)16:44
*** nowen (~nowen@172.56.20.53) has joined #wikid17:58
*** nowen1 (~nowen@50-194-249-125-static.hfc.comcastbusiness.net) has joined #wikid18:02
*** nowen has quit (Client Quit)18:02
*** nowen1 is now known as nowen18:04
nowenany progress, Ajay-Utilyx?18:17
nowenor Troy?18:17
*** Ajay-Utilyx has quit (Quit: Page closed)18:18
Troyhave any blood left?18:30
nowena bit18:30
Troythe problem is tomcat scratchdir unusable18:30
nowenwhat is  scratchdir?18:30
Troyi have no idea why. but tomcat creates .jsp pages in /opt/WiKID/tomcat/work/Catalina/localhost18:32
nowenthe work dir is the cache, basically18:33
Troyopt/WiKID/tomcat/work/Catalina/localhost/WiKIDAdmin/org/apache/jsp18:33
nowentry  stopping the server and delete everything in that dir18:33
Troyyes.. i compared the lab systems we upgrade to production.. and only a few files are in the lab systems18:33
Troyok18:33
Troynow I can't get the wikid admin login page to display :(18:39
nowenIs there something funky with the networking? like the hostname?18:39
Troynothing changed on the network side.. just the root user ran the wikid upgrade18:41
Troyrpm -Uvh wikid-..18:41
Troyrpm -Uvh wikid-utilities..18:42
nowenand is there anything in catalina.out or .err?18:42
Troyand I had the root user change the permission of the /opt/WiKID back to wikid.. since it changed back to root after the RPM update18:42
Troyi will check.. i need to run pickup my daughter from pre-school.. i'll be back in 45 min18:43
nowenok18:43
Troyi'm back19:36
TroyNick, I sent you the catalina.err19:36
nowenhmm - what are the perms on that log file?19:37
Troyjava.io.FileNotFoundException: /opt/WiKID/tomcat/work/Catalina/localhost/_/SESSIONS.ser (No such file or directory)19:39
Troyi see that in the catalina.out19:39
Troyperms are wikid:wikid for all files in tomcat/logs19:39
Troywhen root user upgraded wikid and wikid utilities via RPMs, the perms changed to root for most of /opt/WiKID to root19:41
nowenhmm19:42
Troytomcat seemed to get hosed up when when I started wikid as the wikid user19:42
Troymaybe the root user needs to start wikid first time to compete the setup19:43
Troybut I'm just guessing at this point19:43
nowenthat could be - or re-run setup19:43
Troydo you think I should I try re-running the setup as the root user or wikid?19:44
TroyI believe I did run setup again as wikid19:44
Troyis there a way I can re-install or re-build wikid without touching the db?19:52
Troyi did run a backup of the db before the upgrade19:52
nowenI'm spinning up some new 1216 images19:53
Troyok19:54
nowenit looks like /opt/WiKID/sbin/setup_wikid_user.sh is only run on install, not upgrade20:17
nowenbut when I ran it, it starts, but I still get som chown errors20:18
nowenactually, I get the errors when i su - wikid20:18
Troyok20:20
nowendo you get any errors on su'ing to wikid?20:20
nowenor on login20:21
Troylet me check20:23
Troyno.. but I do remember getting some errors when I logged in after updating the secondary lab server20:25
Troyi don't get them now when I login to either20:25
nowenwant to run that command and see if it does the trick?20:26
Troysure20:26
Troysure I run that while wikid is up and running or stopped?20:28
Troyshould20:28
nowenI would say stopped20:28
Troyok20:28
Troygot a bunch of permission errors20:31
Troyand wikid is not able to sudo that script20:31
nowenso, did you run it as root?20:32
nowenor can you?20:32
Troyno.. sorry.. i'll have to get another guy to run it as root.. one min20:34
Troyuseradd: user wikid exists usermod: unknown group sudo Changing password for user wikid.20:46
Troyasked to change the password next20:47
nowenyeah, sounds like it is assuming the user doesn't exist.  most likely does a check for it20:49
Troydoes the wikid user need permission to run the scripts in /bin and /sbin as root?20:50
nowenI think so20:52
nowenI would also think that however you had it set up before would still work20:54
nowenwhat do you'll have in sudoers for the wikid user?21:10
Troyok.. i'll check that21:22
Troysorry for the delay.. got a million things going on today21:23
nowennp21:23
Troydid you hear about that openssl heartbleed vulnerability http://heartbleed.com/ ?21:25
nowenyes21:26
nowenwe don't use openssl. just java21:26
Troywe are scrambling to update all that21:26
nowenoh21:26
nowensorry to hear21:26
nowenand it's XP day too21:26
Troyyes.. never a dull moment21:26
Troyso i'm going to pick this back up in the morning.. i know it's getting late for you21:27
nowenok21:27
nowenIf you can let me know the specifics for the user wikid, I can test that better21:27
Troyok.. i'll get that sent to you in an e-mail soon21:27
nowencool21:28
nowenok - heading home21:38
*** nowen has quit (Quit: Leaving.)21:38
*** Troy has quit (Quit: Page closed)22:06
*** nowen (~nowen@99-174-92-191.lightspeed.tukrga.sbcglobal.net) has joined #wikid22:09
*** Satheesh (6a3300ba@gateway/web/freenode/ip.106.51.0.186) has joined #wikid23:28
SatheeshHey Nick23:28

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