Offistart - Virtual Offices, Office Space, Business Support Services
*Home>>>Virtual Offices

Active Directory. How can I get the user id?


Everybody in my office signs on to their computers using an active directory name and password.

Yet on my virtual server (with account on active directory) my .net c# application fails.

I have tried everything. I can't even get their user id using the many different combinations of identity, servervariables etc from LDAP.

Setting windows authentication fails, setting anonymous won't give me their user id with any type of request.

I have tried all of the logical methods and settings in the web.config, impersonate=true, impersonate=false. When I use anonymous login, I can't get any information about them. If I use windows integrated login it fails or a login dialog box pops up requesting username and password.

This is all on an intranet site.

Ironically, my coworker who uses Coldfusion, has no problem getting information from LDAP and detecting userid.

What could be wrong?

It's been awhile since I have scripted against Active Directory, but when I used to do that I usually coded in VBScript. I think if you write a simple VB Script to talk to AD and it works from your Virtual Server then this will give you the basics of what you need in your C# script and it will let you know if it is possible or not from your Virtual Server. One reason I used VBScript was because there are lots of good examples of VBscript talking to Active Directory on Google plus you can practically cut and paste them and then change a few lines and they will work. So when you get a VBscript to work from your Virtual Server, you will then know what connection parameters are needed. Here are a few examples of VBscript source I found using Google with examples of talking to AD: http://www.computerperformance.co.uk/vbs...
http://www.cruto.com/resources/vbscript/...
http://www.computerperformance.co.uk/vbs...

Tags
  Answering Service   Telephone Answering   Mail Forwarding   Virtual Address   Virtual Assistant   Virtual Business   Virtual Offices
Related information
  • IDo you think it's time for a Black President?

    I'm ready for a black president. Just not Condi Rice, as I think she is nothing more than a puppet of Bush and the Republicans. I like Obama. He has been a good senator here in Illinois.

  • I have a problem with my copy of Microsoft Word 2003 (student edition). Can someone provide help?

    You need more memory. Vista needs more memory.

    ...
  • Why do libs avoid President Bush's Accomplishments?

    Great post! Libs quake at the thought of people who do things the right way.

    ...
  • I bought a pirated copy of iWork 06. when i insert the cd, the file is in .EXE file. what should i do?

    Have you tried scanning the .exe with a virus protection program first? If it shows no virus then try the .exe or maybe there is an installer in the actual folder.

    ...
  • Work-place tragedy?

    during the time of sadness everyone can use some support,and sometimes it can come from a total stranger. If u don't feel like going to to funeral, send a card and try to go over to her and gi...

  • Can any body tell me error is this?

    buy a new pc !

    ...
  • Sky.com virus... it just autoinstalled a worm, and ate everything... why?

    Download TROJAN REMOVER from www.simplysup.com. Do a scan and follow the instructions. The prog is free for 30 days.

    ...
  • Mogul or iPhone?

    The answer to your question really comes down to whether you prefer FORM or FUNCTION. And the fact that, without telling anybody, they know which is which in this case, says a lot. It's al...

  •  

    Categories--Copyright/IP Policy--Contact Webmaster