Directory Searcher And User Permissions ?

Feb 9, 2011

I've developed a Windows Form application that contains a function where a user will query AD using a users last name in an attempt to get a list of all domain users that contain all or part of the last name. This function works well if the user is an administrator, however in some cases a department manager, who only exist in the Domain User AD group, needs to use this function. When the user with only Domain User rights uses the function all queries come back empty. I can take the same application to another domain and user with just Domain User rights can use the function just fine.

I assume that the first domain that I mentioned might be using Group Policy to prevent Domain Users from making a query against AD.

Is it truly a Group Policy or some other setting within the domain that prevents this?

The current administrator of the first domain I spoke of is fairly new and has no idea of the workings of AD or Group Policy. All domains that I mentioned here I believe are running Windows 2003 Domains.

View 2 Replies


ADVERTISEMENT

C# - System.IO.Directory.CreateDirectory With Permissions For Only Current User?

Jun 17, 2009

I want the asp application to create a folder that has access only to the account the application was running with (i.e. asp account?)

I actually wanna use this one, but I don't know how to use the "ComputerCurrentAccount" dynamically.

I want to get the current working account.

View 1 Replies

Make A Very Simple Directory Searcher?

Aug 20, 2011

i need to make a very simple directory searcher with instructions with the design?

View 3 Replies

Using Directory Searcher To Filter By Manager?

Jun 4, 2010

I am building a company intranet site and one of the requirements is having a list of all of the direct reports. That list is being populated to a gridview which will include phone number, location, etc. Eventually I will create an edit button that will allow managers access to updating some of the employees information. I am having problems setting a filter that will find the manager. Here is what I have so far...

Protected Sub DirectReports_Click(ByVal sender As Object, ByVal e As EventArgs) Handles DirectReports.Click
Dim userNameString As String

[Code].......

View 3 Replies

Directory Searcher SearchResultCollection.count Is Very Slow

Feb 15, 2011

I have a directory searcher that is looking for dynamic groups.When I try to process the results it is taking 30 seconds to return the results.the ds.findall is very fast but when I try to find out the number of records returned or anything about the results it take the 30 seconds. So i am assuming that this is where the actual retreival of information is taking place.[code]

View 1 Replies

VS 2008 Active Directory Searcher To Access Database?

Mar 12, 2010

I am very experianced in setting up AD and networks and have recently decided to teach myself programing. I am getting there learning new things every day.One project I am near to compleating is to scan Active directory and then deposite the results in an access database.

I am useing system.directory.services I can use LDAP to search fo the information I need and I can even get the info to populate a list box I just can't seem to get at the data and then submit it to an access database. I have worked with databases and can use them for more simple tasks (using a form to add records to a database)

View 13 Replies

Set Permissions On A Directory?

Dec 24, 2010

I need to create a directory with the permissions restricted to all users but only the program can modify in it. I want the program to create new files and write text in this texts files, but nobody should see or modify the content of this files and even better if nobody could see either inside the directory itself.

View 7 Replies

Adding Permissions To A Directory?

Feb 8, 2007

I have been working on creating a small application we can run that will add permissions to a folder during an installation of a new application. The application requires read/write access to the folder and all subfolders. For whatever reason I have been instructed to include this in and install package that will be pushed out using SMS. Below is a sample of the method I use to add the user to the folder and give the appropriate rights to that user:

[Code]...

This works fine adding the user account to the folder and with with appropriate rights. I need it to give rights to the folder I select and all subfolders and files, This is where I am stuck. Does anyone know how to grant permission to a selected directory and all subfolders and files?

View 4 Replies

Directory.CreateDirectory With Permissions?

Apr 22, 2010

I would like to SET ALL permissions to True for all users of a computer, while using Directory.CreateDirectory

View 1 Replies

Directory.SetAccessControl Not Applying Permissions?

May 7, 2010

I'm trying to set ACL's on a folder using Directory.SetAccessControl. More specifically, I want to grant "Users" full control on a folder. AddFileSecurity works perfectly. AddFolderSecurity does not. It's result is that "Users" will get added to the folder's ACL but "Full Control" is not checked off (nor are any other permissions).

Imports
System.IO
Imports
System.Security.AccessControl

[code]....

View 5 Replies

Directory.SetAccessControl Not Setting Permissions?

May 6, 2010

I'm trying to set ACL's on a folder using Directory.SetAccessControl. More specifically, I want to grant "Users" full control on a folder. AddFileSecurity works perfectly. AddFolderSecurity does not. It's result is that "Users" will get added to the folder's ACL but "Full Control" is not checked off (nor are any other permissions). Here is the code I am using which is basically taken right from MSDN documentation [URL]

Imports System.IO
Imports System.Security.AccessControl
Module Module1

[code]....

View 7 Replies

Setting Directory Permissions Programmatically?

Jun 3, 2009

I have the following code:

My
.Computer.FileSystem.CreateDirectory(Environment.GetFolderPath(CommonApplicationData) & "ASKOEdgeMasterDatabase")

[Code]....

View 1 Replies

C# - How To Test User Permissions To Database

Aug 21, 2009

I have a simple .NET 3.5 app for changing some database fields using an ODBCDataSet. Now the Feature Creep is asking if I can hide or show tabs and other controls based on the user's database permissions. Ideally, I would like to control the permissions only on the SQL Server using Windows user groups, and the app would not have any built-in authentication or permission system--it simply uses the logged-in user's Windows account for the database connection. So thus it would have to "test" the permissions to determine whether or not to show the tabs for the user. For example, if they have "write" permissions to a certain table, then the tab for editing it would be visible; if not, the tab never loads for them. How can I list or test the user's permissions to the ODBCDataSet?

View 2 Replies

Check/verify SQL Permissions For A User?

Mar 8, 2010

I am writing an Excel addin to read/insert/update/delete SQL data. I am looking for tips or code samples to check if the user running the addin has select/insert/update/delete permissions. this would work on SQL 2000, 2005 and 2008. I have found the following which works for SQL 2005 (and likely 2008, though I have not tested).

Use AdventureWorks
Go
SELECT * FROM fn_my_permissions('Sales.vIndividualCustomer', 'OBJECT');
Go

[code]....

View 2 Replies

Get User Permissions Or Rights To Run The Setup?

Apr 8, 2011

I am working in VB.Net 2010 framework 2.0. In my application I want to run a Setup.exe with Process.start. I want to know that whether the user who has started the my application is having the rights to run the setup.exe

View 2 Replies

Create A SQL Server User And Then Apply Permissions?

Dec 12, 2009

I am creating a multi-user application using VB 2005 Pro and SQL Server 2005.I would like to know what your ideas are when it comes to managing user permissions in regard to being able to view, add, edit and delete information in the database? Do you think I should have the end user type in the information into the VB application which then will create an SQL server user and then apply permissions to that security user or should I fine-grain the application by allowing groups to be created and then assigning permissions and users to those groups?

View 3 Replies

Assessing NTFS User Folder Permissions?

Jul 9, 2009

Assessing NTFS user folder permissions

View 4 Replies

Permissions - Code Is Not Running On Restricted User On PC

Feb 27, 2009

I have some code that queries all the printers on our print server and returns a list. I need this code to work so please don't reply with comments asking why I am using it when you can simply type \Server to list the printers (I know this, but need the code to work as part of a larger application). When running the following code on an IT PC with admin rights, it works. When running on a restricted user PC, it doesn't. How can I add permissions in code to elevate the EXE to 'run as administrator'? [Code]

View 14 Replies

VB File Permissions - Cannot Get The Group / User Remove

Jun 13, 2011

I'm writing and application that creates a home folder for a given user. I can set the permissions fine, but on some of the folders I need to remove a specific group/user, "Everyone" would be an example for one of the folders. I can make it so that they are denied from all the permissions on the folder, but I can't actually get the group/user remove.

View 1 Replies

