PC Review


Reply
Thread Tools Rate Thread

Authentication against NT4 domain

 
 
Z D
Guest
Posts: n/a
 
      20th May 2004
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


 
Reply With Quote
 
 
 
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      20th May 2004
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.

--
- Nicholas Paldino [.NET/C# MVP]
- (E-Mail Removed)


"Z D" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
Z D
Guest
Posts: n/a
 
      20th May 2004
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


"Nicholas Paldino [.NET/C# MVP]" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
> 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.
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - (E-Mail Removed)
>
>
> "Z D" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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
> >
> >

>
>



 
Reply With Quote
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      20th May 2004
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...


--
- Nicholas Paldino [.NET/C# MVP]
- (E-Mail Removed)

"Z D" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>
> "Nicholas Paldino [.NET/C# MVP]" <(E-Mail Removed)> wrote

in
> message news:(E-Mail Removed)...
> > 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.
> >
> > --
> > - Nicholas Paldino [.NET/C# MVP]
> > - (E-Mail Removed)
> >
> >
> > "Z D" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > 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
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Z D
Guest
Posts: n/a
 
      20th May 2004
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/bdesm...px?ArticleID=2


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

Thanks
-ZD



"Nicholas Paldino [.NET/C# MVP]" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
> 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...
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - (E-Mail Removed)
>
> "Z D" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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
> >
> >
> > "Nicholas Paldino [.NET/C# MVP]" <(E-Mail Removed)> wrote

> in
> > message news:(E-Mail Removed)...
> > > 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.
> > >
> > > --
> > > - Nicholas Paldino [.NET/C# MVP]
> > > - (E-Mail Removed)
> > >
> > >
> > > "Z D" <(E-Mail Removed)> wrote in message
> > > news:(E-Mail Removed)...
> > > > 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
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      20th May 2004
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.


--
- Nicholas Paldino [.NET/C# MVP]
- (E-Mail Removed)

"Z D" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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/bdesm...px?ArticleID=2
>
>
> Is this correct? Or does that only work if the caller is still part of the
> domain?
>
> Thanks
> -ZD
>
>
>
> "Nicholas Paldino [.NET/C# MVP]" <(E-Mail Removed)> wrote

in
> message news:(E-Mail Removed)...
> > 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...
> >
> >
> > --
> > - Nicholas Paldino [.NET/C# MVP]
> > - (E-Mail Removed)
> >
> > "Z D" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > 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
> > >
> > >
> > > "Nicholas Paldino [.NET/C# MVP]" <(E-Mail Removed)>

wrote
> > in
> > > message news:(E-Mail Removed)...
> > > > 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.
> > > >
> > > > --
> > > > - Nicholas Paldino [.NET/C# MVP]
> > > > - (E-Mail Removed)
> > > >
> > > >
> > > > "Z D" <(E-Mail Removed)> wrote in message
> > > > news:(E-Mail Removed)...
> > > > > 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
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Daniel Pratt
Guest
Posts: n/a
 
      20th May 2004

"Nicholas Paldino [.NET/C# MVP]" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
> 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


 
Reply With Quote
 
Z D
Guest
Posts: n/a
 
      24th May 2004
Nicholas,

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

Thanks again.
-ZD


"Nicholas Paldino [.NET/C# MVP]" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
> 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.
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - (E-Mail Removed)
>
> "Z D" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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/bdesm...px?ArticleID=2
> >
> >
> > Is this correct? Or does that only work if the caller is still part of

the
> > domain?
> >
> > Thanks
> > -ZD
> >
> >
> >
> > "Nicholas Paldino [.NET/C# MVP]" <(E-Mail Removed)> wrote

> in
> > message news:(E-Mail Removed)...
> > > 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...
> > >
> > >
> > > --
> > > - Nicholas Paldino [.NET/C# MVP]
> > > - (E-Mail Removed)
> > >
> > > "Z D" <(E-Mail Removed)> wrote in message
> > > news:(E-Mail Removed)...
> > > > 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
> > > >
> > > >
> > > > "Nicholas Paldino [.NET/C# MVP]" <(E-Mail Removed)>

> wrote
> > > in
> > > > message news:(E-Mail Removed)...
> > > > > 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.
> > > > >
> > > > > --
> > > > > - Nicholas Paldino [.NET/C# MVP]
> > > > > - (E-Mail Removed)
> > > > >
> > > > >
> > > > > "Z D" <(E-Mail Removed)> wrote in message
> > > > > news:(E-Mail Removed)...
> > > > > > 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
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
domain member 802.1x authentication in different domain Gerald Vogt Windows XP Networking 0 25th May 2009 09:23 AM
using AD security for authentication. The trust relationship betweenthe primary domain and the trusted domain failed. wildman@noclient.net Microsoft ASP .NET 1 29th Feb 2008 04:01 PM
User authentication in windows 2000 domain failing to second domain controller bjaming@gmail.com Microsoft Windows 2000 3 7th Jan 2006 12:41 AM
RE: Child Domain / Parent Domain Authentication stevta [MSFT] Microsoft Windows 2000 Active Directory 0 8th Oct 2003 04:50 PM
No Domain or Authentication from Domain Controller Dan Kline Microsoft Windows 2000 DNS 2 22nd Aug 2003 02:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:43 PM.