aspx Authenticate against Active Directory

Hi all,

Iam trying to get my web-app to authenticate users against Active Directory. My code is exactly the same as the one Microsoft describes in their knowledge base artice:
KB: 316748 (

The only thing I changed was the value for the LDAP server. I've changed this to:
For some reason I get the following error message after trying to logon:
Error authenticating. Error obtaining group names. Object reference not set to an instance of an object.

I really can't find out why it does this. I have been looking through google news groups, google itself. Is there anyone who could help me out on this??????

My complete source can be downloaded from:

Kind regards and thanks in advance,


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!