Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Active directory user cannot create new account
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Active directory user cannot create new account

 Post Reply Post Reply Page  12>
Author
msnyder View Drop Down
Newbie
Newbie


Joined: 16 April 2008
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote msnyder Quote  Post ReplyReply Direct Link To This Post Topic: Active directory user cannot create new account
    Posted: 22 April 2008 at 8:32pm
Ok so this is basically just happening on one physical computer. If this user logs in on a different machine everything works perfectly. But from his machine if he tries to go to the forums he gets this error. I have tried clearing his temp files, cookies, etc and it continues to happen. Any ideas anyone?
 
Server Error in Forum Application
An error has occurred while writing to the database.
Please contact the forum administrator.

Support Error Code:- err_SQLServer_windowsAuthentication()_add_new_user
File Name:- functions_windows_authentication.asp

Error details:-
Microsoft OLE DB Provider for SQL Server
Cannot insert duplicate key row in object 'tblAuthor' with unique index 'Username'.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 23 April 2008 at 8:10am
I'm wondering if this could be a case issue that the username is in a different case to that stored in the database and so can not match up the user to an account and therefore attempts to add the user as a new user, but fails as the username is already in the database.
Back to Top
msnyder View Drop Down
Newbie
Newbie


Joined: 16 April 2008
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote msnyder Quote  Post ReplyReply Direct Link To This Post Posted: 23 April 2008 at 1:55pm
I did check the database to see if the user was already in there and he is. I am assuming this is because he logged on from a different workstation. But his username should be the same on any workstation he logs in on as its all active directory. I am still unable to resolve this but am somewhat happy that it is only happening to my co-worker!
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 23 April 2008 at 5:46pm
I would be interested to get to the bottom of this to findout why and if necessary make adjustments to the code.

If you edit the file functions/functions_windows_authentication.asp and place the following code at line 82:-

Response.Write(strAuthenticatedUser)

This will the display the users login name at the top of the page. If you then could try login in as this person from both locations and see if there is a difference in their usersname.

Once you have done this remove the code.
Back to Top
msnyder View Drop Down
Newbie
Newbie


Joined: 16 April 2008
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote msnyder Quote  Post ReplyReply Direct Link To This Post Posted: 23 April 2008 at 6:12pm
Very interesting. When he goes to the site from his computer it logs his username as "Domain B\administrator", but when he logs in from any other computer it logs it as "Domain A\jsmith"
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 23 April 2008 at 7:13pm
It could be that he is logging in as the domain administrator rather than under his own username.
Back to Top
msnyder View Drop Down
Newbie
Newbie


Joined: 16 April 2008
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote msnyder Quote  Post ReplyReply Direct Link To This Post Posted: 23 April 2008 at 8:00pm
Well the Domain B account is definetely a domain admin account. But why it is trying to login as that I do not understand. He is absolutely logged into his machine as Domain A\jsmith. How would it be trying to login as domain B\administrator?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 23 April 2008 at 9:13pm
Web Wiz Forums just reads from the server the account the user is logged in under to browse the web site.

If for some reason the account that the user uses from that machine is the admin account to view the web site then this is what is read in from the server.
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.