Avatar of Bakersville
Bakersville
Flag for United Kingdom of Great Britain and Northern Ireland asked on

find current user details in asp

Hi everyone.

I am currently trying to link my intranet to an DC and user LDAP to log in my users.

I have worked out how to querry AD, but no luck on authenticating them.  what i was planning on doing was, find the current user, then querry LDAP and see if that user assist, if so then let them on, other wise, not let them on.

So, what i am trying to find out, is if this is the best way, how do i find the current user in windows from ASP vbscript or if this is not the best way, then how would i be best doing it.

I hope this makes sense.

Any help would be very much appreciated.

Baker

DatabasesASP

Avatar of undefined
Last Comment
Bakersville

8/22/2022 - Mon
SOLUTION
firefoxchris

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
mwhitworth

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Bakersville

ASKER
thank you for your responses:,

They are all on my network. i tried the above, but it brings nothing back. All i got was an emty entry.

But as i don't need to link to LDAP then, is there another way, ie, look into the wmi or the winmgmts? or is this a slow way of doing things?
SOLUTION
mwhitworth

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Bakersville

ASKER
No, running on the same subnet, 255.255.255.254 ip ranges does differ though from 192.168.1.x to 192.168.0.x

Will that make a difference?
firefoxchris

Im not a networking expert but i think that means they are on a different subnet under the same mask, so i would have thought it would make a difference.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
ASKER CERTIFIED SOLUTION
mwhitworth

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Bakersville

ASKER
i see, thank you both for your help, i'll give it a go and let you know how i get on

thnaks agian
Bakersville

ASKER
Thank you again. Got it working at last.