Well then maybe that explains what I was seeing yesterday. Network Service was coming up as the username. I will enable impersonation and see what I get. ...
I have a simple function responsible for determining if an end-user is a member of a particular AD Global Group. The script returns False even though the Group...
I have an ASP.Net application with a SQL 2000 backend I have been authenticating against an NT domain and we are switching to active directory. When we make...
Please disregard the earlier request for help. I found the errors..... Eva __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 ...
Dim src As DirectorySearcher = New DirectorySearcher("(& (objectCategory=Person)" + "(objectClass=user)(sAMAccountName=" + UserN + "))") src.SearchRoot = de ...
When I try to change the password via the WinNT provider, I get the following error in .NET. "Cannot Create ActiveX component" Any ideas why this is?...
The IADsGroup persistent interface is also a wise choice for groups that might contain more than 1000 members in Win2K AD and 1500 members in W2K3 AD. For more...
Just out of curiosity, have you tried to back into this using IADsGroup to read group membership rather than using IADsUser to read information about the user?...
This particular issue should have been solved in a later hotfix, but it is still good practice to keep in mind. ... -- Ryan Dunn MVP - ASP.NET <http://ASP.NET>...
Can you show us how the search root DirectoryEntry is constructed? That is the piece that establishes the security context. Joe K. ... From: "Jeff Lucal"...
... You would have to enumerate the "memberOf" attribute and look at the resulting group DN that you get back, in order to determine whether that group is in...
I need to promote a bunch of users from being local users to being domain users. As part of this process, I need to promote the settings on the dial-in tab of...
Hi Michael, ... I don't think there's any magic way to "promote" those users. What you could do (in VBScript or preferably C# or any other .NET language) is...
Right, I'd planned on iterating over them. Those attributes are present in the binary blob "parameters" attribute. Since they are unique per-user attributes,...
The DE isn't specifying any credentials. The DE is defined right below the public class. I let my app do a call out to the root of AD and grab any domain...
That sounds like a Kerberos delegation problem then. If your web app uses IWA auth, then a double hop is required for the user's security context to flow from...
Awhile Ago I said I would post some code here to help create an Active Directory component. I have decided to post what I have at the moment. It has been...
Paul J Baratelli
Paul.Baratelli@...
Oct 11, 2005 8:04 am
3870
My user creation tool creates a user and stamps the "msNPAllowDialin" attribute to True before committing the creation. I've found that the user doesn't have...
Yeah, it's not legal to modify msNPAllowDialin directly. Along with most of the other RAS and RADIUS attributes. There are a number of reasons for that, but...
Another approach you might want to consider avoids the DirectorySearcher all together and gets the DN of the logged-on user in the user's context. Once you...
Isn't he going to have the same problem here though? The issue was that he couldn't get a DirectoryEntry to bind properly due to Kerberos delegation issues....
... This is not a valid LDAP string - you're string should look something like LDAP://HSDDEVT/CN=Users,DC=YourCOmpany,DC=com The "DN=....." is not a valid LDAP...
Hi marc thx for seeing ur reply. But Im not sure what value should I provide for DC. what if I just say "LDAP://HSDDEVT/CN=Users" will it work or not. Because...
... Inspect the LDAP://RootDSE entry, and have a look at the "defaultNamingContext" entry - that should show you the DC= parts for your domain. ... No, it will...
Hi Joe, In Jeff's original post he says that the application works fine for domain admins, but not for regular users. I've seen this DirectorySearcher failure...
I hear what you are saying but I don't understand why a user account that is performing a search to find its own object in AD would have an issue. I suppose...
Is there a way to do this using code and not a script? I just want to modify the properties of the directory object or the IadsUser. I just want to know how...
hi marc, Now I mentioned like this Dim sUserPath As String = "LDAP://HSDDEVT/CN=Users,DC=US,DC=NM,DC=HSD" Dim oUser As New DirectoryEntry() Dim sUserFind As...