user-accounts

How do I implement an Account on Android without a SyncAdapter

让人想犯罪 __ 提交于 2019-12-03 06:17:39
问题 I am implementing a login system for an Android application utilizing the built-in accounts system (with the AccountManager APIs). All is well and good on Android 2.2+, but on Android 2.1 not including a SyncAdapter causes reboots in the account settings screen (see http://code.google.com/p/android/issues/detail?id=5009 and AccountManager without a SyncAdapter?) To get around this I implemented a stub SyncAdapter, which just returns null from IBinder onBind(Intent intent) , and added the

Best practices for data deletion on user account termination

隐身守侯 提交于 2019-12-03 06:10:16
问题 On a site that has a fair share of user-generated content such as forum threads, blog comments, submitted articles, private and public messaging, user profiles, etc; what is the best practice as far as what to do with the user-generated data if a user terminates their account? I'm not asking legal advice and I don't view this as a legal question so much as a question of striking a balance between the user, other users, and the site because terms of use can be drawn up after that balance is

What's the easiest way to get a user's full name on a Linux/POSIX system?

亡梦爱人 提交于 2019-12-03 04:57:59
问题 I could grep through /etc/passwd but that seems onerous. 'finger' isn't installed and I'd like to avoid that dependency. This is for a program so it would be nice if there was some command that let you just access user info. 回答1: You don't specify a programming language, so I'll assume you want to use the shell; here's an answer for Posix shells . Two steps to this: get the appropriate record, then get the field you want from that record. First, getting the account record is done by querying

Creating a webpage with user accounts, what do I need to keep in mind?

北城余情 提交于 2019-12-03 04:35:24
问题 I am trying to write a website that has user accounts. There isn't much sensitive information other than the password and email address. But I don't really understand what I'm doing; I'm kind of hacking it along as I go. Is there anything I should be keeping in mind with respect to security or any other important details? 回答1: You should: encrypt sensitive data avoid: avoid sql injection Session hijacking Session fixation Recommended Reading: PHP Security Guide 回答2: Sarfraz Ahmed brought up

Error in installing Windows service developed in .Net

拈花ヽ惹草 提交于 2019-12-03 04:02:21
问题 I have developed a windows service using C#,visual studio 2008. I have windows xp sp2 installed on my machine. When I try to install the service using installutil tool, after entering the username and password, I get following error. An exception occurred during the Install phase. System.ComponentModel.Win32Exception: The account name is invalid or does not exist, or the password is invalid for the account name specified. But the user does exist. I had created the user through control panel-

Social Network (Facebook, Twitter, etc) User Account Integration (duplicate scenario)

烂漫一生 提交于 2019-12-03 03:54:50
问题 So there are definitely many tutorials out there regarding how to integrate various individual social network authentication/registration into existing user accounts. But the scenario I can't seem to find out much information about is if a user signs into your account with different social network credentials. For example: Scenario #1 User registers on site using site's authentication. User then signs in/registers on site using Facebook Connect. User then signs in/registers on site using

How do StackExchange sites associate user accounts and OpenID logins?

隐身守侯 提交于 2019-12-03 03:46:12
I love StackExhchange / StackOverflow's approach to integrating OpenID. As I understand it, the process goes something like this: If a user signs up with an OpenID provider (i.e. Google), StackOverflow (or similar site) creates an account for the user and associates the OpenID with that account. An existing user can associate multiple OpenID accounts with his/her StackExchange account. I would love to emulate this behavior because I haven't seen it nearly as user-friendly on other sites. I know StackExchange is built on ASP.NET MVC, but am not sure whether it uses the standard ASP.NET

userAccountControl in Active Directory

[亡魂溺海] 提交于 2019-12-03 03:04:24
I want to know the current value of the userAccountControl and determine which stage it is in Ref: http://support.microsoft.com/kb/305144/en-us According to the above documentation, it should return the values which are 2 to the power N. But when I run my c# program it returns the value 544 for the normal account and 546 for the disabled account. I suspect that they are decimal numbers. But how I could link back to the values as shown in the reference? Thanks. 544 = hex 0x220 546 = hex 0x222 According to this list here , this means: 0x200 = normal account 0x020 = passwd_notreqd = password not

Consuming own API for web app - Authentication process with OAuth2

落花浮王杯 提交于 2019-12-03 01:56:01
Overview I am currently in the process of creating an API for an image sharing app that will run on the web and sometime in the future, on mobile. I understood the logical parts of API building, but I'm still struggling to meet my own requirements for the authentication part. So, my API must be accessible to the world: those with guest access (non logged in people can upload, for example), and also to registered users. So when a registered user uploads, I obviously want the user information to be sent along with the request and to attach that user information to the uploaded image via foreign

Best practices for data deletion on user account termination

谁说胖子不能爱 提交于 2019-12-02 19:35:06
On a site that has a fair share of user-generated content such as forum threads, blog comments, submitted articles, private and public messaging, user profiles, etc; what is the best practice as far as what to do with the user-generated data if a user terminates their account? I'm not asking legal advice and I don't view this as a legal question so much as a question of striking a balance between the user, other users, and the site because terms of use can be drawn up after that balance is struck. Some of the following scenarios should be considered when a user deletes their account: Private