Link to home
Start Free TrialLog in
Avatar of Bakersville
BakersvilleFlag 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

SOLUTION
Avatar of firefoxchris
firefoxchris

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 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
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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?
Avatar of firefoxchris
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.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
i see, thank you both for your help, i'll give it a go and let you know how i get on

thnaks agian
Thank you again. Got it working at last.