473,805 Members | 2,268 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Windows Authentication through Active Directory

Hi there, Please help me..It is urgent
This is Hriday, working on windows authentication with
Active Directory...
My requirment is when a user sends a request to my web
Applicatoin I want to Pop up windows Authentication box so
that user will give his userId, Password & domain name for
authenticaion. After that I want to take these three info
of user and make a search in Active Directory.

I am able to display Win Authentication Pop up by using
Authentication mode="Windows" and in Authrization tag,
deny user="?" and setting Win Integrated authentication in
IIS.

But I am not able to take user's info from Win
Authenication Pop-up Windows..as I used server variable
AUTH_USER and got userId. but when I use AUTH_PASSWORD I
am getting null value...

Can some one tell me how to get password and domain fields
value form Windows Authenticaion Box....

If this is not posible ... how can I make a search without
password and domain..in Active directory ....

I copy my code for retrieving user info form Active
Directory. Please help me..It is urgent.

Public Sub GetUserDetails( ByVal domain As String, ByVal
username As String, ByVal pwd As String)
Dim domainAndUserna me As [String] = domain & "\" &
username

Private path As String
= "LDAP://AD/DC=AD,DC=SOLVER SA,DC=COM"
Dim entry As New DirectoryEntry( path,
domainAndUserna me, pwd)

Try
'Bind to the native AdsObject to force
authentication.
Dim obj As Object = entry.NativeObj ect

Dim search As New DirectorySearch er(entry)

search.Filter = "(SAMAccountNam e=" & username
& ")"
search.Properti esToLoad.Add("c n")
Dim result As SearchResult = search.FindOne( )

'Update the new path to the user in the
directory.
path = result.Path
filterAttribute = CType(result.Pr operties("cn")
(0), String)
fullname = CType(result.Pr operties("cn")( 0),
String)
search.Properti esToLoad.Add("m ail")
Dim resultemail As SearchResult =
search.FindOne( )
email = CType(resultema il.Properties(" mail")
(0), String)

search.Properti esToLoad.Add("M emberOf")
Dim resultgp As SearchResult = search.FindOne( )
groupName = CType(resultgp. Properties
("MemberOf")(0) , String)

Catch ex As Exception
'Throw New Exception("Erro r obtaining user
details. " + ex.Message)
End Try

End Sub 'GetUserDetails
Nov 20 '05 #1
10 4071
Hi Hriday,

I use "IsInRole" to find these pages on MSDN, can you use this as a start
place to check if this can help you?

Cor

This is Hriday, working on windows authentication with
Active Directory...
My requirment is when a user sends a request to my web
Applicatoin I want to Pop up windows Authentication box so
that user will give his userId, Password & domain name for
authenticaion. After that I want to take these three info
of user and make a search in Active Directory.

I am able to display Win Authentication Pop up by using
Authentication mode="Windows" and in Authrization tag,
deny user="?" and setting Win Integrated authentication in
IIS.

But I am not able to take user's info from Win
Authenication Pop-up Windows..as I used server variable
AUTH_USER and got userId. but when I use AUTH_PASSWORD I
am getting null value...

Can some one tell me how to get password and domain fields
value form Windows Authenticaion Box....

If this is not posible ... how can I make a search without
password and domain..in Active directory ....

I copy my code for retrieving user info form Active
Directory. Please help me..It is urgent.

Public Sub GetUserDetails( ByVal domain As String, ByVal
username As String, ByVal pwd As String)
Dim domainAndUserna me As [String] = domain & "\" &
username

Private path As String
= "LDAP://AD/DC=AD,DC=SOLVER SA,DC=COM"
Dim entry As New DirectoryEntry( path,
domainAndUserna me, pwd)

Try
'Bind to the native AdsObject to force
authentication.
Dim obj As Object = entry.NativeObj ect

Dim search As New DirectorySearch er(entry)

search.Filter = "(SAMAccountNam e=" & username
& ")"
search.Properti esToLoad.Add("c n")
Dim result As SearchResult = search.FindOne( )

'Update the new path to the user in the
directory.
path = result.Path
filterAttribute = CType(result.Pr operties("cn")
(0), String)
fullname = CType(result.Pr operties("cn")( 0),
String)
search.Properti esToLoad.Add("m ail")
Dim resultemail As SearchResult =
search.FindOne( )
email = CType(resultema il.Properties(" mail")
(0), String)

