Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 Explanation on M_USERNAME field
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 17 February 2003 :  12:50:51  Show Profile
In the process of documenting the database for the mod doc, I came upon the M_USERNAME field. I am wondering what it is used for.

I understand the field is used with NT authorization. And it seems to be filled in by the user at registration time. But it seems to play the same role as M_NAME.

Anyone can enlighten me more on the use of this field?

Support Snitz Forums

Rasco
Advanced Member

Germany
3192 Posts

Posted - 17 February 2003 :  13:18:20  Show Profile  Send Rasco an ICQ Message
Maybe a little help:

http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=38117

German Snitz Forum
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 17 February 2003 :  15:08:36  Show Profile
Thanks Rasco. That helped a bit.

But still not seeing why we store the username in M_USERNAME instead of M_NAME when using NT authorization. I'll look through the code some more to see if I can find an answer to that.

Support Snitz Forums
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 17 February 2003 :  15:10:20  Show Profile  Send ruirib a Yahoo! Message
From a quick look at the NT authentication functions, looks like M_NAME and M_USERNAME are both filled in and associated with the user. M_USERNAME seems to be the Windows username, and M_NAME is the forum user name. I guess this allows users in a NT authenticated forum to have forum usernames different from their NT usernames. That makes sense to me.


Snitz 3.4 Readme | Like the support? Support Snitz too

Edited by - ruirib on 17 February 2003 15:11:01
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 17 February 2003 :  15:36:36  Show Profile
Hmmm, so users or admins can see which windows account the user belongs to? What if the account they enter does not exist on the computer the forum is on? I don't see any check for the M_USERNAME to check if the account exists on the network.

It wouldn't make much point if the account name they enter isn't accurate.

Support Snitz Forums
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 17 February 2003 :  16:03:06  Show Profile
the M_USERNAME field is not a user entered field. the value is retrieved using the NTAuthenticate() sub in inc_func_common.asp
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 17 February 2003 :  16:52:55  Show Profile  Send ruirib a Yahoo! Message
quote:
Originally posted by Davio

It wouldn't make much point if the account name they enter isn't accurate.


For the reason Richard posted, you'll understand that it cannot be innacurate. The function gets it from Windows. Of course, if the Windows logged in user is not the correct one, the value would be erroneous, but that wouldn't make much sense anyway...


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 18 February 2003 :  02:08:44  Show Profile
Ok, I got it now. I decided since I am using XP Pro I would turn on nt authorization and see how it works.

Thanks guys.

Support Snitz Forums
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 18 February 2003 :  04:47:43  Show Profile  Send ruirib a Yahoo! Message
You're welcome.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07