Is it possible to tie authentication for SVN under Apache against system user accounts, rather than defining the passwords with htpasswd? I'd rather use Apache than SVN + SSH authentication.
I am interested in hearing opinions and experiences of fellow developers on topic of designing user interface, usability AND maintainability-wise.
Common approach is to allow users to tweak options and after form gets "dirty", enable "Apply" button, and user has possibility to back out by pressing cancel. This is most common approach on Windows platform (I believe MS usability guidelines say to do so as well).
Another way is to apply changes after every single change has been made to options. Example, user checks some checkbox, and change is applied. User changes value of some text box, and change is applied after box looses focus, etc. You get the point. This approach is most common on Mac OSX.
Regardless of my personal opinion (which is that Apple is better at usability, but software I usually write targets Windows users), what do you people think?
On a server running Debian Wheezy and Samba ver 3 with a tdb backend, how do I restrict a single user from changing the password? This account is one of 2 generic accounts, one for students and one for Teachers on Call (TOC). The users are created, but I'm not deploying the server yet. When looking through Google, I came across setting the maximum password age, but not setting the minumum password age (I'd be happy with a 5 year password...)
I have windows server 2003 r2 standard edition and some XP OS clients
systems. I have created the DNS and profiles for all user.
Now I want to authorized some users to installation of softwares,
remove softwares and other such kind of things.
How to I make such kind of policies for all different users on DNS.
Please help me.
May be this question can be same for another but I didn't get the
solutions.
is it possible with mysql to automatically grant an user (which has CREATE privilege)
ALL privileges exclusively on her new created databases ? (without manually changing rights after the db is created)
I have a group of users on my server, "Developers", and I would like an environment variable to be set for them whenever they login.
More specifically, when anyone in this group logs in, I would like the equivalent of:
setenv ANDROID_SDK_HOME /Developers/Android/User
to be set at login. I can do this with a login script if necessary, but what I'm asking is: is it possible to set this type of thing in Profile Manager, Workgroup Manager, Directory Utility, etc?
Thanks - I've looked everywhere but can't find anything.
I am building a system with a User model (authenticated using AuthLogic) and three user types in three models: one of these models is Employer. Each of these three models has_many :users, :as = :authenticable.
I start by having a new visitor to the site create their own 'User' record with username, password, which user type they are, etc.
Upon creation, the user is sent to the 'new' action for one of the three models. So, if they tell us they are an employer, we redirect_to :controller = "employers, :action = "new".
Question: When the employer has submitted, I want to set the current_user.user_type_id equal to the employer ID. This should be simple... but it's not working.
# Employers Controller / new
def new
@employer = Employer.new
1.times {@employer.addresses.build}
render :layout => 'forms'
end
# Employers Controller / create
def create
@employer = Employer.new(params[:employer])
if @employer.save
if current_user.blank?
redirect_to :controller => "users", :action => "new"
else
current_user.user_type_id = @employer.id
current_user.user_type = "Employer"
redirect_to :action => "home", :id => current_user.user_type_id
end
else
render :action => "new"
end
end
------UPDATE------
Hi guys. In response:
I am using this table structure because each of my three user type models have lots of different fields and each has different relationships to the other models, which is why I've avoided STI.
By 1.times (@employer.addresses.build) I'm connecting the employer model to the address polymorphic table in one form, so I'm asking the controller to build a new address to go along with the new employer.
Averell: you mentioned encapsulating... something in the model using a 'setter' method. I have no idea what you mean by this - could you please explain how this works (or direct me to an example elsewhere)? With tsdbrown's answer I have managed to create the behavior I want... if there's a more elegant way to accomplish the same thing I'd love to learn how.
Thanks very much.
Thanks to tsdbrown for answering the current_user.save problem!
have a terminal server 2003 that about 50users can use, users are saving documents on the desktop, today users complain that documents on the desktop is missing, no upgrades or changes has been done
the error is that the server reverted to load items the folder name "Desktop" instaed of using the local language "Skrivbord" (swedish for desktop)
So the files are still on the server located under the users swedish folder name, but server does not load it, server however does load files located under the English folder name
how can the terminal server from one day to another just change from where it loads the user profile desktop files?
Hello all,
My current project has a development web server and live web server. Developers make changes to files on the dev server and test them (by going to the dev address) and make changes as necessary. When the file or files are ready to go, they are copied to the live server. There is no version control.
As you might expect, there are some problems with this model:
It's hard to keep track of what other programmers have done.
It's hard to keep track of what files should be copied to the live server.
There is no version control.
I'm in a position to make nearly any change I like, but I want it to be the right one! I have been turning this over in my head for quite a while, and I have a solution that might be okay. But I want SO's opinion.
Certainly version control needs to be added. But how should it work with the existing codebase and where should the developers be testing? How can anyone know what needs to be moved to the live server? What other details need to be addressed?
How would you attack this problem?
Supplementary information:
The website is vital, but not mission critical. A small amount of downtime is acceptable.
There are very few developers. (Right now, only 4.)
History: Before I started, the project used Visual Source Safe. This was a sufficiently bad experience that they quit using it and abandoned version control.
The project is an ASP.NET (C#) website.
This seems like a question that may have a complicated answer. Thanks for thinking about it!
simple issue.. I'm a noob
I am running a cisco 5500 ASA which is used to manage a VPN, I need the command used to check the current user list.
I think it might be an 'access-list', if so I have no idea what the name of the access list is, is there a way to show the access lists?
thanks.
I have a scenario where a user is emailing another user in an HTML based web app.
For the To: field, the user may select one of a pre-defined list of emails OR enter their own ignoring the pre-defined options.
What would be the best way of doing this from a UI point of view? I've looked at editable select boxes using jQuery but none seem to let you enter your own option.
Is there some other UI mechanism that would work here?
I'm using the InputManager to check if changes to controls are done by user or code. This works fine, except when user uses the context menu for cut/copy/paste. If the user do ctrl+v in a textbox, InputManager correctly notices it. However, if the paste is done from the context menu of the textbox, the InputManager never fires the PreNotifyInput or PostNotifyInput events. Anyone knows why? Or how to detect that these user actions? Below is a working sample. The lower textblock never gets updated when user uses the cut/copy/paste menu in the above textbox since PreNotifyInput never fires.
XAML:
<Window x:Class="InputMgrDemo.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Height="300" Width="300">
<StackPanel>
<TextBox TextChanged="TextBox_TextChanged" />
<TextBlock Name="_text" />
</StackPanel>
</Window>
Code behind:
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
namespace InputMgrDemo
{
public partial class Window1 : Window
{
public Window1()
{
InitializeComponent();
InputManager.Current.PreNotifyInput += ((sender, e) => _userInput = true);
InputManager.Current.PostNotifyInput += ((sender, args) => _userInput = false);
}
private void TextBox_TextChanged(object sender, TextChangedEventArgs e)
{
if (_userInput)
{
_text.Text = (sender as TextBox).Text;
}
}
private bool _userInput;
}
}
I was trying to follow the instructions found here to set up a catch-all account, but still I get the following message for mails sent to non-existent users:
The error that the other server returned was: 550 550 5.1.1 [email protected]... User unknown (state 14).
Everything else works, though... /etc/mail/local-host-names and /etc/mail/virtusertable were set up as instructed. Any advice? Thanks!
For administrative purposes, I sometimes need to log in as another user to diagnose a problem with their account. I'd like to be able to do this without having to change their password so I don't have to keep bothering them. Under Unix, I can just save the encrypted password from the passwd file, change the password, then edit the old encrypted password back into the passwd file. Is there a way of doing something similar in AD?
Hi all,
We are creating three different websites using asp.net but for the user part we want to implement an approach so that each user only need to create an account in any of these three sites but use the same account in other websites too.
here is what I've suggested :
create a
useracount.website.com server
then put the sql server there and implement core user account library there such as (creating/editing/etc...)
whenever a visitor needs to have an account or needs to login into out sites then we will redirect him to the useracount.website.com address and he/she should login from that point.
and for the maintaining the user's states I've suggested to using cookies.
and all of these scenarios should be implemented by asp.net and sql.
please let me know with best approach cause I feel mine is not that good specially the cookie part.
cheers.
How to customize the html page which is re-directed when a user tries to access a URL which has been blacklisted by squid proxy server.
acl blocksites url_regex "/etc/squid/squid-block.acl"
http_access deny blocksites
I would like to re-direct to a custom HTML page explaining why he is not allowed to go the blocked site or send him to an empty page.
To save trips to sql db in my older apps, I store *dozens of data points about the current user in an array and then store the array in a session. For example, info that might be used repeatedly during user’s session might be stored…
Dim a(7) as string
a(0) = “FirstName”
a(1) = “LastName”
a(2) = “Address”
a(3) = “Address2”
a(4) = “City”
a(5) = “State”
a(6) = “Zip”
session.add(“s_a”, a)
*Some apps have an array 100 in size.
That is something I learned in my asp classic days. Referencing the correct index can be laborsome and I find it difficult to go back and add another data point in the array grouped with like data. For example, suppose I need to add Middle Initial to the array as a design alteration. Unless I redo the whole index mapping, I have to stick Middle Initial in the next open slot, which might be in the 50s.
NOW, I am considering doing something easier to reference each time (eliminating the need to know the index of the value wanted). So I am looking to do this…
session.add(“Firstname”, “FirstName”)
session.add(“Lastname”, “LastName”)
session.add(“Address”, “Address”)
etc.
BUT, before I do this, I would like some guidance. I am afraid this might be less efficient, even though easier to use. I don’t know if a new session object is created for each data point or if there is only one session object, and I am adding a name/value pair to that object?
If I am adding a name/value pair to a single object, that seems like a good idea. Does anyone know? Or is there a more preferred way? Built-in Profile class?
Re: Profile class
I have an internal debate about scope.
It seems that the .net Profile class is good for storing app-SPECIFIC user settings (i.e. style theme, object display properties, user role, etc.) The examples I give are information whose values are selected/edited by the user to customize the application experience. This information is not typically stored/edited elsewhere in the app db.
But when you have data that 1) is stored already in the app db and 2) can be altered by other users (in this case: company reps may update client's status, address, etc.), then the persistence of the Profile data may be an issue. In this case, the Profile would need to be reset at the beginning and dropped like a session.abandon at the end of each user's session to prevent reloading info that had since been edited by someone. I believe this is possible, but not sure
Currently, I use the session array to store both scopes, app-specific and user-specific data.
If my session plan is good, I think I will create a class to set/get values from the session also. I appreciate your thoughts. I would like to know how others have handled this type of situation. Thanks.
Hi:
Subject:
SQL Server 2000 Enterprise Edition, windows XP
Log-in fail for odbc sql server user computer name/guest
I am connecting for several computer with the VB6 application with following connection string
"PROVIDER=MSDASQL;driver={SQL Server};server=Computer Name.;uid=;pwd=;database=Test Name;"
BUT, just Three Computer not Log-in. This three (connected with each other) are completely separate in other Room.
I checked all possible options. Besides, which option is missing???
Please Help me...
This question is rather agnostic than related to a certain version control program.
Assume there is a source code tree under certain distributed version control. Let's call it A.
At some point somebody else clones it and gets its own copy. Let's call it B.
I'll call A and B branches, even if some version control tools have different definitions for branches (some might call A and B repositories).
Let's assume that branch A is the "main" branch. In the context of distributed version control this only means that branch A is modified much more actively and the owner of branch B periodically syncs (pulls) new updates from branch A.
Let's consider that a certain source file in branch B contains a class (again, it's also language agnostic). The owner of branch B considers that some class methods are more appropriate and groups them together by moving them inside the class body. Functionally nothing has changed - this is a very trivial refactoring of the code. But the change gets reflected in diffs. Now, assuming that this change from branch B will never get merged into branch A, the owner of branch B will always get this difference when pulling from branch A and merging into his own workspace. Even if there's only one such trivial change, the owner of branch B needs to resolve conflicts every time when pulling from branch A. As long as branches A and B are modified independently, more and more conflicts like this appear. What is the workaround for this situation? Which workflow should the owner of branch B follow to minimize the effort for periodically syncing with branch A?
I've been through over 100 answers here, lots to try, NOTHING working??
Have a PHP based site. I need caching OFF for all .php files EXCEPT A SELECT FEW.
So, in .htaccess, I have the following:
ExpiresActive On
# Eliminate caching for certain dynamic files
<FilesMatch "\.(php|cgi|pl)$">
ExpiresDefault A0
Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0, proxy-revalidate, no-transform"
Header set Pragma "no-cache"
</FilesMatch>
Using Firebug, I see the following:
Cache-Control no-cache, no-store, must-revalidate, max-age=0, proxy-revalidate, no-transform
Connection Keep-Alive
Content-Type text/html
Date Sun, 02 Sep 2012 19:22:27 GMT
Expires Sun, 02 Sep 2012 19:22:27 GMT
Keep-Alive timeout=3, max=100
Pragma no-cache
Server Apache
Transfer-Encoding chunked
X-Powered-By PHP/5.2.17
Hey, Looks great!
BUT, I have a couple .php pages I need some very short caching on.
I thought the simple answer was having this added to the very top of each php page in which I want caching enabled:
<?php header("Cache-Control: max-age=360"); ?>
Nope.
Then I tried various versions of the above. Nope.
Then I tried meta http-equiv variations. Nope.
Then I tried variations of the .htaccess code along with the above variations, such as limiting it to:
# Eliminate caching for certain dynamic files
<FilesMatch "\.(php|cgi|pl)$">
Header set Cache-Control "no-cache, max-age=0"
</FilesMatch>
Nope.
It seems nothing I do will allow a single .php to be cache enabled with the .htaccess code in place, short of removing the statements from the .htaccess file altogether.
Where am I going wrong? What do I have to do to get individual php pages to be cacheable while the rest remain off??
Thank you for any thoughts.
I have VPS with CentOS 5.4.
This is production server.
The problem is when my webiste installs some scripts from site , then the owner name is not written on the file and as user i can even change the file permissions.
Is there any way that which ever script is writing file , the owner of home directory should the owner of all the files
I have VPS with CentOS 5.4.
This is production server.
The problem is when my webiste installs some scripts from site , then the owner name is not written on the file and as user i can even change the file permissions.
Is there any way that which ever script is writing file , the owner of home directory should the owner of all the files