search.Properti esToLoad.Add("M emberOf")
Dim resultgp As SearchResult = search.FindOne( )
groupName = CType(resultgp. Properties
("MemberOf")(0) , String)

Catch ex As Exception
'Throw New Exception("Erro r obtaining user
details. " + ex.Message)
End Try

End Sub 'GetUserDetails

Nov 20 '05 #2
Hi Hriday,

I use "IsInRole" to find these pages on MSDN, can you use this as a start
place to check if this can help you?

Cor

This is Hriday, working on windows authentication with
Active Directory...
My requirment is when a user sends a request to my web
Applicatoin I want to Pop up windows Authentication box so
that user will give his userId, Password & domain name for
authenticaion. After that I want to take these three info
of user and make a search in Active Directory.

I am able to display Win Authentication Pop up by using
Authentication mode="Windows" and in Authrization tag,
deny user="?" and setting Win Integrated authentication in
IIS.

But I am not able to take user's info from Win
Authenication Pop-up Windows..as I used server variable
AUTH_USER and got userId. but when I use AUTH_PASSWORD I
am getting null value...

Can some one tell me how to get password and domain fields
value form Windows Authenticaion Box....

If this is not posible ... how can I make a search without
password and domain..in Active directory ....

I copy my code for retrieving user info form Active
Directory. Please help me..It is urgent.

Public Sub GetUserDetails( ByVal domain As String, ByVal
username As String, ByVal pwd As String)
Dim domainAndUserna me As [String] = domain & "\" &
username

Private path As String
= "LDAP://AD/DC=AD,DC=SOLVER SA,DC=COM"
Dim entry As New DirectoryEntry( path,
domainAndUserna me, pwd)

Try
'Bind to the native AdsObject to force
authentication.
Dim obj As Object = entry.NativeObj ect

Dim search As New DirectorySearch er(entry)

search.Filter = "(SAMAccountNam e=" & username
& ")"
search.Properti esToLoad.Add("c n")
Dim result As SearchResult = search.FindOne( )

'Update the new path to the user in the
directory.
path = result.Path
filterAttribute = CType(result.Pr operties("cn")
(0), String)
fullname = CType(result.Pr operties("cn")( 0),
String)
search.Properti esToLoad.Add("m ail")
Dim resultemail As SearchResult =
search.FindOne( )
email = CType(resultema il.Properties(" mail")
(0), String)

search.Properti esToLoad.Add("M emberOf")
Dim resultgp As SearchResult = search.FindOne( )
groupName = CType(resultgp. Properties
("MemberOf")(0) , String)

Catch ex As Exception
'Throw New Exception("Erro r obtaining user
details. " + ex.Message)
End Try

End Sub 'GetUserDetails

Nov 20 '05 #3
On Thu, 24 Jun 2004 23:08:12 -0700, "Hriday" <hr********@yah oo.com> wrote:

¤ Hi there, Please help me..It is urgent
¤
¤
¤ This is Hriday, working on windows authentication with
¤ Active Directory...
¤ My requirment is when a user sends a request to my web
¤ Applicatoin I want to Pop up windows Authentication box so
¤ that user will give his userId, Password & domain name for
¤ authenticaion. After that I want to take these three info
¤ of user and make a search in Active Directory.
¤
¤ I am able to display Win Authentication Pop up by using
¤ Authentication mode="Windows" and in Authrization tag,
¤ deny user="?" and setting Win Integrated authentication in
¤ IIS.
¤
¤ But I am not able to take user's info from Win
¤ Authenication Pop-up Windows..as I used server variable
¤ AUTH_USER and got userId. but when I use AUTH_PASSWORD I
¤ am getting null value...

You cannot obtain the password from the login dialog when using integrated Windows based
authentication.

If you want to capture the user ID and password you will have to use Forms based authentication:

http://samples.gotdotnet.com/quickst...formsauth.aspx
Paul ~~~ pc******@amerit ech.net
Microsoft MVP (Visual Basic)
Nov 20 '05 #4
-----Original Message-----
On Thu, 24 Jun 2004 23:08:12 -0700, "Hriday" <hr********@yah oo.com> wrote:
¤ Hi there, Please help me..It is urgent
¤
¤
¤ This is Hriday, working on windows authentication with
¤ Active Directory...
¤ My requirment is when a user sends a request to my web
¤ Applicatoin I want to Pop up windows Authentication box so ¤ that user will give his userId, Password & domain name for ¤ authenticaion. After that I want to take these three info ¤ of user and make a search in Active Directory.
¤
¤ I am able to display Win Authentication Pop up by using
¤ Authentication mode="Windows" and in Authrization tag,
¤ deny user="?" and setting Win Integrated authentication in ¤ IIS.
¤
¤ But I am not able to take user's info from Win
¤ Authenication Pop-up Windows..as I used server variable
¤ AUTH_USER and got userId. but when I use AUTH_PASSWORD I ¤ am getting null value...

