user

Facebook Get User ID From Application Tab

Hello! Facebook apps are allowed to have a tab that a user can add to his profile's tabs if he wants. How can I get the uid or otherwise identify the currently logged in user in order to customize the layout for him please? Thank you. ...

Algorithm for Saving a User's Credentials into a Database over HTTP

Any comments/improvements on this process? User Table: id, username, password, salt Storing a New User Receive the username (plaintext) from $_POST Receive the password (sha512'd using javascript) http://pajhome.org.uk/crypt/md5/sha512.html from $_POST Generate a 128 character salt (alphanumeric with symbols) on the server and store ...

how to get List Of User Defined Functions using OleDbSchemaGuid in c#?

how to get List Of User Defined Functions using OleDbSchemaGuid in c#? ...

Python Script: Prevent normal users to execute

Hi, I need a better way to prevent that normal users execute my python script. I'm doing something like that: if __name__ == '__main__': if os.getenv('USER') == 'root': addUser = addUser() else: print 'Only root can run that!' It's working, but it's pretty ugly! My script is about user management in a Debian sy...

Best way to check for existing user in mySQL database?

I am trying to create a user login/creation script in PHP and would like to know the best way to check if a username exists when creating a user. At the moment, I have the following code: function createUser($uname,$pword) { $server->connect(DB_HOST,DB_USER,DB_PASS,DB_NAME); $this->users = $server->query("SELECT * FROM u...

How to achieve nice litle USER page url like facebook or twitter?

I have a .NET app and I let users to create their account. Right now the user page looks like http:///user/?user=guru I have a user subfolder at the app root and that is where the aspx pages for user page are How can I let my users access their pages like twitter, facebook or youtube? Their user profile\channel\account has this forma...

How do I get the current user in Perl in a portable way?

How does one get the current user in a portable way? This seems like an FAQ but perlport doesn't speak about it, maybe because some odd systems don't have the concept of "user" to being with? However, let's stick to *nix and Windows. getpwuid($>) is not implemented on Windows. $ENV{USER} || $ENV{USERNAME} seems finicky. http://search....

How safe is the data being parsed by RTF editors like TinyMCE?

Hi Everyone, I have a great concern in deploying the TinyMCE editor on a website. Looking at the code parsed by the editor it does a great job, and I leave the HTML button off the toolbar configuration so users can not inject their own source. However, from what I read in the TinyMCE docs, it claims to degrade nicely to a regular texta...

Are users commonly implemented as Roles with the ability to login?

In recent versions of PostgreSQL users are implemented as roles that can login. Is this common in an RBAC implementations, that a user is just another role with the ability to login (or similar)? Some of what I've read so far doesn't suggest that... but maybe I've misread or just not read the right thing. ...

postgresql query to show the groups of a user

Hello, If I create a user in a group, like: create role user_1 login inherit in role group_1; later, with which query could I retrieve to which group(s) a user belongs to ? Thanks ! ...

postgresql trigger when user group is changed ?

Hello, I would like to know if it is possible to have a trigger when a user is added to or drop from a group ? Does this trigger could also works when dierctly create a user in a group (create role ... in group ...) ? (In fact, I want some users of a specified group to have a specific search_path, so I can set/reset the search_path in th...

User management in MSSQL

Hello, I'm trying to set up security for my application for users. I am not sure about my logic. Is the following possible: I want to create 1 login for 'all users' in Active Directory. Then I want an admin (in the program self) to choose which user is in which server role (e.g. marketing, sales, ...). Then I want to give those roles p...

Why do GUIDs and UUIDs have hyphens in them?

A colleague of mine was wondering why he couldn't just strip the hyphens from the uuid/guid before storing it. We couldn't work out what the hyphens were for... What is the reasoning behind them? Surely they'd make it less random? ...

asp.net web application fails to recognize user identity

We have a web application and it uses System.Web.UI.Page.User.Identity to determine who the current user is. We are experiencing an intermittent problem, where a user is not recognized (their identity is blank or empty). Anonymous authentication is disabled so I don't see how they can fully access the web application without it recognizi...

simple action script 2.0 click 4 check boxes.

I have an action script 2.0 request. i have a flash movie with 7 check boxes. when the user has selcted a total of 4 check boxes the flash movie goes to another frame. pretty simple i'll contain all the checkboxes in a movie clip called mcCheckBox. I just need to the code to make it go to a new frame once four check boxes have been...

[iPhone app] How to publish an app for testing

Hello ! I'm currently creating an iPhone app and we need some testing with about 20~30 users. Actually we put the app on our iPhone by connecting the iPhone to the computer and debugging the app. But now we need to have a more efficient way to install the app on iPhone but without submitting it to Apple Store and also without the need...

Symfony: How to access the user object early in execution

Hi, I have a custom routing class that checks versioning of an object to allow for creation of draft versions of pages that wont appear on the live site. When an admin clicks to preview a draft version of a page my PublishingHelper class on the front-end (called from the routing class) checks the user's permissions to see if they are al...

List all real users on Linux/*nix and data associated with them

Hello I'd like to list all real users on Linux/*nix and it's data. I probably need to parse /etc/passwd and /etc/shadow and check if user have password. The problem is that is not cross-platform (on *BSD there is no /etc/shadow). Is there any cross-platform library/command I can use? ...

Drupal import users from one install to another install

I have 2 drupal databases, 1 current database and a backup. I'm now in the situation where I need to restore the backup. I'm looking for a way to import the new users in the current database into the backup. How should I go about doing this? ...

Manually log in a user

Hello gents. I'm working on a drupal site where I allow users to login while at the same time posting a content. I've successfully added email & password fields to the original form, but I'm stuck as to how I should actually log in the user. (My plan is to do it in the validation step, before the content is created, to make the logged i...