VS 2008 Creating A User And Share Permissions?

Mar 25, 2010

I'm creating an application that works with another I have no control over. My application needs to be able to create a user and change share permissions. Currently I am able to make a share, but I can't figure out how to set access permissions for that share.

The idea is that the newly created user (w/ password) will have permissions on the share I create.

View 1 Replies

.net - How To Check If User Has Full Control Permissions On A Shared Folder

Oct 25, 2011

I use the following code in order to check if certin user exists in the DACL:

Dim l_managemantObject As ManagementBaseObject() = CType(securityDescriptor.Properties("DACL").Value, ManagementBaseObject())
For Each mObject As ManagementBaseObject In l_managemantObject
l_name = CType(mObject.GetPropertyValue("Trustee"), ManagementBaseObject).Properties("Name").Value.ToString
If CType(mObject.GetPropertyValue("Trustee"), ManagementBaseObject).Properties("Domain").Value IsNot Nothing Then

[Code]...

View 1 Replies

Make A FSO Searcher?

Jan 19, 2009

I am in the process of making a FileSystemObject searcher which searches a rather large text document. I have so far made it to find a certain word within the text document but i want it to return the whole line that the word is found on, and then continue searching for the other instances of the search criteria.[code]...

View 8 Replies

Program Searcher / Access Is Denied Searching Some Folders

Oct 3, 2010

My current project is to search the computer for exe files, I managed to do that easily with a for...each statement. It ran well, but it came to a adminstrator folder, then it said "Access Denied".I understand that you cant access these folders, but i was wondering how to exclude certain directories that the user can't access, like UAC or something.[code]

View 3 Replies

File I/O And Registry :: Change File Permissions As Another User?

Oct 14, 2008

On an xp system using VB 2008 exprees, I'm trying to write code which will change a file's permisions when run from a non admin account. To do this I need to now how to run the code as an administrator. I've got the code to change permissions working, I just don't know how to run it with an administrator's credentials. The code is:

Imports System.IO
Imports System.Security.AccessControl
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

[code].....

View 1 Replies

Active Directory - ID For Each User?

Feb 15, 2007

I would like to have all properties on a user from active directory. I find some property name as :
distinguishedName, SAMAccountName, sn, givenName, TelephoneNumber, mail
If you have a list of property? As each user has an ID in AD ?

View 5 Replies

.net 2.0 - Remove User From Active Directory

Aug 6, 2010

I am trying to create a VB.NET application which will (hopefully) reduce some time spent on some of my departments helpdesk calls. The part that I am stuck with is how to use VB.NET to remove a user from a group. The following is code that I have been playing with:

[Code]....

I am coding in .NET 2.0 as I am unsure if the server it will live on will have 3.5 installed.

View 1 Replies

Adding User To Active Directory?

Apr 27, 2012

I am trying to add user to a Active Directory group which i already have access to but i am getting an error "Unspecified Error" Ca you guys please take a look at my code and let me know what i am doing worng?

Public Sub adUserToGroup()
Dim Buf As String = ""
Dim sDomainName As String = ("LDAP:servername.cfe.kineeg.com")

[code].....

View 1 Replies

Enable Active Directory User?

Aug 17, 2010

How to enable a Active Directory User Account By using vb.net CodeSHYAM

View 7 Replies

Get User Active Directory Details?

Feb 15, 2011

I am building a simple intranet site and I want to get the user's Active Directory.What steps do I need to take on the IIS side for this to work?Are any changes required to my web config? detailed explanation, as this is giving me a hard time.I have tryed things like this

Request.LogonUserIdentity.Name.ToString
also
HttpContext.Current.User.Identity.Name

View 1 Replies

Hide Dill(s) From User Directory?

Mar 8, 2011

I have created a desktop application in vb.net 2005. I have added some custom .dll(s) in my project. When i deployed the application on users computer i see that dlls are present in bin folder of the application. When i remove those dlls the project failed to run. Is there any way that i can hide these dlls from users directory.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved