473,769 Members | 1,640 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WindowsIdentity and Non-AD directory services

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
significantly, does current WindowsIdentity object takes care of every thing
I need to know about domain groups without hitting the directory services
directly?

Raghu/..
Apr 26 '06 #1
1 1992
>If a company has windows machines but the directory services is not active
directory (say novell's eDirectory for whatever reason and users are
authenticate d against this non-AD directory services), will the
WindowsIdentit y object (obtained through WindowsIdentity .GetCurrent static
method) in any .net application have necessary group memberships available?


If you have non-Windows users in your LDAP groups, those cannot be
represented by a WindowsIdentity object, obviously. You might get a
GenericIdentity , or even just a LDAP RDN for those users.

Marc
Apr 27 '06 #2

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

Similar topics

0
1414
by: Robert Phillips | last post by:
I periodically get an ApplicationException "access is denied" in the WindowsIdentity._GetCurrentToken() method. Reflector shows the _GetCurrentToken() method as private static extern IntPtr _GetCurrentToken(); which i believe means it is an internal call into the CLR.Does anyone have any thoughts on why this would be happening?
8
33049
by: BLiTZWiNG | last post by:
After playing with the code shown and utilising Willy Denyottes' help, I have come to the conclusion that there is some form of difference between the managed WindowsIdentity.Impersonate() over the unmanaged ImpersonateLoggedOnUser(). Below is my code showing a file copy to a remote computer's shared folder using both WindowsImpersonationContext and ImpersonateLoggedOnUser/RevertToSelf, with the latter currently commented out. The...
3
3395
by: ZUP_DUDE | last post by:
I have a webservice that is using impersonation. The web service needs to call a System.Diagnostics.Process to execute a batch file. I am having problems executing the batch file. It works fine on my machine but when I execute the process on the Server nothing seems to happen. I think it is because I need to pass the credentials to the Process thread. Is there any way to attach a WindowsIdentity to a System.Diagnostics.Process? An...
3
4300
by: Kevin Burton | last post by:
This is more of a solution that raised a question. I have a Web service that does not allow anonymous users. For debugging I put in the following lines in my Web Service: WindowsIdentity wi = WindowsIdentity.GetCurrent(); WindowsPrincipal wp = Thread.CurrentPrincipal as WindowsPrincipal; wi = wp.Identity as WindowsIdentity;
8
9469
by: Razak | last post by:
Hi, I have a class which basically do Impersonation in my web application. From MS KB sample:- ++++++++++++++++++++code starts Dim impersonationContext As System.Security.Principal.WindowsImpersonationContext Dim currentWindowsIdentity As System.Security.Principal.WindowsIdentity
0
954
by: Jörn von Holten | last post by:
Hi, I have a 3-tier application design. Those tiers might all run on different computers (windows plattform but not necessarily W2k), so I use .NET remoting to connect them. All three parts require a login and use sessions. So far everything works quite fine. Now I want to use the ASP.NET 2.0 features with sessions and windows autentification OPTIONALLY to the normal login (user, password). This shall work on the same login screen: if...
13
12958
by: ALI-R | last post by:
I know how to authenticate to a webservice using either of these ways(Assuming that rService represents the webservice): 1) rService.Credentials = new System.Net.NetworkCredential("username","password","domainName"); 2)rService.Credentials = System.Net.CredentialCache.DefaultCredentials; My question is that is there a way to authenticate to a user using WindowsIdentity ???
1
2502
by: Roger | last post by:
I have a desktop and laptop for development. Both are xps and both are sp2 and both are update to date with security patches. On my desktop when I run the LogonUser api function call. It will create a windowsidentity object and whom I am attemptting to log in as, but if I look in command window and type "WindowsIdentity.GetCurrent()" the name property
0
1396
by: Ed Sutton | last post by:
Is there a FileSecurity method that can determine if the current WindowsIdentity has write access to a file? I can get the current windows identity and use FileSecurity to return the AuthorizationRuleCollection and then search for the FileSystemAccessRule's that apply to my identity. The problem is my current identity may be "MYDOMAIN\JDOE", but I do not know how to determine if a group this identity belongs, for example "EVERYONE",...
8
5481
by: Varangian | last post by:
Hello how do I get a WindowsIdentity on a machine other than the GetCurrent(); ?
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
9863
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
8870
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
7408
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
6673
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
5298
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...
1
3958
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
3561
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.