473,406 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Authenticate users using AD and LDAP

Hi,
I would like to write a asp.net winform program to authenticate users
on Active Directory.

Can I do this with asp.net if the IIS server is not part of the Active
directory domain?

Is there a working example link that you can point me to?

Thanks
--
sync
Nov 18 '05 #1
7 5194
Are u interested in forms or in Windows Auth?
Look at this at:-
http://support.microsoft.com/default...;EN-US;Q316748
GDLUCK!
"Sync Walantaji" wrote:
Hi,
I would like to write a asp.net winform program to authenticate users
on Active Directory.

Can I do this with asp.net if the IIS server is not part of the Active
directory domain?

Is there a working example link that you can point me to?

Thanks
--
sync

Nov 18 '05 #2
I'm confused by the IIS setup.
It says you need to put in a domain account.
Does this means any domain account that can login to the domain will
work as an IIS account?

On Mon, 15 Nov 2004 17:15:02 -0800, "Patrick.O.Ige"
<Pa*********@discussions.microsoft.com> wrote:
Are u interested in forms or in Windows Auth?
Look at this at:-
http://support.microsoft.com/default...;EN-US;Q316748
GDLUCK!
"Sync Walantaji" wrote:
Hi,
I would like to write a asp.net winform program to authenticate users
on Active Directory.

Can I do this with asp.net if the IIS server is not part of the Active
directory domain?

Is there a working example link that you can point me to?

Thanks
--
sync


Nov 18 '05 #3
Yep..
Yes so far u have a domain and the users have accts in the domain it will
work!
U just have to pass the LDAP path of ur domain.
Just make sure that in IIS the virtual directory where ur application
resides has the
Anonymous Access clicked or forms Auth won't work.
[its under the directory Security tab ]
Enjoy..
Patrick

"Sync Walantaji" wrote:
I'm confused by the IIS setup.
It says you need to put in a domain account.
Does this means any domain account that can login to the domain will
work as an IIS account?

On Mon, 15 Nov 2004 17:15:02 -0800, "Patrick.O.Ige"
<Pa*********@discussions.microsoft.com> wrote:
Are u interested in forms or in Windows Auth?
Look at this at:-
http://support.microsoft.com/default...;EN-US;Q316748
GDLUCK!
"Sync Walantaji" wrote:
Hi,
I would like to write a asp.net winform program to authenticate users
on Active Directory.

Can I do this with asp.net if the IIS server is not part of the Active
directory domain?

Is there a working example link that you can point me to?

Thanks
--
sync


Nov 18 '05 #4
I'm getting the following errors while submitting the form:

1.Error authenticating. Error authenticating user.
A referral was returned from the server
2.Error authenticating. Error obtaining group names. The specified
domain either does not exist or could not be contacted

What's the correct syntax to replace this?:
String adPath = "LDAP://DC=..,DC=..";
//Path to you LDAP directory server

I tried
String adPath =
"LDAP://domainname.company.com/DC=domainname,DC=company,DC=com";

String adPath =
"LDAP://domainname.company.com/ou=active,ou=company.com";

Basically No clue.
I can see the program is contacting Domain controller and is using
kerberros because tcp ports is active....
I have tried using this code on two different domains. One I created
myself, one from company central AD. Neither works.
I can logon to domain shares without any problem, so I know the
username and password is good on both domain.

Can someone help to teach me to debug this?


On Mon, 15 Nov 2004 17:15:02 -0800, "Patrick.O.Ige"
<Pa*********@discussions.microsoft.com> wrote:
Are u interested in forms or in Windows Auth?
Look at this at:-
http://support.microsoft.com/default...;EN-US;Q316748
GDLUCK!
"Sync Walantaji" wrote:
Hi,
I would like to write a asp.net winform program to authenticate users
on Active Directory.

Can I do this with asp.net if the IIS server is not part of the Active
directory domain?

Is there a working example link that you can point me to?

Thanks
--
sync


