Wednesday, 2011-01-05

*** nowen (~nowen@adsl-176-210-205.asm.bellsouth.net) has joined #wikid15:48
*** Troy (4738e7bb@gateway/web/freenode/ip.71.56.231.187) has joined #wikid20:40
TroyHi there... we are implementing WikID enterprise in our company and I had a quick question about the AD self-registration via ADRegister.jsp20:45
nowenok20:45
nowenit's nick, btw.  ;)20:47
Troyis there anyway to use a different AD attribute than the userprincipalname20:47
TroyHi Nick.. my name is Troy from Sanmina-SCI..20:47
nowenI figured.  We don't get too many Troys :)20:47
TroyI know you've worked with Yelena and Craig before.. thanks for all your help..20:48
nowennp20:48
Troyour uPN is first.last and we need the users to be first_last in WikID to match our Google / Simplesamlphp20:49
nowenahh20:49
Troyof course we could probably manually register the user.. but I was hoping to use the self registration20:50
nowenyou need the jsp page to convert first.last to first_last?  or can the users do that?20:51
nowenthe latter is a lot easier, of course20:51
Troyif we could use another attribute such as sAMAccountname or one of our extensionAttributes20:52
nowenare those in AD?20:52
nowenyou could also just do this in php if you prefer20:53
Troyi'm not sure.. if they can authenicate first_last on the .jsp page then it would store the WikID userid correctly..20:53
nowenhmm, yes20:55
Troyone sec.. brb20:55
nowenk20:55
Troysorry.. yes we have first_last started in AD in a few attributes such as the sAMAaccountname and one of our extensionAttributes21:04
Troyit's not a huge issue since we are only starting with around 20 or so users.. but i just thought it would be easier and more secure to use the AD registration21:05
nowendefinitely21:05
TroyI'll run some tests with Yelena today and tomorrow and get back to you..21:06
nowenhave you seen our php code? I assume so..21:07
nowenwould all the usernames be changed from first.last to first_last?21:07
Troyyes... all users21:08
Troyi will take a look21:08
nowenwe'll look at it too.  I think changing the name in the jsp might not be too difficult. If you'll are php devs, though, it might just as good if you did it.21:09
noweneach time you update the rpm, the ADRegister page would get written over21:09
Troyok21:09
nowenof course, you can probably just rename the page21:10
Troyyes.. that's what I was thinking21:11
nowenhold on - someone is checking on it21:11
Troyok21:12
nowenok - got something for you to test21:19
nowenI haven't tested it21:20
nowenChange line 107 in ADRegister.jsp from:21:20
Troyok.. we can do it..21:20
nowensession.setAttribute("authenticated_user", userid);21:20
nowento:21:20
nowensession.setAttribute("authenticated_user", userid.replaceAll("\\.","_"));21:20
Troyok.. i will try this.. thanks!21:21
nowenfingers crossed..21:21
*** Troy has quit (Ping timeout: 265 seconds)21:25
*** Troy (4738e7bb@gateway/web/freenode/ip.71.56.231.187) has joined #wikid21:44
TroyThanks Nick.. that worked great21:44
nowengreat!21:44
Troyuser authenicates with first.last then it stores the user as first_last in the WikID user store21:45
nowenif you change the name of the file, you'll have to change the form action too, fyi21:45
Troyok.. yes.. kept the same name and backed up the original..21:46
*** nowen has quit (Quit: Leaving.)22:47
*** Troy has quit (Ping timeout: 265 seconds)22:55

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