Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Newbie question How to get a SAM (NT4) profile using System.DirectoryServices

Reply
Thread Tools

Newbie question How to get a SAM (NT4) profile using System.DirectoryServices

 
 
Homer J. Simpson
Guest
Posts: n/a
 
      11-04-2003
Hi there,

I'd like to get a full SAM user's profile, while connecting to my Intranet
Site.
Authentication mode is set to Windows(Integrated) and i'm actually playing
with System.DirectoryServices to query the SAM

My question is : Is there a way to get a full user profile (ie :fistname,
lastname, phone, ...) WITHOUT knowing the user's password.
As you may guess, the only known information to me is given by
Request.ServerVariables("AUTH_USER")
Should i access the SAM with an adminsitator ID and pwd to do this ?
Where to begin ?
Any help would be appreciated.

Thanks in advance,
Regards
--
.................................................. ...................
Homer J. Simpson
Duff Valuable Professionnal - Donuts & Onion Rings Certified
.................................................. ...................


 
Reply With Quote
 
 
 
 
Steve Jansen
Guest
Posts: n/a
 
      11-06-2003
I would check out references about using ADSI to query the NT4 SAM.

That information will describe the schema and permissions for the
"Winnt://" directory service moniker that you need to use the
System.DirectoryServices classes.

VBScript ADSI code might look like this:

Dim User
Set User = GetObject("WinNT://" & strDomain & "/" & strUser & ",user")
Response.Write User.Fullname


Homer J. Simpson wrote:

> Hi there,
>
> I'd like to get a full SAM user's profile, while connecting to my Intranet
> Site.
> Authentication mode is set to Windows(Integrated) and i'm actually playing
> with System.DirectoryServices to query the SAM
>
> My question is : Is there a way to get a full user profile (ie :fistname,
> lastname, phone, ...) WITHOUT knowing the user's password.
> As you may guess, the only known information to me is given by
> Request.ServerVariables("AUTH_USER")
> Should i access the SAM with an adminsitator ID and pwd to do this ?
> Where to begin ?
> Any help would be appreciated.
>
> Thanks in advance,
> Regards


 
Reply With Quote
 
 
 
 
Homer J. Simpson
Guest
Posts: n/a
 
      11-08-2003
Steve, Thanks for your answer.
I'll check it ASAP.
Regards,
J.Philippe
"Steve Jansen" <stj3571-> a écrit dans le message de news:
...
> I would check out references about using ADSI to query the NT4 SAM.
>
> That information will describe the schema and permissions for the
> "Winnt://" directory service moniker that you need to use the
> System.DirectoryServices classes.
>
> VBScript ADSI code might look like this:
>
> Dim User
> Set User = GetObject("WinNT://" & strDomain & "/" & strUser & ",user")
> Response.Write User.Fullname
>
>
> Homer J. Simpson wrote:
>
> > Hi there,
> >
> > I'd like to get a full SAM user's profile, while connecting to my

Intranet
> > Site.
> > Authentication mode is set to Windows(Integrated) and i'm actually

playing
> > with System.DirectoryServices to query the SAM
> >
> > My question is : Is there a way to get a full user profile (ie

:fistname,
> > lastname, phone, ...) WITHOUT knowing the user's password.
> > As you may guess, the only known information to me is given by
> > Request.ServerVariables("AUTH_USER")
> > Should i access the SAM with an adminsitator ID and pwd to do this ?
> > Where to begin ?
> > Any help would be appreciated.
> >
> > Thanks in advance,
> > Regards

>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Ask Sam question miket@aol.com Computer Support 1 02-29-2008 02:06 PM
Want to profile monitor for Fuji Frontier ICC profile? Lynn Digital Photography 9 09-08-2005 12:17 PM
Java Web Start app icons keep going in user profile not All Users profile Brad Java 1 07-19-2005 02:10 AM
Back to the Future Trilogy DVD set at Sam's question... ChopTop DVD Video 3 03-01-2005 08:11 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57