#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2003
    Posts
    4
    Rep Power
    0

    Pass form values to .htaccess or NT Auth


    I'm clear on the method of passing the login id and password on the url, as in:

    http://username:password@domain/path

    The only problem is that the host also requires a domain. That is, the authentication popup asks for id, password, and domain.

    Is it possible to pass the domain value on the url as well?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Apr 2002
    Posts
    693
    Rep Power
    26
    Have you tried domain\username? That's the way it works with network connections.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2003
    Posts
    4
    Rep Power
    0
    That does not seem to work.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Apr 2002
    Posts
    693
    Rep Power
    26
    ok, well set the default in the iis authentication then.

    Properties>Directory Security>Edit>Edit
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2003
    Posts
    4
    Rep Power
    0
    That may not be possible, as this is on a client's hosted site.

    Does anyone know of another solution?
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Apr 2002
    Posts
    693
    Rep Power
    26
    what a hassle. Have you considered using sessions to do authentication instead? I went down the os authentication method but ended up converting it to use sessions.
  12. #7
  13. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2003
    Posts
    4
    Rep Power
    0
    Yes, ordinarily I would use a database/session-based login. I'm just trying to hack a solution where a client wanted a single form that would accept the username and password and redirect to the correct extranet directory. Those directories are already protected by NT authentication.

    Was a good plan and worked in our dev environment...just ran into the domain issue when I tested it on the live server.

IMN logo majestic logo threadwatch logo seochat tools logo