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 7 5218
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
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*********@di scussions.micro soft.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
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*********@di scussions.micro soft.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
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.comp any.com/DC=domainname,D C=company,DC=co m";
String adPath =
"LDAP://domainname.comp any.com/ou=active,ou=co mpany.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*********@di scussions.micro soft.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
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.c om and i'd help u sort that out.
Enjoy
Patrick
"Sync Walantaji" <no****@nospam. com> wrote in message
news:2s******** *************** *********@4ax.c om... 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.comp any.com/DC=domainname,D C=company,DC=co m";
String adPath = "LDAP://domainname.comp any.com/ou=active,ou=co mpany.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*********@di scussions.micro soft.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
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.c om 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.comp any.com/DC=domainname,D C=company,DC=co m";
String adPath = "LDAP://domainname.comp any.com/ou=active,ou=co mpany.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*********@di scussions.micro soft.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 >>
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.c om 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.comp any.com/DC=domainname,D C=company,DC=co m";
String adPath = "LDAP://domainname.comp any.com/ou=active,ou=co mpany.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*********@di scussions.micro soft.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 >>
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 have a few applications that need to authenticate via
AD from PHP and every example I see uses the LDAP functions built into
PHP.
I cannot query our AD server via LDAP. If I type
ldap://domaincontroller it fails, so of course, when I try to use...
|
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 is correct, but it can't authenticate. If i try
other user created in the AD, it work just fine!!!
<------------------------------------------------------------------------------------------------------------->
< ...
|
by: Ram |
last post by:
How to Authenticate NDS server using C#
|
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!
|
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 script will
continue to run otherwise it will stop. Below you will find my code
I've programmed until now, at this moment I've got one big problem:
my script stops at the line:
Set oRootDSE = GetObject("LDAP://RootDSE")
Why is this GetObject...
| |
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 domains.
Sample Here
http://support.microsoft.com/default.aspx?scid=kb;en-us;279815
Article ID : 279815
|
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 on the
internet. It's like nobody has ever needed to do this.
I already did it in a ColdFusion page and I'm amazed at how incredibly
easy it was using the CFLDAP tag. I would have thought that a task like
this would have been equally easy in...
|
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 will open the necessary ports).
So, I have a simple login page with username and password, and then I will
authenticate that credentials entered against their AD server. I am having a
real hard time figuring this out. We can't use Windows Forms...
|
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 DomainB. WebA has a link that takes the users to login page of WebB.
If the a user is authenticated by WebA in DomainA, when he/she goes to WebB,
is there any way WebB accepts authentication without forces the user to login
again?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |