AD Group Access To Software Features?
Apr 26, 2010
how I can control the access of various modules of a program, based upon Active Directory group. The program uses windows authentication to avoid login, but the user ends up having to enter his or her password a second time in order to continue.
Public Function GetGroupMembership(ByVal username As String, ByVal password As String)
Return GetGroups("LDAP:mycomp", username, password)
[Code]......
View 2 Replies
ADVERTISEMENT
May 25, 2009
I am looking to produce an Excel report from an Access database table. The data contains numerous records with fields for Site, Country, Region, Type and a Resolution Time. My problem is that each month the Sites change so I need to be able to write VB code within Access to read the database table and output 'Site' records for that month, grouped together along with the incident details for that site, e.g. The report would have the following headings:
'SITE' 'COUNTRY' 'REGION' 'TYPE' 'TOTAL' 'RESOLVED<3DAYS' 'RESOLVED>3DAYS' 'NOT RESOLVED'
MEL AUS APAC TECHNICAL 78 40 31 7
MEL AUS APAC HARDWARE 49 40 8 1
LON GBR EURO HARDWARE 90 40 40 10
As I will have over 30 different sites and these may change each month how do I loop through the data identifying each site and its associated field values? I have used the following code to open the data and loop through records printing to excel, but am stuck at grouping by site:
Set rst = db.OpenRecordset(sqlStat)
row=10.......
..... Do While Not rst.EOF
.cells(row, 1).Value = rst.Fields(0)
.cells(row, 1).Value = rst.Fields(1)
.cells(row, 1).Value = rst.Fields(2)...
View 1 Replies
Apr 20, 2011
I have a webForm app that registers a user in the database based on the information provided with a web service, auto-generates a random password and username, and e-mails the user a link to take an application based on the marketing company selected. How do I get only the currently logged in user's groups to show up under the MarketingCo_DropDownList. Each user allowed access to the system will have membership in at least one of the marketing groups as defined by the web.config. For example, a user that is currently logged in and belongs to the BIG group under location "algACOMP_user_BIG", will only be able to see BIG in the Marketing Company drop down list. A user that is currently logged in and belongs to the NIS group located under "algACOMP_user_NIS" will only be able to see NIS in the Marketing Company drop down list.
Here's my best guess (located under Private Sub GetMarketingCompanies() method in default.aspx.vb):
If InStr(WindowsIdentity.GetCurrent().Groups = "AMG", item.MarketingCompanyShort = "AMG", CompareMethod.Text) Then
marketingCo.Items.Add(String.Format("{0} | {1}", item.MarketingCompanyShort, item.MarketingCompanyName))
For Each item In ac1
[Code] .....
View 2 Replies
May 3, 2011
I'm trying to match up a specific group name and see if it exists for the currently logged in user using Active Directory roles. If the Group Name exists for the Current User, I want that group name to be displayed in a drop down list. Example: If current user is in BIG Group, display BIG in drop down list.Problem: All I am getting is SIDs and I'm not able to get anything to match up to the group name and nothing will show up in the drop down list.I also get the following Error:Error: Object variable or WIth block variable not set.How do I fix this?? here is the code I am using:
Private Sub GetMarketingCompanies()
' code to populate marketing company drop down list based on the current logged in users active directory group that
[code].....
View 3 Replies
Jan 31, 2011
Enumerate if an Active Directory group's member is user or another group
View 1 Replies
Jan 1, 2011
I am writing an application and I do not know how to reference a group of controls inside a group box. I will include the code I have written so far and a picture with a detailed explanation as to what I am trying to do. Feel free to comment on any discrepancies that you may notice in my code.
Code:
Public Class Form1
' The following class-level constants are used
' to calculate the price of the model
Const decCOUPE As Decimal = 18000
[code].....
View 3 Replies
Sep 25, 2011
I want to remove a group (include all items in this group) in ListView, but unsuccessful, the code is below, why?
ListView1.Groups("GroupName").Items.Clear()
ListView1.Groups.Remove(ListView1.Groups("GroupName"))
View 4 Replies
Apr 6, 2011
anyone have some quick code on how to do this?
wmi is not a option.
View 1 Replies
Feb 13, 2010
I want to search my access database and count the number of records in the column "Type" in each group. For example
[Code]....
View 7 Replies
Dec 22, 2009
In interface-based programming we normally define a set of functions inside an interface, and use that interface as a contract between 2 or more modules.What happens when we need to add more features to the system?How do we handle such system evolutions ?
View 2 Replies
May 31, 2011
I am thinking of giving mono develop a try. I have some questions. Visual Studio 2008 Professional has options for creating controls and services. This is not available in Visual Basic 2008 Express. This relationship between the different editions, is there something limiting like this with mono develop? I figure since it's open source, everything is implemented like Visual Studio 2008 Pro.
Another question. Does anyone have experience with mono. Is it a production level serious environment for commercial work? Is there something I should know about it?
Any mono developer that has anything good or bad to say, please drop a post in here. I would like to get as much info as possible from vbforums. This has always been the best help site for me using Visual Basic Express.
The most important thing, to reiterate is if I can make Windows Services with Mono Develop and if it supports full threading features that are limited or not available in express.
As a last question, what is the story on managed directx for mono. On Linux, there is no such thing, so would you plan an opengl library to start with? or does that work out in a different way?
View 5 Replies
Jul 22, 2009
I want to divide the content in my application to groups each group has its own rectangle border with the group name located at the top border, i've seen it before and i'm not sure what is the correct name of this control, anyone knows what I'm talking about ? EDIT: Ok, I found the Groupbox Control but how do i use it? should i just drag other controls inside it or i should add controls directly into it?
View 2 Replies
Nov 6, 2009
[Code]...
list of URL for the web pages requested by the user should be maintained. The user should be able to navigate previous pages requested by clicking on the links in the History list. On the browsers start up, the History list should be loaded to the browser.
View 1 Replies
Apr 6, 2010
add history features in the web browser
View 2 Replies
Nov 11, 2009
I have a large .NET source tree (185 C# and VB projects, of which 60 are apps or websites) that i want to create a wix setup for. The general idea is to have 1 setup msi and to make each executable a feature, and to have each app be installed in a separate directory. like
%progfiles%/company/app1
/app2
/app3
[code].....
Some libraries are used by multiple apps, so the DirectoryRef would have to be pointing to multiple directories, and multiple DirectoryRefs (with different ids) would have to be pointing to the same directory (found directory alias trick), both of which seem impossible.I get the distinct impression I'm going about it the wrong way, or that I'm missing some deeper insight. (No suprise as my wix-fu is a full 3 days old)
View 1 Replies
May 21, 2010
Is there a way to disable visual basic 10 language features in VS 2010.our Dev team has moved to Visual studio 2010, but we still have to keep backwards compatibility with Visual Studio 2008. is there a way to disable the new language features to avoid any issues.
View 1 Replies
Jun 21, 2009
I was creating GTA SA save editer in c++ but due to less features in c++ I converted my whole code vb.net
Private Sub Save_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Save.Click
[Code]...
View 2 Replies
Nov 2, 2011
I even have it set up so I can filter through the DataGridView by sorting though a specific company in the database. However, now I want to link specific cells from the DataGridView to other VB features such as a text box and check box. I am a bit lost as to the coding. In the DataGridView, there are numerous columns that contain a check box and I need them to correlate to actual check boxes I have in the form. I can do it through binding the check box on the form to the data source and it works but if I run a filter or sort through the company, the check boxes from the DataGridView no longer carry over to the actual check box on the page.
View 10 Replies
Jan 25, 2004
I am more interested in the "Pan" feature. I haven't seen much on this so far.
View 5 Replies
Feb 23, 2009
i wanted to know what are all the GUI features available in VB.NET for creating a nice UI. The requirement is that, we have screens which were developed in VC++, and now we wanted develop the same screens from scratch, Is it just the way of Drag & Drop all the controls which were present in VC++ screens or something else is available there ?
View 1 Replies
Apr 16, 2010
I actually found a fairly good pong tutorial on this site which I've linked to at the bottom of this post. I used the code as my base and I'm starting to implement my own new features. I'm currently working on making the ball move faster after each hit of the paddle, but I can't get it working! I thought it would be as simple as adding 1 to the 'speed' variable during the test to see if the ball has hit the paddle. Doesn't work! I also tried various other methods, including adding an extra timer to the form and having the speed increase a certain number every tick on the timer. Didn't work! Is there some special way that I need to reference that variable in order to manipulate it? Code below.
[Code]...
View 1 Replies
Oct 19, 2010
Private cs As New SqlConnection("Data Source=ANKIT-PC;Initial Catalog=mrks_analysis;Integrated Security=True")
Private da As New SqlDataAdapter("select * from sbs", cs)
[Code].....
i used the above mentioned command to get data from db to my datagrid.
Currently the complete grid is editable.
i want that the Sno field to become non editable + and the rest rows i want a combobox from which user selects the data and which gets stored in db.
View 5 Replies
Mar 20, 2009
I am making my own custom tabbed browser and now i want the ExecCommands list. to add the copy or cut etc features.
View 5 Replies
Oct 6, 2011
I have a service installed. I would like to install this service (but with different features) twice on the same server but cant as the second service recognises it as the first. How could i avoid this?
View 5 Replies
May 3, 2010
I like the new intellisense enhancements for finding members, however, there are 2 problems i have;
1) You can't resize the intellisense window when it pops up? This one is really annoying.
2) There seems to be a fixed font for the intellisense list? Why does it not match the rest of my code window like it used to? I've noticed the same with tooltips.
View 2 Replies
Mar 27, 2011
I am looking for a way to obtain some additional features on a treeview. Both, to show as to be able to input some data with a particular hierarchical structure For that on each node I need next to the nodetext a entrypossibility to input some data or to make a selection. This input possibility should be either a textbox, a combobox or a chechbox. An example of what I wisch is almost this article, except that the comment column is only a fixed text, and that I need there a input control like a textbox, or combobox.
View 4 Replies
Aug 19, 2010
I using vs2008/vb. I want to provide my users with the ability view files in a specified directory and allow them to drag-drop to e-mail. I don't want to allow them to delete files in the directory or to even change directories. Is there a way to restrict the filedialog boxes to not allow deletes and directory changes?
View 3 Replies
Apr 21, 2010
I made an application that requires you to log-in to be able to use the search features and profile. How would I write the code to be able to log-out without closing out the application and just return to the log-in page?
View 6 Replies
Jun 6, 2011
I used the unicode character manipultation features in my code under VB.NET 2003. Will the code still work on Unicode characters that have been added to the Unicode standard since 2003? I am aware that there have been some characters added to the Unicode standard for Persian text since 2004.
View 9 Replies
Jun 17, 2010
I need to get font features of a word like is font size of that particular word bigger than the normal size of whole pdf file and is this word bold or underlined etc.
which library [Open source or paid] can provide solution to extract such font features of the word in pdf file.
View 2 Replies