Im running the latest verion of the forum. I'm using NT-autentifacation and been using the loginnames (ex "jonsm") as user names. To make it a bit more personal i thought we'd use our real names instead (ex "John Smith").
When I changed the user names of the users the moderating function stoped working. If I change back, moderation works again. I tried to register a new member with a user name containing spacing - same result. When setting that users name to same as the account name - moderation worked again...
Strange yeah?
Moderators in this forum seem to be able to contain spaces in their user names. This suggests that this would be NT-autentifacation related right?
Is it a known fact that the user namne must be the same as the account name for moderation to work?
Strange is that if a make a user administrator instead of moderator this user gets to see all the admin realated icons... and if i make him a moderator - no extra icons appear... Unless i set the user name to match the account name of course.. :)
I think, but could be wrong here, that it might have something to do with spaces in the name. it seems to me that i had a problem with NT groups a while back that had spaces in the names. if this is indeed the case I'll need to make some changes to my code to support spaces in names. when i get to working on this part i'll let you know what i come up with.
quote:Is it a known fact that the user namne must be the same as the account name for moderation to work?
I've not played with NT Authentication at all, but to me it would seem logical that the Forum User Name must match the NT Username as its the NT Username credentials that are being used to validate the users permissions.
I'm not sure I understand that last post Kal Corp ;-)
This is probably how it is supposed to work: Normal login (snitz user DB): User rights are set to the "User Name". User Name is the only unique identifyer. Upon login, rights are checked on that User Name and access is given.
NT Login (IIS Auth + Snitz DB): User rights are set to "Account name" - the name authenticated by IIS. Forum uses only Account Name for user identification, User Name is displayed within forum posts as usual. Upon lohin user rights are checked on the Account Name and access is given. In this method the "User Name" is only used to show who made a post an so on. No rights or access control is based on it, these functions use "Account Name" instead.
But. It seemes that the function used to check whether a moderator gets to see his/hers moderation icons or not still uses the "User Name" instead of the "Account Name" when in NT-login mode. When the two login names match it works since the forum won't see the difference between account name and the user name at that moment. But when the two names differ no moderation icon will show up. So I thought perhaps someone by misstake set the permissions to User Name instead of Account Name in this particular matter.
This is just my quick guess how this is supposed to work and I might be wrong, and probably are :)
Does anyone know which file contains the check of user rights when logging in?