If I'm not asking this in the correct forum, please point me in the right direction. I am using System.DirectoryServices.AccountManagement.GroupPrincipal FindByIdentity in C# to create an object containing the group members (user IDs and names) for the target group. My goal is to iterate through the resulting list of UserPrincipals and print the SamAccountName and DisplayName for each. For some target groups, this is working fine; for others it fails on a user (or perhaps more than one) that throws the following error: > System.DirectoryServices.AccountManagement.PrincipalOperationException HResult=0x80131501 Message=The specified directory service attribute or value does not exist. When I use PowerShell’s …

Member Avatar
Member Avatar
+0 forum 1

Hi Quick question, this is theoertical by the way. If i had 3 departments for a businesss: * Human Resources * Finance * Marketing If i had a total of 300GB of space on the netrwork, how could i allocate 100GB to each department, and ensure that one department cant go over that 100GB limit. I assume i would need to use disk quota-ering in windows server? Any more of an idea would be good Thanks

Member Avatar
Member Avatar
+0 forum 4

So I’m working on an active directory restructuring project my manager has assigned me to do since the new company name change. Basically the meat and potatoes of it is making new OU containers in the Active Directory and throwing user, printers, computers, distribution and security group objects into their respectively named parent and child OU containers (separated by sites rather than by individual company names which it is/was originally). Last week when I tried to move a handful of computer objects into the new OU child containers I created, it knocked those computers off the domain and violated the …

Member Avatar
Member Avatar
+0 forum 3

