Author |
Topic  |
|
DJGray
New Member

USA
68 Posts |
Posted - 13 March 2006 : 17:06:13
|
Greetings SNITZers!
I have been scouring the forum code related to login, along with Davio's Single Sign On mod, and the more I tried to wrap my mind around what is going on, the more nervous I got because I can't afford to screw this up.
Very soon we will be moving the forums box inside the company domain. At that point we will begin using the NT Authentication.
Company logins are not friendly identifiers. For example, my user ID is US41041. That's pretty meaningless, but that is what my users will need to use to log in. So, once they do, and are authenticated, I want to translate that ID into an actual name. So, as soon as my US41041 is authenticated, I want SNITZ to address me as DJGray.
I can add a field to the DB for this, or I could just have a completely new table to pair up IDs with names. In fact I already have access to a corporate DB which will do this for me, but can't find the spot in the forums code to say "A" = "B" so that it is persistent throughout the application.
Anyone familiar enough with the login code who could point me to it, I'd really appreciate that tip!
< Moved to MOD Add-On Forum (W/O Code) by Shaggy /> |
Edited by - Shaggy on 14 March 2006 10:45:48 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 14 March 2006 : 06:59:53
|
Quick question while I think on possibilities for this - are you going to be transferring over your existing MEMBERS table with exsiting usernames?
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
 |
|
DJGray
New Member

USA
68 Posts |
Posted - 14 March 2006 : 10:31:54
|
quote: Originally posted by Shaggy
Quick question while I think on possibilities for this - are you going to be transferring over your existing MEMBERS table with exsiting usernames?
Hello Shaggy, and thanks for the quick reply. Good question.
Yesterday afternoon, I opened the FORUM_MEMBERS table and edited my name (DJGray) in the M_NAME field, making it US41041. It accepted this change, and now I am able to log in as that user, and all my posts show up as being posted by US41041. This is what I would expect, and when we add this server box to the Domain, we should be able to authenticate as US41041 against the domain and all will be well.
What I need to do, now, is find where (in topic.asp??) to translate US41041 into DJGray, so that all posts and replies show up as being made by that more recognizable nickname.
Also, I see in the FORUM_MEMBERS table that there is a field named M_USERNAME but it is empty. I'll do a search on the code, but at the moment am curious what that is used for.
=============================
Note: I intended to post this in the General Questions forum. Please feel free to move the topic there if you wish. |
Edited by - DJGray on 14 March 2006 10:34:56 |
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 14 March 2006 : 10:39:27
|
If you can hold off until tomorrow (GMT), when I'll have a wee bit more time, I'll post back with a way of acheiving what you want.
<edit> Hang on! It seems I've overthought this! All you need to do is populate the existing M_USERNAME field with the company login names leaving the M_NAME fields untouched, switch your authentication over to NT and you should be laughing. Give it a whirl with a backup copy of your forum (just in case I'm underthinking it now!) and let me know how you get on. </edit>
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
Edited by - Shaggy on 14 March 2006 10:45:28 |
 |
|
DJGray
New Member

USA
68 Posts |
Posted - 14 March 2006 : 11:25:22
|
Okay, This may be a perfect solution. The box isn't in the domain yet, but I can actually set this scenario up my home domain and verify it that way. Heck, Shaggy, if it is this simple, that's GREAT!! |
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 14 March 2006 : 11:29:39
|
It should be. Never worked with NT authentication but, after a quick scan through the code, it does indeed appear to be that simple In fact, the only difference between NT and DB authentication is that the M_USERNAME field is used when checking a login rather than the M_NAME field.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
 |
|
|
Topic  |
|
|
|