You cannot obtain the password from the login dialog when using integrated Windows basedauthentication .

If you want to capture the user ID and password you will have to use Forms based authentication:
http://samples.gotdotnet.com/quickst...lus/default.as px?url=/quickstart/aspplus/doc/formsauth.aspx

Paul ~~~ pc******@amerit ech.net
Microsoft MVP (Visual Basic)
.


Thanks Paul for your cooperation,

But My requirment is to use Windows Authentication and
make a search in Active directory and get user's
information. For that I think I don't need user's
Password. Only with UserId I should be able to make a
search in Active Directory. Even I am able to do this when
my Web Application is on Active Directory's IIS. But I
have to make a search in such a senario that both Active
Directory and IIS are located on different phisical
machine. In this senario when I search using only Path and
user name...It raises an exception called
System.Runtime. InteropServices .COMException

I have search in msdn but did not get solution....

Please help me in this senario...

Thanks in adavance..
Hriday.
Nov 20 '05 #5
Funny I see I did not paste the link in.
http://msdn.microsoft.com/library/de...nroletopic.asp

Cor

I use "IsInRole" to find these pages on MSDN, can you use this as a start
place to check if this can help you?

Cor

This is Hriday, working on windows authentication with
Active Directory...
My requirment is when a user sends a request to my web
Applicatoin I want to Pop up windows Authentication box so
that user will give his userId, Password & domain name for
authenticaion. After that I want to take these three info
of user and make a search in Active Directory.

I am able to display Win Authentication Pop up by using
Authentication mode="Windows" and in Authrization tag,
deny user="?" and setting Win Integrated authentication in
IIS.

But I am not able to take user's info from Win
Authenication Pop-up Windows..as I used server variable
AUTH_USER and got userId. but when I use AUTH_PASSWORD I
am getting null value...

Can some one tell me how to get password and domain fields
value form Windows Authenticaion Box....

If this is not posible ... how can I make a search without
password and domain..in Active directory ....

I copy my code for retrieving user info form Active
Directory. Please help me..It is urgent.

Public Sub GetUserDetails( ByVal domain As String, ByVal
username As String, ByVal pwd As String)
Dim domainAndUserna me As [String] = domain & "\" &
username

Private path As String
= "LDAP://AD/DC=AD,DC=SOLVER SA,DC=COM"
Dim entry As New DirectoryEntry( path,
domainAndUserna me, pwd)

Try
'Bind to the native AdsObject to force
authentication.
Dim obj As Object = entry.NativeObj ect

Dim search As New DirectorySearch er(entry)

search.Filter = "(SAMAccountNam e=" & username
& ")"
search.Properti esToLoad.Add("c n")
Dim result As SearchResult = search.FindOne( )

'Update the new path to the user in the
directory.
path = result.Path
filterAttribute = CType(result.Pr operties("cn")
(0), String)
fullname = CType(result.Pr operties("cn")( 0),
String)
search.Properti esToLoad.Add("m ail")
Dim resultemail As SearchResult =
search.FindOne( )
email = CType(resultema il.Properties(" mail")
(0), String)

search.Properti esToLoad.Add("M emberOf")
Dim resultgp As SearchResult = search.FindOne( )
groupName = CType(resultgp. Properties
("MemberOf")(0) , String)

Catch ex As Exception
'Throw New Exception("Erro r obtaining user
details. " + ex.Message)
End Try

End Sub 'GetUserDetails


Nov 20 '05 #6
On Fri, 25 Jun 2004 08:17:19 -0700, "Hriday" <hr********@yah oo.com> wrote:

