user

Simple way for admin to destroy the session of a logged in user

I need to be able to delete a user's session (force him to login again). E.g. I want to delete and ban the user from my site, but even if I delete his data from the DB his session will be still active and thus he can continue to be active on the site until he logs out and tries to log in again. How should I find and delete the session o...

Authentication, Authorization, User and Role Managment and general Security in .NET

Hi. I need to know how to go about implementing general security for a C# application. What options do I have in this regard? I would prefer to use an existing framework if it meets my needs - I don't want to re-invent the wheel. My requirements are as follows: the usual username/password authentication manageing of users - assign pe...

Update parent updatepanel from within usercontrol

I have an update panel that contains a repeater that calls a user control into each row. When I click a button inside the user control, the page does not refresh at all, only when I reload it completely. How can I make the update panel refresh from user control's button click? ...

Welcome file chosen based on assigned roles (Java web app)?

I have a Java web application running on JBoss using JAAS for authentication. I would like to dynamically select the page a user logging in is shown based upon their roles as I have disjoint sets of users that shouldn't have access to the same pages. I've tried using a Filter, but Tomcat denies access (correctly) to the requested URL be...

Asp.net Mvc: Ajax delete multiple users.

Hello, lets say I got multiple users. They all have items linked to their account. They can CRUD those items. So now my question is: what's the best way to prevent users from manipulating items from eachother. At first I thought the antiforgerytoken would help. But it doesn't because when the users look at their control panel they got...

List of windows users remotely

I would like to know how to retrieve the list of users that are logged onto a Remote machine. I can do it with qwinsta /server:xxxx, but would like to do it in C#. ...

Exactly what are the limitations of user mode in ARM 7?

How to experiment and observe these limitations in user mode in Keil IDE? What if the user wants to enable an interrupt? ...

ASP.Net use of documents

I have a problem in my asp.net application. The users can access a document, but only one user can access one document at the same time. When a user gets a document, a flag in the db is updated for the document, indicating that the document is in use. When the user finnishes working with the document, this flag is updated again to indica...

Find out the current user's username - when multiple users are logged on

"User A" is logged on My application recognizes Environment.Username as "User A" Now in Windows, I click on Switch user ... "User B" logs on "User A's" processes are still running Application run by "User A" still says Environment.Username is "User A" I want the application to recognize that the currently logged on user (currently acti...

Authenticating the user

I am developing an asp.net application in 3.5 where authentication is done using cookies. On the default page I am authenticating the user and setting some value in cookie. Whenever I need to authenticate the user I just verify it from the cookie. If the user is not authorized then I redirect him to the default page for authentication. I...

Getting user's location using Google from .NET code

I want to store a user's current location on an ASP.NET MVC website for the duration of a session. Because I want to use the location server-side, the way I think this should work (maybe other suggestions?) is that when a user first hits the website, I get the location and store it in the session, so on later requests it does not have to...

DirectoryEntry.Invoke("groups",null) not retrieving all groups?

I created a WCF web service to return user and group information from Active Directory. It works fine for most groups and users, but not all. I use directoryEntry.Invoke("groups",null) to return the groups a specified user is member of. This returns MOST groups. The odd thing is that I can find any group and enumerate its members, ev...

Instantiate User Control with Custom Attributes

My User Control has the following properties: private String _requestIP; public String RequestIP { get { return _requestIP; } set { _requestIP = value; } } When adding a instance of the Control to an aspx page at design time it's easy to assign the attributes which can be utilized in the codebehind file... <uc:Item ID="Test...

What is my LDAP Connection String

Are thee any tools out there that can tell you what your LDAP connection string is? ...

Drupal for users creating "sub"-users?

Hi, I'm wondering if Drupal is the right choice for me. I need to create a solution where my "primary"-users should have the capability to create their "secondary"-users and provide access to certain paid subscriptions. Is that easily doable in Drupal, or am I better off not using that and looking elsewhere? (Alternative was to integrat...

Django template user request question

Hey, I have a model Book which can be added to user's Favorites. So I defined 2 classes: class Book(models.Model): name = models.CharField(max_length = 40) class UserFavorite(models.Model): book = models.ForeignKey(Book) user = models.ForeignKey(User) Now I'd like to show on the main page popular books with an icon eith...

Dynamically Load a user control (ascx) in a asp.net website

Hi, I am trying to dynamically load a user control in an asp.web site. However due to how asp.net websites projects are setup (I think), I am not able to access reach the type definition of the user control. I get a message saying that my class HE_ContentTop_WebControl1 is: he type or namespace name 'HE_ContentTop_WebControl1' could no...

Drupal 6: Programmatically Altering User Values (how do you use profile_save_profile??)

I've been trying to figure this out for quite some time without success. foreach ($users as $user) { //list of users to act on $by_user = views_get_view_result('attendance', 'page_3', array($user->uid)); //view containing info about this user $edit = array('profile_attendance_short_term' => substr(count($by_user) / count($general), 0,...

Create Active Directory user in .NET (C#)

I need to create a new user in Active Directory. I have found several examples like the following: using System; using System.DirectoryServices; namespace test { class Program { static void Main(string[] args) { try { string path = "LDAP://OU=x,DC=y,DC=com"; string username = "johndoe"; ...

How to store current user information, security, and preferences

I need to have the ability to have a Global variable/class that stores some basic information about the currently logged in user including that user's preferences, security rights, UserID, etc. This information will be needed by any/every part of my application. In the past I have either used a Public variable/class in a vb.net module ...