473,473 Members | 1,873 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Web Services & Active Directory

Hello,

My company has charged me with creating a web service that will validate a
user and return the user's roles via Active Directory.

The requirement is that the web service must return data to any consumer.
This means the consumer may be a Java app or any app on any platform.

Now, my knowledge of returning data to consumers who are not .Net
applications or platforms is limited. I was told to make sure that SOAP
headers contain all the correct information, etc.

Can anyone explain what it entails to accomplish such a feat? Or atleast
point me to an article or some such that will help me in my quest?

Thanks
--
-Demetri
Nov 23 '05 #1
3 5317
If the speed of the transaction is important, an interop tool such as
J-Integra Espresso is also an option. It allows interoperability
between Java and .NET without the hassle and poor performance of Web
Services.

Shane Sauer
J-Integra Interoperability Solutions
http://j-integra.intrinsyc.com/
When Web Services are not enough

Nov 23 '05 #2
What your looking for is material for ADSI. Do a google search for ADSI and
C#. Also www.15seconds.com has lots of stuff.

fw

"Demetri" wrote:
Hello,

My company has charged me with creating a web service that will validate a
user and return the user's roles via Active Directory.

The requirement is that the web service must return data to any consumer.
This means the consumer may be a Java app or any app on any platform.

Now, my knowledge of returning data to consumers who are not .Net
applications or platforms is limited. I was told to make sure that SOAP
headers contain all the correct information, etc.

Can anyone explain what it entails to accomplish such a feat? Or atleast
point me to an article or some such that will help me in my quest?

Thanks
--
-Demetri

Nov 23 '05 #3
Demetri ha scritto:
Hello,

My company has charged me with creating a web service that will validate a
user and return the user's roles via Active Directory.

The requirement is that the web service must return data to any consumer.
This means the consumer may be a Java app or any app on any platform.

Now, my knowledge of returning data to consumers who are not .Net
applications or platforms is limited. I was told to make sure that SOAP
headers contain all the correct information, etc.

Can anyone explain what it entails to accomplish such a feat? Or atleast
point me to an article or some such that will help me in my quest?

Thanks


Demetri,
you shod drop a look @ System.DirectoryServices.
This namespace cant put your .NET WS in the Active Directory World.

All you need is getting connect with AD Server, you can use this code as
a template.

System.DirectoryServices.DirectoryEntry myDE = new
System.DirectoryServices.DirectoryEntry(@"LDAP://DC=" + domain +
",DC=it", domainAdminUsername, domainAdminPassword,
System.DirectoryServices.AuthenticationTypes.Secur e);

as you seen is not so hard like seems.
Just pass the domain controller name and a pair of credentials that have
the rights to interact with AD.

At this time you are almost ready to perform query against AD with
DirectorySearcher. Use myDE (code above) as your SearchRoot and then..
query :)

DirectorySearcher expose a lot of methods and properties like
caching,maxresult for query and so on.

This is the way.
If you need more informations you can catch them on
(http://msdn.microsoft.com/library/de...mberstopic.asp)

Hope this Help.
Greetz

Alessio
Nov 23 '05 #4

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

Similar topics

2
by: James Allan | last post by:
Hello -- I'm trying to get SQL Server 2000 on a Windows 2000 Server to be able to query an Active Directory. We've got two domain servers one Win2000 and one Win2003. However, I'm having...
0
by: Amol Shambharkar | last post by:
Hello Everyone, I am hoping someone could help me out with this.I am using Visual Studio .NET 2003 to create a web application on a remote IIS 5.0 server using the File Share web access method.The...
0
by: Brian Young | last post by:
My department is responsible for creating custom internal applications for many of our departments. Our strategy has always been to develop our applications as ActiveX controls (VB6) that get...
1
by: Raghu | last post by:
If a company has windows machines but the directory services is not active directory (say novell's eDirectory for whatever reason and users are authenticated against this non-AD directory...
3
by: Luc | last post by:
Hi everyone, I had this strange problem. We are using web services for our entreprise applications. We are using IIS as the host for our webservices and IIS is configured to use integrated...
2
by: =?Utf-8?B?YW5hbmQga3VtYXI=?= | last post by:
Hi, We have a requirement where windows service application XX will be deployed on two servers that is load balanced. The windows service polls the file directory and performs some logic when the...
1
by: =?Utf-8?B?TGlhbSBNYWM=?= | last post by:
Hi Folks, Not sure if there is forum for vb.net coding using directory services? but I looking for sample vb.net code to move users into OUs in active directory. I have original code using ADSI...
1
by: Tim | last post by:
Folks, I have 3 loosely linked problems which I am would appreciate feedback on. 1). T-Sql and Active directory roles. We want to be able to control access to data within a table based on a...
5
by: Mark B | last post by:
Hi experts, I'm converting a homebrew AD management progam I wrote, from VB6 to VB 2008. I've got some code that sticks values in to Active Directory like this:- objOU.PutEx...
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
Oralloy
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,...
0
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...
1
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
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.