We help IT Professionals succeed at work.

find current user details in asp

Bakersville
Bakersville asked
on
785 Views
Last Modified: 2013-12-24
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

Comment
Watch Question

This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
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?
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
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?
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.
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

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

thnaks agian

Author

Commented:
Thank you again. Got it working at last.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.