473,769 Members | 5,877 Online
Bytes | Software Development & Data Engineering Community
+ 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 5332
If the speed of the transaction is important, an interop tool such as
J-Integra Espresso is also an option. It allows interoperabilit y
between Java and .NET without the hassle and poor performance of Web
Services.

Shane Sauer
J-Integra Interoperabilit y 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.Director yServices.
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.Director yServices.Direc toryEntry myDE = new
System.Director yServices.Direc toryEntry(@"LDA P://DC=" + domain +
",DC=it", domainAdminUser name, domainAdminPass word,
System.Director yServices.Authe nticationTypes. Secure);

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
DirectorySearch er. Use myDE (code above) as your SearchRoot and then..
query :)

DirectorySearch er expose a lot of methods and properties like
caching,maxresu lt 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
15191
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 problems: I've run the following query to setup the linked server: sp_addlinkedserver 'ADSI', 'Active Directory Service Interfaces', 'ADSDSOObject', 'adsdatasource'
0
3454
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 problem is I get the following two errors everytime I try to create the application: Error 1: The web was created successfully, but an error occured trying to configure the application root of this web.Web projects may not operate correctly...
0
1216
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 hosted in Internet Explorer. I've been tasked with coming up with a strategy for our migration to using VB.Net. So far, I've experienced a number of items that caused us a few stalls, but mostly was able to resolve them after some thinking and...
1
1993
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 services), will the WindowsIdentity object (obtained through WindowsIdentity.GetCurrent static method) in any .net application have necessary group memberships available? Since ldap group implementation in each directory service vendor vary...
3
3741
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 authentication. The problem arise when the user's password changes and he has not done it at logon time. So it seams that at that specific time, the transaction goes to IIS and bounces back with an http status 401: Unauthorized.
2
2020
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 file is being copied to the UNC path. The window service uses FileSystemWatcher to perform file operations. How does it work when the window service on two servers is pointing to same file location. Are there any articles or can somebody please...
1
1161
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 that allows me move users between OUs but ADSI scripting does not work in .net development environment. If anyone direct me to a good location on programming active directory and partiularly on Organizational Units or even can I use my ADSI...
1
4062
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 role within Active directory. For example, Region1 has 4 sites, Region 2 has 3 sites and so forth. All the sites are held in a single database table.
5
2385
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 ADS_PROPERTY_APPEND, "wbempath, Array(Product & "|" and Key) Basically, a convenient place for me to store and manage CD installation keys.
0
9589
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
9423
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,...
0
10050
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...
1
9999
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8876
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...
1
7413
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 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...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3967
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3570
muto222
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.