Nov 18 '05 #5
Hi Sync,
Actually the form Auth on the msdn never worked completely for me
too!But ur LDAP should be like
this :-String adPath =LDAP://code.com.au/DC=code,DC=com,DC=au
'm not quiet sure now bcos i'm out of the office on the road.
What i noticed in the code is that i could never get group Names.
So my advice is comment out the function code that is meant to get the
GROUPS and 'm sure u would authenticate!
If not mail me to am*****@yahoo.com and i'd help u sort that out.
Enjoy
Patrick


"Sync Walantaji" <no****@nospam.com> wrote in message
news:2s********************************@4ax.com...
I'm getting the following errors while submitting the form:

1.Error authenticating. Error authenticating user.
A referral was returned from the server
2.Error authenticating. Error obtaining group names. The specified
domain either does not exist or could not be contacted

What's the correct syntax to replace this?:
String adPath = "LDAP://DC=..,DC=..";
//Path to you LDAP directory server

I tried
String adPath =
"LDAP://domainname.company.com/DC=domainname,DC=company,DC=com";

String adPath =
"LDAP://domainname.company.com/ou=active,ou=company.com";

Basically No clue.
I can see the program is contacting Domain controller and is using
kerberros because tcp ports is active....
I have tried using this code on two different domains. One I created
myself, one from company central AD. Neither works.
I can logon to domain shares without any problem, so I know the
username and password is good on both domain.

Can someone help to teach me to debug this?


On Mon, 15 Nov 2004 17:15:02 -0800, "Patrick.O.Ige"
<Pa*********@discussions.microsoft.com> wrote:
Are u interested in forms or in Windows Auth?
Look at this at:-
http://support.microsoft.com/default...;EN-US;Q316748
GDLUCK!
"Sync Walantaji" wrote:
Hi,
I would like to write a asp.net winform program to authenticate users
on Active Directory.

Can I do this with asp.net if the IIS server is not part of the Active
directory domain?

Is there a working example link that you can point me to?

Thanks
--
sync

Nov 18 '05 #6
Ok, it's working except the group thing...
Thanks

On Tue, 16 Nov 2004 22:01:06 +1100, "Patrick.O.Ige"
<pa********@acn.waw.pl> wrote:
Hi Sync,
Actually the form Auth on the msdn never worked completely for me
too!But ur LDAP should be like
this :-String adPath =LDAP://code.com.au/DC=code,DC=com,DC=au
'm not quiet sure now bcos i'm out of the office on the road.
What i noticed in the code is that i could never get group Names.
So my advice is comment out the function code that is meant to get the
GROUPS and 'm sure u would authenticate!
If not mail me to am*****@yahoo.com and i'd help u sort that out.
Enjoy
Patrick


"Sync Walantaji" <no****@nospam.com> wrote in message
news:2s********************************@4ax.com.. .
I'm getting the following errors while submitting the form:

1.Error authenticating. Error authenticating user.
A referral was returned from the server
2.Error authenticating. Error obtaining group names. The specified
domain either does not exist or could not be contacted

What's the correct syntax to replace this?:
String adPath = "LDAP://DC=..,DC=..";
//Path to you LDAP directory server

I tried
String adPath =
"LDAP://domainname.company.com/DC=domainname,DC=company,DC=com";

String adPath =
"LDAP://domainname.company.com/ou=active,ou=company.com";

Basically No clue.
I can see the program is contacting Domain controller and is using
kerberros because tcp ports is active....
I have tried using this code on two different domains. One I created
myself, one from company central AD. Neither works.
I can logon to domain shares without any problem, so I know the
username and password is good on both domain.

Can someone help to teach me to debug this?


On Mon, 15 Nov 2004 17:15:02 -0800, "Patrick.O.Ige"
<Pa*********@discussions.microsoft.com> wrote:
>Are u interested in forms or in Windows Auth?
>Look at this at:-
>http://support.microsoft.com/default...;EN-US;Q316748
>GDLUCK!
>
>
>"Sync Walantaji" wrote:
>
>> Hi,
>> I would like to write a asp.net winform program to authenticate users
>> on Active Directory.
>>
>> Can I do this with asp.net if the IIS server is not part of the Active
>> directory domain?
>>
>> Is there a working example link that you can point me to?
>>
>> Thanks
>> --
>> sync
>>


