Re: algorithm for incoming network logon



You forgot that by default the guest account is disabled & it is also disabled from accessing over the network. So some nested if statements to check if it is even enabled & if it can even dream of using the network. One other thing is at the deny access depending on the settings it will prompt you for a user name & password, then if you give bad credentials or don't even try to provide credentials you are denied access. Other then those facts you are really close to the truth. I'm not 100% sure I covered everything though.

peter wrote:
This is what I believe to be the logon algorithm for incoming network connection. Please correct or add anything missing.
if (user has existing credentials) then
use existing credentials
else
if (simple file sharing is OFF and username exists locally) then
if (password matches) then
login as username
else
deny access
endif
else // simple file sharing is ON, or username does not exists
if (guest account exist) then
login as username with guest's access priviledges
else
deny access
endif
endif
endif

--

Don't pay malware vendors - boycott Sony & Symantec for helping them

Please do not contact me directly or ask me to contact you directly for assistance.

If your question is worth asking, it's worth posting.

If it’s not worth posting you should have done a search on http://www.google.com/ http://www.google.com/grphp?hl=en&tab=wg&q= or http://news.google.com/froogle?hl=en&tab=nf&ned=us&q= before wasting our time.

If I sound hostile or arrogant you need to read the following before posting a question "How To Ask Questions The Smart Way" at http://www.catb.org/~esr/faqs/smart-questions.html (The site I've linked to just has this article I think people should read before posting a technical question.)
.