IIS 7 and Above
Please Help. How To Add New User with Windows Authentication
Last post Nov 15, 2017 07:07 AM by Yuk Ding
Nov 12, 2017 11:41 PM|abrogard|LINK
I did it so long ago and only ever the once that now I've forgot.
I have IIS on win10 and there's three users allowed in via windows authentication.
now I want to add another one and I can't remember how to do it.
I have added a new virtual directory.
I can add a new 'case' in the index.php file that sorts out the users once they're in.
But I can't find the file/s that checks or lists the passwords for them.
I better recover that knowledge whether or not I add another user I guess..... at the very least...
Edit: Haven't done it yet but I think I know: I just need to set up a user as normal. that user and those passwords are all it uses, right?
I'd delete the question if i could.
Just another example of me demonstrating my lack of thinking abiliity.... sorry....
Nov 13, 2017 02:17 AM|Yuk Ding|LINK
The windows authentication means windows integrated authentication. So if you need to add new user for windows authentication, you only need to create new user in computer management and set the permission for the authenticated user. IIS check the user and
password from it. If the username is not working, then you could try to add the domain name like mydomain\myusername.
Nov 13, 2017 10:23 AM|abrogard|LINK
Yes, I realised that shortly after posting the question - but then it was too late.
I'e done that and it's all good.
I've got another question:
I am trying to display an image from another directory. That is a directory that is not below the virtual directory.
See what I mean?
I am in the virtual directory assigned to this new user. It has an index.html file. And that file references an image in a directory elsewhere.
It is in a directory called 'webcamimage' which is on the same disk as this virtual directory and one down from the root.
<img src="/WEBCAMIMAGE/image.jpg" alt="HTML5 Icon" style="width:128px;height:128px;">
It doesn't show. the command is wrong. what must I do to make it right?
Edit: I think I've worked that out, too. I created another virtual directory to /WEBCAMIMAGE and called it 'webcam' and now I have the command <img src="/webcam/image.jpg' etc... and it works.
You can't reference any file that is not part of a virtual directory structure - would that be right?
Nov 14, 2017 06:21 AM|Yuk Ding|LINK
It seems to be an HTML format issue. I test the physical path under the website root path and virtual directory to the external path, they all could be used as the source link. However, it seems that I can't reference an external folder without a virtual
directory. I think maybe it is unavailable to use a folder that is not part of a virtual directory structure directly even I grant read/write permission for IUSR to access the image. Secondly, I think it is also not a good idea to expose the file structure
by using physical path directly.
Nov 14, 2017 09:36 AM|abrogard|LINK
Yep. Thanks for checking.
Nov 15, 2017 07:07 AM|Yuk Ding|LINK
It will be appreciated if you could mark this thread as answer.