Hi All, I am trying to retrieve the telephone number from Active Directory for my script, I found alot of examples online, and I tried to implement what I think should make sense (but since I really don't know vb that well, this is problematic). Below is the piece of code: [CODE] . . . ''''Get Phone Number from Active Directory using employee ID retrieved from the logged in user Dim dirEntry, de As DirectoryEntry Dim dirSearcher As DirectorySearcher Dim sr As SearchResult dirEntry = New System.DirectoryServices.DirectoryEntry("LDAP://company.com") dirSearcher = New System.DirectoryServices.DirectorySearcher(dirEntry) dirSearcher.Filter = "(employeeID = " & Me.fp.BadgeNo & ")" …

Member Avatar
Member Avatar
+0 forum 1

[B]Hello DaniWeb[/B], [I]C#/ASP.Net[/I] I have a user and a server. The server has an intranet page/site I need the user(off-site) to be able to see if they are a part of a user group(domain\CN) on the server. Using ASP.Net, and Active Directory search classes(Directory Services, etc) is there a way for the user to navigate to the server/intranet site ... Have info about themselves available so that when they hit the IP/intranet site, the site will have a small gateway that will check for the user name on the machine, compare to what is in ActiveDir(common name) and then pass …

Member Avatar
Member Avatar
+0 forum 1

Hello, So I'm attempting to do a bulk creation of users into Active Directory (Server 2008) using Powershell. I have a script but every time it runs it throws a exception error. I have tried to go through and find what is wrong, but I am having little luck. Any help would be greatly appreciated! Script: [CODE] $objOU=[ADSI]“LDAP://OU=Users,DC=notmyrealdchere,DC=com” $list = Import-Csv "userImport.csv" foreach ($dataRecord in $list) { $cn=$dataRecord.FirstName + ” ” + $dataRecord.LastName $sAMAccountName=$dataRecord.FirstName + “.” + $dataRecord.LastName $givenName=$dataRecord.FirstName $surName=$dataRecord.LastName $sAMAccountName=$sAMAccountName.ToLower() $displayName=$surName + “, ” + $givenName $userPrincipalName=$sAMAccountName + “@itas.ca” $objUser=$objOU.Create(“user”,”CN=”+$cn) $objUser.Put(“sAMAccountName”,$sAMAccountName) $objUser.Put(“userPrincipalName”,$userPrincipalName) $objUser.Put(“displayName”,$displayName) $objUser.Put(“givenName”,$givenName) $objUser.Put(“surName”,$surName) $objUser.SetInfo() $objUser.SetPassword(“P@assw0rd”) $objUser.psbase.InvokeSet(“AccountDisabled”,$false) $objUser.SetInfo() …

Member Avatar
+0 forum 0

We have a Delphi app that performs user authentication using the activeds.dll library. However, when running on a 64-bit server, even though the WOW64 processing thunks the library to use the psuedo-32-bit version, we're consistently getting an app crash when attempting to use the library. Any helpful suggestions? Thanks

Member Avatar
+0 forum 0

My aim is getting client's AD login ID for authentication. I tried to use <%String remoteUser=request.getRemoteUser();%> but it returned null value. Actually, I have found a way to solve it from the internet. And it is about doing something on tomcat's file "\conf\server.xml". However, there is no clear step describing how to set it. Is there anyone having idea on this? Please help. Many thanks! Regards, Rafael

Member Avatar
+0 forum 0

Hello, So, I've got about dozen computers or so at home on an active directory network. I do this because the young ones around the house have a tendency to hose computers and its very nice to have everyones documents and whatnot stored on a mirrored volume. The kids only get a couple of workstations that they are allowed access too, namely the ones in their rooms. I want to be able to cut internet access to those computer after a certain period of time. I've got time restrictions in place for login times and screen saver authentication, but the …

Member Avatar
+0 forum 0

Hi , I am trying to show members of groups in Active Directory and then enter them into XML format but am having problems getting it to work. I am new to all this stuff but have to get this to work fairly quick. Can someone advise please. [CODE]""" Script to enumerate the members of groups in the domain""" import sys from win32com.client import * # Write a file filename = "C:\Documents and Settings\user\Desktop\AD Groups.txt" out_file = open(filename, "w") ## The values should be the groups you wish to examine, use the group's sAMAccountName groups = [".30_Write" , ".31_Write" , …

Member Avatar
Member Avatar
+0 forum 5

Hey all, I'm looking for some code (c#) that sets up new a user automatically in WinServer 2008. Does someone know such code? Where can I find the proper WinServer2008 API for that task? or any good tutorial for programming in csharp using windows server 2008 api ? (I'm totally new to both csharp and winApi) Thanks

Member Avatar
Member Avatar
+0 forum 2

Hi guys, with help I've figured out how to set the "user cannot change password" using the code below. I'm now trying to figure out how to remove the property. I thought setting the denied flag to "allow" would work but it seems to do nothing. I would like the code to be using DirectoryEntry and not PrincipalContext if possible as I'm not sure if my app will be using .NET 3.5 on all the servers. Any help on this would be greatly appreciated. [CODE]string PASSWORD_GUID = "{ab721a53-1e2f-11d0-9819-00aa0040529b}"; string [] trustees = {"NT AUTHORITY\\SELF", "EVERYONE"}; ActiveDs.IADsSecurityDescriptor sd = (ActiveDs.IADsSecurityDescriptor)User.Properties["ntSecurityDescriptor"].Value; ActiveDs.IADsAccessControlList …

Member Avatar
+0 forum 0

Hi, I need help setting up DNS, and then trusts. I think I can do the trusts. DNS is where my issue is, can someone provide step by step instructions or point me toward a tutorial? I have 3 site to site VPNs. I can ping all 3 sites and servers. Just not by host name. Only IP address. I have sitea.domain.com siteb.site.domain.com sitec.site.domain.com How would I add these into the DNS on the server so they all resolve and make it so I can ping by the host name and not only by the ip address? Once I setup …

Member Avatar
+0 forum 0

Do you need to connect your Linux Desktops or Servers to Microsoft's Active Directory (AD)? If you do, now you can learn how to do it straight from the source at Microsoft's TechNet site in the article: [URL="http://technet.microsoft.com/en-us/magazine/dd228986.aspx"]Authenticate Linux Clients with Active Directory[/URL]. Do you wonder why you'd want to do this? It may not be intuitively obvious but there are IT shops out there (maybe even yours) that use Windows exclusively because of Active Directory authentication. Linux is, or was, often excluded because of its inability to integrate successfully with AD. There are a few products like [URL="http://www.likewisesoftware.com"]LikeWise Software's[/URL] …

Member Avatar
Member Avatar
+0 forum 1

The End.