*** nowen (~nowen@adsl-176-210-205.asm.bellsouth.net) has joined #wikid | 15:48 | |
*** Troy (4738e7bb@gateway/web/freenode/ip.71.56.231.187) has joined #wikid | 20:40 | |
Troy | Hi there... we are implementing WikID enterprise in our company and I had a quick question about the AD self-registration via ADRegister.jsp | 20:45 |
---|---|---|
nowen | ok | 20:45 |
nowen | it's nick, btw. ;) | 20:47 |
Troy | is there anyway to use a different AD attribute than the userprincipalname | 20:47 |
Troy | Hi Nick.. my name is Troy from Sanmina-SCI.. | 20:47 |
nowen | I figured. We don't get too many Troys :) | 20:47 |
Troy | I know you've worked with Yelena and Craig before.. thanks for all your help.. | 20:48 |
nowen | np | 20:48 |
Troy | our uPN is first.last and we need the users to be first_last in WikID to match our Google / Simplesamlphp | 20:49 |
nowen | ahh | 20:49 |
Troy | of course we could probably manually register the user.. but I was hoping to use the self registration | 20:50 |
nowen | you need the jsp page to convert first.last to first_last? or can the users do that? | 20:51 |
nowen | the latter is a lot easier, of course | 20:51 |
Troy | if we could use another attribute such as sAMAccountname or one of our extensionAttributes | 20:52 |
nowen | are those in AD? | 20:52 |
nowen | you could also just do this in php if you prefer | 20:53 |
Troy | i'm not sure.. if they can authenicate first_last on the .jsp page then it would store the WikID userid correctly.. | 20:53 |
nowen | hmm, yes | 20:55 |
Troy | one sec.. brb | 20:55 |
nowen | k | 20:55 |
Troy | sorry.. yes we have first_last started in AD in a few attributes such as the sAMAaccountname and one of our extensionAttributes | 21:04 |
Troy | it'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 registration | 21:05 |
nowen | definitely | 21:05 |
Troy | I'll run some tests with Yelena today and tomorrow and get back to you.. | 21:06 |
nowen | have you seen our php code? I assume so.. | 21:07 |
nowen | would all the usernames be changed from first.last to first_last? | 21:07 |
Troy | yes... all users | 21:08 |
Troy | i will take a look | 21:08 |
nowen | we'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 |
nowen | each time you update the rpm, the ADRegister page would get written over | 21:09 |
Troy | ok | 21:09 |
nowen | of course, you can probably just rename the page | 21:10 |
Troy | yes.. that's what I was thinking | 21:11 |
nowen | hold on - someone is checking on it | 21:11 |
Troy | ok | 21:12 |
nowen | ok - got something for you to test | 21:19 |
nowen | I haven't tested it | 21:20 |
nowen | Change line 107 in ADRegister.jsp from: | 21:20 |
Troy | ok.. we can do it.. | 21:20 |
nowen | session.setAttribute("authenticated_user", userid); | 21:20 |
nowen | to: | 21:20 |
nowen | session.setAttribute("authenticated_user", userid.replaceAll("\\.","_")); | 21:20 |
Troy | ok.. i will try this.. thanks! | 21:21 |
nowen | fingers crossed.. | 21:21 |
*** Troy has quit (Ping timeout: 265 seconds) | 21:25 | |
*** Troy (4738e7bb@gateway/web/freenode/ip.71.56.231.187) has joined #wikid | 21:44 | |
Troy | Thanks Nick.. that worked great | 21:44 |
nowen | great! | 21:44 |
Troy | user authenicates with first.last then it stores the user as first_last in the WikID user store | 21:45 |
nowen | if you change the name of the file, you'll have to change the form action too, fyi | 21:45 |
Troy | ok.. 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!