« Previous Next »

Answered Thread: Unknown user name or bad password - IWAM account from development PC not able to access Network Share

Last post 11-04-2009 12:13 PM by tomkmvp. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 11-02-2009, 10:21 AM

    • danweb
    • Not Ranked
    • Joined on 11-02-2009, 3:08 PM
    • Posts 3

    Unknown user name or bad password - IWAM account from development PC not able to access Network Share

    Hi all,

    My first post on here, and I've had a search for similar but unfortunately can't find anything that points me in the right direction, so please go easy on me!

    My scenario;

    I am dabbling with PHP and this is the reason for me doing this on my own development PC (Windows XP SP3) rather than the main server. The PHP is all working okay, so I think we can ignore that aspect. This problem seems to be an authentication problem.

    I am unable to access my Foxpro tables that are shared out from our main server (SBS 2003), I am using ODBC and this is working fine for running other applications.

    When I try to query a table the error I get returned is [Microsoft][ODBC Visual FoxPro Driver]File 'table.dbf' does not exist.

    When I look on the server in the event log I can see the following;

    Event Type: Failure Audit
    Event Source: Security
    Event Category: Logon/Logoff
    Event ID: 529
    Date:  02/11/2009
    Time:  10:31:57
    User:  NT AUTHORITY\SYSTEM
    Computer: DOMAIN_CONTROLLER
    Description:
    Logon Failure:
      Reason:  Unknown user name or bad password
      User Name: IWAM_MYPC
      Domain:  MYPC
      Logon Type: 3
      Logon Process: NtLmSsp
      Authentication Package: NTLM
      Workstation Name: MYPC

    So I have sussed that it is something to do with the anonymous access on IIS on my development PC, and I have tried a few known good username/password combinations, but cannot seem to get around this.

    Can anyone point me in the right direction please? As I guess if I was to do similar and setup a Web Server on a separate box I would get the same issue?

  • 11-02-2009, 11:23 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,254
    • IIS MVPs

    Answered Re: Unknown user name or bad password - IWAM account from development PC not able to access Network Share

    What's happening is IIS is using the account IWAM_MYPC to go over the network and try to access your database on the server.  What you can do is create an identical account on the server (same username and password, change your local IWAM account password to something known to you), and then give that server IWAM account NTFS modify permissions to the folder that contains your database.

  • 11-03-2009, 3:44 AM In reply to

    • danweb
    • Not Ranked
    • Joined on 11-02-2009, 3:08 PM
    • Posts 3

    Re: Unknown user name or bad password - IWAM account from development PC not able to access Network Share

    Thanks Tom,

    I did already try that, but there may have been something I missed because when I used the script to check the local password after I had changed it, it hadn't changed.

    I also unfortunately stopped another local website working in the process :( but as I cannot get that going now anyway I may as well have another crack at this.

    I'll try it and report back.

    Thanks

    Dan

  • 11-04-2009, 4:54 AM In reply to

    • danweb
    • Not Ranked
    • Joined on 11-02-2009, 3:08 PM
    • Posts 3

    Re: Unknown user name or bad password - IWAM account from development PC not able to access Network Share

    Yes that has worked! Thanks Tom

    I did it a little differently though, rather than go through the hassle of changing my local IWAM username, I just found out what it was and created an account on the server for IWAM_MYPC and set the password as the one I had retrieved.

    For reference I found the following site helpful;

    http://johnnynine.com/blog/HowToGetTheIUSRAndIWAMAccountPasswordsSetInIIS.aspx

  • 11-04-2009, 12:13 PM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,254
    • IIS MVPs

    Re: Unknown user name or bad password - IWAM account from development PC not able to access Network Share

Page 1 of 1 (5 items)
Microsoft Communities