¤
¤ >-----Original Message-----
¤ >On Thu, 24 Jun 2004 23:08:12 -0700, "Hriday"
¤ <hr********@yah oo.com> wrote:
¤ >
¤ >¤ Hi there, Please help me..It is urgent
¤ >¤
¤ >¤
¤ >¤ This is Hriday, working on windows authentication with
¤ >¤ Active Directory...
¤ >¤ My requirment is when a user sends a request to my web
¤ >¤ Applicatoin I want to Pop up windows Authentication box
¤ so
¤ >¤ that user will give his userId, Password & domain name
¤ for
¤ >¤ authenticaion. After that I want to take these three
¤ info
¤ >¤ of user and make a search in Active Directory.
¤ >¤
¤ >¤ I am able to display Win Authentication Pop up by using
¤ >¤ Authentication mode="Windows" and in Authrization tag,
¤ >¤ deny user="?" and setting Win Integrated authentication
¤ in
¤ >¤ IIS.
¤ >¤
¤ >¤ But I am not able to take user's info from Win
¤ >¤ Authenication Pop-up Windows..as I used server variable
¤ >¤ AUTH_USER and got userId. but when I use AUTH_PASSWORD
¤ I
¤ >¤ am getting null value...
¤ >
¤ >You cannot obtain the password from the login dialog when
¤ using integrated Windows based
¤ >authentication .
¤ >
¤ >If you want to capture the user ID and password you will
¤ have to use Forms based authentication:
¤ >
¤ >http://samples.gotdotnet.com/quickst...lus/default.as
¤ px?url=/quickstart/aspplus/doc/formsauth.aspx
¤ >
¤ >
¤ >Paul ~~~ pc******@amerit ech.net
¤ >Microsoft MVP (Visual Basic)
¤ >.
¤ >
¤
¤ Thanks Paul for your cooperation,
¤
¤ But My requirment is to use Windows Authentication and
¤ make a search in Active directory and get user's
¤ information. For that I think I don't need user's
¤ Password. Only with UserId I should be able to make a
¤ search in Active Directory. Even I am able to do this when
¤ my Web Application is on Active Directory's IIS. But I
¤ have to make a search in such a senario that both Active
¤ Directory and IIS are located on different phisical
¤ machine. In this senario when I search using only Path and
¤ user name...It raises an exception called
¤ System.Runtime. InteropServices .COMException
¤
¤ I have search in msdn but did not get solution....
¤
¤ Please help me in this senario...

If your web server is in the AD domain you should be able to query AD.

What is the line of code that is causing the error?
Paul ~~~ pc******@amerit ech.net
Microsoft MVP (Visual Basic)
Nov 20 '05 #7
-----Original Message-----
On Fri, 25 Jun 2004 08:17:19 -0700, "Hriday" <hr********@yah oo.com> wrote:
¤
¤ >-----Original Message-----
¤ >On Thu, 24 Jun 2004 23:08:12 -0700, "Hriday"
¤ <hr********@yah oo.com> wrote:
¤ >
¤ >¤ Hi there, Please help me..It is urgent
¤ >¤
¤ >¤
¤ >¤ This is Hriday, working on windows authentication with ¤ >¤ Active Directory...
¤ >¤ My requirment is when a user sends a request to my web ¤ >¤ Applicatoin I want to Pop up windows Authentication box ¤ so
¤ >¤ that user will give his userId, Password & domain name ¤ for
¤ >¤ authenticaion. After that I want to take these three
¤ info
¤ >¤ of user and make a search in Active Directory.
¤ >¤
¤ >¤ I am able to display Win Authentication Pop up by using ¤ >¤ Authentication mode="Windows" and in Authrization tag, ¤ >¤ deny user="?" and setting Win Integrated authentication ¤ in
¤ >¤ IIS.
¤ >¤
¤ >¤ But I am not able to take user's info from Win
¤ >¤ Authenication Pop-up Windows..as I used server variable ¤ >¤ AUTH_USER and got userId. but when I use AUTH_PASSWORD ¤ I
¤ >¤ am getting null value...
¤ >
¤ >You cannot obtain the password from the login dialog when ¤ using integrated Windows based
¤ >authentication .
¤ >
¤ >If you want to capture the user ID and password you will ¤ have to use Forms based authentication:
¤ >
¤
http://samples.gotdotnet.com/quickst...lus/default.as
¤ px?url=/quickstart/aspplus/doc/formsauth.aspx
¤ >
¤ >
¤ >Paul ~~~ pc******@amerit ech.net
¤ >Microsoft MVP (Visual Basic)
¤ >.
¤ >
¤
¤ Thanks Paul for your cooperation,
¤
¤ But My requirment is to use Windows Authentication and
¤ make a search in Active directory and get user's
¤ information. For that I think I don't need user's
¤ Password. Only with UserId I should be able to make a
¤ search in Active Directory. Even I am able to do this when ¤ my Web Application is on Active Directory's IIS. But I
¤ have to make a search in such a senario that both Active ¤ Directory and IIS are located on different phisical
¤ machine. In this senario when I search using only Path and ¤ user name...It raises an exception called
¤ System.Runtime. InteropServices .COMException
¤
¤ I have search in msdn but did not get solution....
¤
¤ Please help me in this senario...

