admin

ASP.NET Roles with Windows Auth

Super simple question from an ASP newb: I've got an internal-only ASP.NET website I'm working on that uses Windows integrated auth across the board. There are essentially three roles I want to associate with the site: user, manager, and admin. The site is open to the entire org, so anyone who is authenticated is a user, unless they are a...

Django Admin: Ordering of ForeignKey and ManyToManyField relations referencing User

Hello, I have an application that makes use of Django's UserProfile to extend the built-in Django User model. Looks a bit like: class UserProfile(models.Model): user = models.ForeignKey(User, unique=True) # Local Stuff image_url_s = models.CharField(max_length=128, blank=True) image_url_m = models.CharField(max_length=...

I want to use security through obscurity for the admin interface of a simple website. Can it be a problem?

For the sake of simplicity I want to use admin links like this for a site: http://sitename.com/somegibberish.php?othergibberish=... So the actual URL and the parameter would be some completely random string which only I would know. I know security through obscurity is generally a bad idea, but is it a realistic threat someone can find...

Custom Django admin URL + changelist view for custom list filter by Tags

In django admin I wanted to set up a custom filter by tags (tags are introduced with django-tagging) I've made the ModelAdmin for this and it used to work fine, by appending custom urlconf and modifying the changelist view. It should work with URLs like: http://127.0.0.1:8000/admin/reviews/review/only-tagged-vista/ But now I get 'inval...

How to structure groups within a website? (admin, admin powers, user identity)

I am going to be making a small user system but I have questions. If I were to make a registration table (mysql), what is wrong with just storing the password and username into the database without encryption? I am trying to think of how to build the admin portion. Should I just check a column in the database to see if user is admin or...

Best PHP framework with Admin Section

I've being developing with Django for about two years. I recently was hired by a company that has about 20 sites that are all PHP. The PHP is very old and has really bad coding practices. I would like to switch them over to Django but that might take awhile as the site have heavy e-commerce integrations. In the meantime I would like to ...

What language to use - simple form + MySQL + admin page

Hi everyone, Apologies if this is not the right place to ask but here goes... What should I use to create a simple web application for our website? I'm the IT guy for a small non-profit. On our website we have a page with a large form in which users can fill out information on an application form. The information gets sent to a MySQL ...

prepopulating admin user in database with authlogic rails plugin

I've been using the Authlogic rails plugin. Really all I am using it for is to have one admin user who can edit the site. It's not a site where people sign up accounts. I'm going to end up making the create user method restricted by an already logged in user, but of course, when I clear the DB I can't create a user, so I have to prepopul...

Django Admin: Getting request in ModelForm's constructor

The below code removes certain values from a drop down menu. It works fine but I want to remove the value if the user lacks certain permissions. How can I access request.user in the ModelForm's constructor? Or is there a better way to accomplish what I am trying to do? class AnnouncementModelForm(forms.ModelForm): def __init__(sel...

Making Django admin display the Primary Key rather than each object's Object type.

Hi all, In Django 1.1 admin, when I go to add or change an object, my objects are displayed as: Select host to change * Add host Host object Host object Host object Host object Host object This happens for all models in my site, not just Hosts. Rather than display the same name for each object, I would like ...

Truly understanding Networking?

I understand the basics of networking such as Lan and stuff. I know what many of the protocols are and how to build a client/server socket program in C. But what I really want is a very good understanding of how networks actually work. Not only from a programming aspect but also from a application aspect. I am looking for some materi...

Reset or Configure Sharepoint Central Administration

My Central Admin for sharepoint works but shows messages on the status bar 'page with errors' and when i open a setting e.g. Authentication providers and when i try click Save/OK button it does not work at all...page does not refresh or anything. This happens with most of the pages I had made few changes to the .css files earlier but i ...

admin rights with smart install maker

Hey there, yesterday I purchased Smart Install Maker. Everything seems to be working fine, except the admin rights. Even when I uncheck the field "require Administrator rights" my final install package can't be installed by a normal user who hasn't got admin rights. The installation will start, but during the copying process it promps "...

Long script in admin, task in Symfony?

In the admin panel, when the admin selects an action it will load data from an API and save it to the DB. It could take from 2 seconds to 3 minutes, depending on what he is importing. How can I do in Symfony to create like a thread, so the admin is not waiting to finish. And when it's finished tell him to check the result? Are the task...

Restricting an entire symfony admin generator page according to credentials

I have a website with a large number of admin generators to take care of an assortment of tables. Within the realm of authenticated users, I want to be able to deny access, not just to individual actions or fields, but an entire admin module. There doesn't appear to be a global credentials parameter for generator.yml, and putting stuff ...

How to make admin site safe ?

Hi guys, very simple question: I have admin site in my web project. So, how can I make it safe? What I have until now: Database handled user with userID and userlevel on the pageload of the admin master page (which includes all admin sites) there is a clause to check if userID is okay (get the user from database) and if userlevel is ...

Django Admin: How to dynamically insert values into the add inline form

Let's say I have this model: class Foo(models.Model): bar = models.ForeignKey(Bar) currency = models.ForeignKey(Currency) # currency is just an example is_active = models.BooleanField() Now suppose Foo is an Inline of Bar. And I would always want to indicate a value on each currency? If I could replace those currency drop ...

How to undo another user's checkout in TFS via the GUI?

As the resident TFS admin, on occasion I am asked to undo a checkout (usually a lock) that a user has on a certain file. This can be done via the command line using the TF.exe utility's Undo command (see http://msdn.microsoft.com/en-us/library/c72skhw4.aspx), but that's kind of a pain. Is there a way to undo another user's checkout via...

How to undo another user’s checkout in TFS?

As the resident TFS admin, on occasion I am asked to undo a checkout (usually a lock) that a user has on a certain file checked into source control. How do you undo another user's checkout? ...

Windows Service setup project - run service as administrator

Hi, I've got a setup project for a Windows Service (.net 3.5, visual studio 2008). The Windows Service needs to be run under the Administrator account, does anyone know how I can get the Setup Project to set the "user to log on as" setting for the windows service as part of the setup process? At the moment I have to manually right cli...