beckman16 0 Newbie Poster

Currently, in my C# class library, I do use authentication using LDAP, which asks for UserName, Password and the domain-controller name
(currently all three fields ie. username, password and domain-controller name are mendatory).

I want to make login process a bit more flexible, suppose in cases where domain-controller is not present at all(he would leave the domain-controller name field as empty in this case).
So, in such cases, I want to allow all the users of local machine(all those who can log-in into the localhost-machine with administrative privileges) to login into and mark as authenticated for my application.

So, now if user does not provide the domain-controller name, his credentials would be checked against localhost machine-users.