Nov 18 '05 #7
Good its working...
If you are interested in getting the groups let me know!
Enjoy!
Patrick

"Sync Walantaji" wrote:
Ok, it's working except the group thing...
Thanks

On Tue, 16 Nov 2004 22:01:06 +1100, "Patrick.O.Ige"
<pa********@acn.waw.pl> wrote:
Hi Sync,
Actually the form Auth on the msdn never worked completely for me
too!But ur LDAP should be like
this :-String adPath =LDAP://code.com.au/DC=code,DC=com,DC=au
'm not quiet sure now bcos i'm out of the office on the road.
What i noticed in the code is that i could never get group Names.
So my advice is comment out the function code that is meant to get the
GROUPS and 'm sure u would authenticate!
If not mail me to am*****@yahoo.com and i'd help u sort that out.
Enjoy
Patrick


"Sync Walantaji" <no****@nospam.com> wrote in message
news:2s********************************@4ax.com.. .
I'm getting the following errors while submitting the form:

1.Error authenticating. Error authenticating user.
A referral was returned from the server
2.Error authenticating. Error obtaining group names. The specified
domain either does not exist or could not be contacted

What's the correct syntax to replace this?:
String adPath = "LDAP://DC=..,DC=..";
//Path to you LDAP directory server

I tried
String adPath =
"LDAP://domainname.company.com/DC=domainname,DC=company,DC=com";

String adPath =
"LDAP://domainname.company.com/ou=active,ou=company.com";

Basically No clue.
I can see the program is contacting Domain controller and is using
kerberros because tcp ports is active....
I have tried using this code on two different domains. One I created
myself, one from company central AD. Neither works.
I can logon to domain shares without any problem, so I know the
username and password is good on both domain.

Can someone help to teach me to debug this?


On Mon, 15 Nov 2004 17:15:02 -0800, "Patrick.O.Ige"
<Pa*********@discussions.microsoft.com> wrote:

>Are u interested in forms or in Windows Auth?
>Look at this at:-
>http://support.microsoft.com/default...;EN-US;Q316748
>GDLUCK!
>
>
>"Sync Walantaji" wrote:
>
>> Hi,
>> I would like to write a asp.net winform program to authenticate users
>> on Active Directory.
>>
>> Can I do this with asp.net if the IIS server is not part of the Active
>> directory domain?
>>
>> Is there a working example link that you can point me to?
>>
>> Thanks
>> --
>> sync
>>


Nov 18 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Bonegavel | last post by:
Going to sound strange, but here i go. We use Windows 2000 AD for everything. However, we are also running XAMPP (basically Apache, MySQL, PHP for windows) on a Windows box for our Intranet. I...
0
by: Renato Neves | last post by:
The following code is working fine, i can create the user in the Active Directory and "enable" it. My problem is that, when i'm trying to authenticate him, i can't get to work!! The user and pass...
3
by: Ram | last post by:
How to Authenticate NDS server using C#
3
by: GC | last post by:
I'm looking to build a web app that authenticates against my current active directory. Anyone have any examples on how to do this? Thanks!
1
by: Joeri KUMBRUCK | last post by:
Hello, I'm trying to create an ASP page where users can type in a username and password, and these credential should be checked with active directory. If username and password are correct, the...
0
by: B111Gates | last post by:
OK I know this is a complex question so I will break it up. I know that SSPI is the prefered method of authentication, however if I use the sample provide by MS I cannot authenticate across...
2
by: gabriel.salama | last post by:
I am desperately trying to create a login page in ASP.NET in which a user can be authenticated against a Domino Directory but for the life of me, I cannot even find anything remotely close to this...
4
by: Jon | last post by:
I am modifying an app for a customer in ASP.Net 1.1. The app is running on a server outside their network, yet they want to authenticate users against their internal active directory set up (they...
1
by: =?Utf-8?B?SklNLkgu?= | last post by:
Authenticate users over domains If there are two unrelated domains; DomainA, DomainB; and both run LDAP. WebA is a web application runs in DomainA and WebB a different application runs on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.