Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Distributed Applications / May 2004

Tip: Looking for answers? Try searching our database.

Authentication against NT4 domain

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Z D - 20 May 2004 17:27 GMT
Hello,

I was wondering how I would go about writing some code that would be able to
authenticate a user atainst a Domain Controller on an old NT4 domain.

The call would be coming from a server or client machine that isn't
necessarily even part of the old NT4 domain.

Is this possible? If so, does anybody have any resources, links, sample
code?  Are there any classes included in the .NET framework that would help
facilitate this?

thanks very much,
-ZD
Nicholas Paldino [.NET/C# MVP] - 20 May 2004 17:48 GMT
ZD,

   I think that the easiest way to do this would be to call the LogonUser
API function.  Assuming that the machine making the call is part of that
domain you want to authenticate against, it shouldn't be a problem.

   Hope this helps.

Signature

              - Nicholas Paldino [.NET/C# MVP]
              - mvp@spam.guard.caspershouse.com

> Hello,
>
[quoted text clipped - 10 lines]
> thanks very much,
> -ZD
Z D - 20 May 2004 18:44 GMT
Hi Nicholas,

Thaks for your reply.

Unfortunately, as I mentioned in my post, the machine that I'll be making
the call from wont necessarily be part of the old NT domain.  This is why I
was wondering if this sort of thing would be possible and how I would go
about doing it...

thanks
-ZD

> ZD,
>
[quoted text clipped - 20 lines]
> > thanks very much,
> > -ZD
Nicholas Paldino [.NET/C# MVP] - 20 May 2004 18:49 GMT
ZD,

   Sorry, I didn't read that correctly.  In this case, you will have to
have something on that domain which can take authentication request.  A web
service comes to mind...

Signature

              - Nicholas Paldino [.NET/C# MVP]
              - mvp@spam.guard.caspershouse.com

> Hi Nicholas,
>
[quoted text clipped - 33 lines]
> > > thanks very much,
> > > -ZD
Z D - 20 May 2004 19:01 GMT
Hi Nicholas,

Thanks again for your reply.

I did some searching and according to this article, the author says that the
"lpszDomain" parameter in the LogonUser API call can be used to specify the
name of a workstation/member server on the network for authentication
purposes.

http://authors.aspalliance.com/bdesmond/ArticleViewer.aspx?ArticleID=2

Is this correct? Or does that only work if the caller is still part of the
domain?

Thanks
-ZD

> ZD,
>
[quoted text clipped - 44 lines]
> > > > thanks very much,
> > > > -ZD
Nicholas Paldino [.NET/C# MVP] - 20 May 2004 19:24 GMT
ZD,

   Forgive me for this whole thread, my brain just isn't working right.
Yes, you can use the lpszDomain parameter to specify the domain.  My
apologies.

Signature

              - Nicholas Paldino [.NET/C# MVP]
              - mvp@spam.guard.caspershouse.com

> Hi Nicholas,
>
[quoted text clipped - 67 lines]
> > > > > thanks very much,
> > > > > -ZD
Daniel Pratt - 20 May 2004 19:42 GMT
> ZD,
>
>     Forgive me for this whole thread, my brain just isn't working right.
> Yes, you can use the lpszDomain parameter to specify the domain.  My
> apologies.

   Don't be to hard on yourself, Nicholas. This sort of thing is bound to
happen every 11,000 posts or so.

Regards,
Daniel
Z D - 24 May 2004 17:38 GMT
Nicholas,

No worries! Thank's for taking the time to respond. I appreciate it very
much.

Thanks again.
-ZD

> ZD,
>
[quoted text clipped - 82 lines]
> > > > > > thanks very much,
> > > > > > -ZD

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.