If your web server is in the AD domain you should be able to query AD.
What is the line of code that is causing the error?
Paul ~~~ pc******@amerit ech.net
Microsoft MVP (Visual Basic)
.


Hi Paul,

My web server in the AD domain only, but I am not able to
search user's info by the following code if I pass only
path as parameter to DirectoyEntry class..The same code is
working if I pass all the three parameter as path,userId
and password. but I can't get password from Windows
authenticatoin Popup box.....

I think I should be able to search in AD by only having
complete LDAP path and Username. I copy the complete code
here...I get error on following line
Dim obj As Object = entry.NativeObj ect

Thanks a lot for your cooparation..

COMPLETE CODE IS LIKE THIS...

Private path As String
= "LDAP://AD/DC=AD,DC=MyComp ,DC=COM"
Private filterAttribute As String
Public fullname As String
Public groupName As String
Public email As String

Public Sub GetUserDetails( ByVal domain As String, ByVal
username As String) ', ByVal pwd As String)
Dim domainAndUserna me As [String] = domain & "\" &
username
Dim entry As New DirectoryEntry( path) ',
domainAndUserna me, pwd)

Try
'Bind to the native AdsObject to force
authentication.
Dim obj As Object = entry.NativeObj ect

Dim search As New DirectorySearch er(entry)

search.Filter = "(SAMAccountNam e=" & username
& ")"
search.Properti esToLoad.Add("c n")
Dim result As SearchResult = search.FindOne( )

'Update the new path to the user in the
directory.
path = result.Path
filterAttribute = CType(result.Pr operties("cn")
(0), String)
fullname = CType(result.Pr operties("cn")( 0),
String)
search.Properti esToLoad.Add("m ail")
Dim resultemail As SearchResult =
search.FindOne( )
email = CType(resultema il.Properties(" mail")
(0), String)

search.Properti esToLoad.Add("M emberOf")
Dim resultgp As SearchResult = search.FindOne( )
groupName = CType(resultgp. Properties
("MemberOf")(0) , String)

