user

Visual Studio 2005 - Running a website under a different user account

I am building a ASP.NET website, and when I click the START DEBUGGING icon, it will always run Internet Explorer as the account that I ran Visual Studio with. I would like to run IE as a different user when debugging. Is there a way? ...

Troubleshooting user issues - techniques?

This is a pretty general question - but what are some of your strategies / procedures for troubleshooting issues that users find? Specifically, I'm talking about web based programming - a combination of PHP, mySQL, Javascript (Ajax). We're running an ecommerce platform and we've done successful test transactions on all major browsers. ...

Best way to know if a user has administrative privileges from a VBScript

As the title says I need to check whether the user executing the script has administrative privilages on the machine or not. I have specified the user executing the script because the script could have been executed with a user other than the logged on using something similar to "Runas". Regards, Javier @Javier: Both solutions work i...

Template to notify users about issues / failures / incidents etc

Our product is a web application. From time to time, we get failures, bugs, error etc and I’m looking to send out an email notification to inform our users what happened and how we dealt with it. Should include things like: "Apologize for the inconvenience" "Server1 went down at 9am for 1 hour" "No data was lost or corrupted" Doe...

Generating Login and Registration Forms with Contrib.Auth in Django

I'm new to Django and in bouncing around the framework over the past few days I haven't been able to figure out how to properly install the django.contrib.auth app in my project. Well, installing is probably not the right word, but configuring it for my purposes. What I'm truly hoping to do is extend the built-in classes to simply creat...

enforcing at most one user in a JSP application

I'm developing a web tool using JSP, where there are many users of multiple kind (i.e. administrators, guest, write-enabled users, ...). Since this will be a subscription based system (i.e. user pay for a 3/6/12 month subscription), I need to enforce at most 1 login per user at the same time. For example, say Mr. John Smith subscribes to...

Is it unreasonable to assign a MySQL database to each user on my site?

I'm creating a user-based website. For each user, I'll need a few MySQL tables to store different types of information (that is, userInfo, quotesSubmitted, and ratesSubmitted). Is it a better idea to: a) Create one database for the site (that is, "mySite") and then hundreds or thousands of tables inside this (that is, "userInfo_bob", "...

SharePoint - Get a list of current users

What's the best way to get a list of users that are assigned to a SharePoint portal? Thanks. ...

How to get username without domain

In an aspx page I get the Windows username with the function Request.LogonUserIdentity.Name. This function returns a string in the format "domain\user". Is there some function to only get the username, without resorting to the IndexOf and Substring, like this? public static string StripDomain(string username) { int pos = username.In...

How can I pass a data string to a programmatically loaded custom user control in C#

I've written a Custom User Control which returns some user specific data. To load the Custom User Control I use the following line of code: UserControl myUC = (UserControl).Load("~/customUserControl.ascx"); But how can I access string user inside the User Control myUC? ...

How can I get the primary and other groups of the currently logged on user in Perl?

According to this site I can simply write $user = getlogin(); but the group handling functions seem not to be able to accept a username/userid as a parameter. Should I really iterate over all the /etc/group file lines and parse the group names from it? ...

IIS Anonymous user authentication doesn't work with AD credentials

I have an asp.net application directory, and I want to use anonymous authentication in the Directory Sercurity tab. If I use the pre-Windows 2000 style DOMAIN\USERNAME for the username, everything is fine. If I use the AD-style (UPN) [email protected], then I get a 401.1 failed login. I've tried a number of variations, but can't ge...

Script or tool to enumerate windows users and groups

I'm auditing an existing Windows 2000 server that's plagued with non-expiring passwords, stray users, and groups pointing to SharePoint and Interdev-created accounts. What's the best way to enumerate each group, display the resource that the group points to (it's show in the description field of Local Users and Groups), and display all ...

How do you test for the existence of a user in SQL Server?

I'd like to drop a user in a SQL Server script but I'll need to test for existence first or I'll get script errors. When dropping tables or stored procs, I check the sysobjects table like so: IF EXISTS (SELECT * FROM sysobjects WHERE id = object_id(N'[dbo].[up_SetMedOptions]') AND OBJECTPROPER...

What are good rules of thumb for presenting new development to non-technical stakeholders?

Communicating with non-technical users can be challenging. What tips do you keep in mind in order to keep the presentation of new and often in-progress development productive? ...

SQL User Defined Function Within Select

I have a user defined function in SQL called getBuisnessDays it takes @startdate and @enddate and returns the number of business days between the two dates. How can I call that function within my select? Here's what I'd like to do.. SELECT getBusinessDays(a.opendate,a.closedate) FROM account a WHERE ... ...

I need help! whenever I click and drag a user control in vb.net i get this error message.

Failed to create component 'User Control 1'. the error message follows: 'System.NullReferenceException : Object reference not set to an instance of an object. at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object Component, Object Value) .............. etc.......... please help me......... Thanx in advance...... ...

Permissions required for 'CREATE USER' in SQL Server 2005?

Hi - I am trying to create a SQL server login and database user from within my application, along with a custom application user row. I want these users to be able to create other users - i.e. the application will control who can/can't create users but I need all users to have permissions for creating SQL server logins and database users...

One blog for each Django user with the "blog role"

Hi, What approach is the best way to make content-types restricted to a user in Django, lets say that i want all users with the user-role "blogger" to have its own blog. Ive createt a weblog app, but how do i restrict it so that the user logged inn can only post in his "own" blog, and how do I make views that shows only a users blog? ...

How to get a list of all users with a specific permission group in Django

Hi, I want to get a list of all Django auth user with a specific permission group, something like this: user_dict = { 'queryset': User.objects.filter(permisson='blogger') } But I cant seem to find out how to do this. How are the permissions groups saved in the user model? ...