Catch ex As Exception
Throw New Exception("Erro r obtaining user
details. " + ex.Message)
End Try

End Sub 'GetUserDetails
Nov 20 '05 #8
On Sat, 26 Jun 2004 02:01:59 -0700, "Hriday" <hr********@yah oo.com> wrote:
¤ >What is the line of code that is causing the error?
¤ >
¤ >
¤ >Paul ~~~ pc******@amerit ech.net
¤ >Microsoft MVP (Visual Basic)
¤ >.
¤ >
¤
¤ Hi Paul,
¤
¤ My web server in the AD domain only, but I am not able to
¤ search user's info by the following code if I pass only
¤ path as parameter to DirectoyEntry class..The same code is
¤ working if I pass all the three parameter as path,userId
¤ and password. but I can't get password from Windows
¤ authenticatoin Popup box.....
¤
¤ I think I should be able to search in AD by only having
¤ complete LDAP path and Username. I copy the complete code
¤ here...I get error on following line
¤ Dim obj As Object = entry.NativeObj ect
¤
¤ Thanks a lot for your cooparation..
¤
¤ COMPLETE CODE IS LIKE THIS...
¤
¤ Private path As String
¤ = "LDAP://AD/DC=AD,DC=MyComp ,DC=COM"

Is this the root path of your domain? It doesn't look right to me. What is returned as the root when
you execute the following code?

Dim RootDSE As New DirectoryServic es.DirectoryEnt ry("LDAP://RootDSE")
MsgBox(RootDSE. Properties("Def aultNamingConte xt").Value)
Paul ~~~ pc******@amerit ech.net
Microsoft MVP (Visual Basic)
Nov 20 '05 #9
-----Original Message-----
On Sat, 26 Jun 2004 02:01:59 -0700, "Hriday" <hr********@yah oo.com> wrote:

¤ >What is the line of code that is causing the error?
¤ >
¤ >
¤ >Paul ~~~ pc******@amerit ech.net
¤ >Microsoft MVP (Visual Basic)
¤ >.
¤ >
¤
¤ Hi Paul,
¤
¤ My web server in the AD domain only, but I am not able to ¤ search user's info by the following code if I pass only
¤ path as parameter to DirectoyEntry class..The same code is ¤ working if I pass all the three parameter as path,userId ¤ and password. but I can't get password from Windows
¤ authenticatoin Popup box.....
¤
¤ I think I should be able to search in AD by only having
¤ complete LDAP path and Username. I copy the complete code ¤ here...I get error on following line
¤ Dim obj As Object = entry.NativeObj ect
¤
¤ Thanks a lot for your cooparation..
¤
¤ COMPLETE CODE IS LIKE THIS...
¤
¤ Private path As String
¤ = "LDAP://AD/DC=AD,DC=MyComp ,DC=COM"

Is this the root path of your domain? It doesn't look right to me. What is returned as the root whenyou execute the following code?

Dim RootDSE As New DirectoryServic es.DirectoryEnt ry("LDAP://RootDSE") MsgBox(RootDSE. Properties

("DefaultNaming Context").Value )
Hi paul, thank you for your help..

When I execute the above code to get root path of AD, I
get error that The
specified domain either does not exist or could not be
contacted.

But the same code gives my root path of AD as
DC=AD,DC=MyComp ,DC=Com when I excute it from a Windows
Applicatoin. Why is it so...?

same code gives right result from Windows App, but gives
above error from my Web Application...i s this because of
there is some problem of my IIS ? otherwise what is
different in accessing AD through Windows App and Web App..

How can I get and set my IIS root path to my Active
directory?

Please write me back...

Thanking you..

Hriday.

Nov 20 '05 #10

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

Similar topics

4
6811
by: Andrew | last post by:
Hey all, I would like to preface my question by stating I am still learning ASP.net and while I am confident in the basics and foundation, the more advanced stuff is still a challenge. Ok. :)
2
3842
by: Dan | last post by:
hi ng, i have a problem with windows authentification. i want to forward every user who 1. is not authorized 2. or could not be authenticated to a login page -------------------
1
1899
by: Eric | last post by:
I trying to setup an intranet based on windows NT groups or roles. I have used windows integrated authentication with impersonation first but this include to use a user to access the database. I would prefer to use windows security based on groups or roles . If i set the impersonate attribute to false or simply remove the identity tag from my web.config file . how can i manage my security for database? I know i have first to setup...
0
434
by: Hriday | last post by:
Hi there, Please help me..It is urgent This is Hriday, working on windows authentication with Active Directory... My requirment is when a user sends a request to my web Applicatoin I want to Pop up windows Authentication box so that user will give his userId, Password & domain name for authenticaion. After that I want to take these three info of user and make a search in Active Directory.
6
2149
by: Mr Newbie | last post by:
Hi, Im in a situation where I need to restrict users, but I dont have access or wont be allowed access to manage groups in the domain. How can I restrict access is this case ? -- Best Regards
6
4012
by: Jimmy | last post by:
Hi, I need to develop a secure Web Service that requires a username and password. One of the requirements is that the WS supports Windows Authentication, meaning accepts the username and password the client used to log on to Windows. The WS then needs to see which Active Directory roles the user belongs to and allow the user (or not) to perform specific tasks with the WS. Can anyone please point me in the right direction as to the
1
1552
by: Lucky | last post by:
hi guys, after long long efforts i got access to the active directory for "Intigrated windows authentication". now i', suppose to get access the network resources. the problem is i'm getting access to the active directory but when i search for some users into the active directory, it returns none though there are more then 42 users exists. the code has been tested with Desktop Application locally. it is
1
2664
by: Luwk | last post by:
I have an application that communicates with the Company's Active Directory to get the OU of the users. This said application is an ASP.Net web site and has the Windows Authentication enabled. . Now, here's the anomaly: If the application is run on a Server using IIS 5.1, the application works like a charm and the communcation with the Active Directory occurs without any problem.
0
13852
JamieHowarth0
by: JamieHowarth0 | last post by:
I have been trying to find a solution to this on the Internet for months. Literally, ages and ages and ages, praying that someone in the open-source community has enough knowledge to put together an LDAP connector for MySQL Community to connect to Active Directory. Alas, nothing. So I figured I'd try doing something similar. My business problem is/was as follows: I use Active Directory on Windows Server 2003 to manage my small corporate...
0
9718
marktang
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...
0
10364
jinu1996
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...
0
10109
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 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...
0
9186
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6876
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();...
0
5545
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...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3849
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.