passwords

Can some tell me how to make this script check for the password before it starts the upload process instead of after the file is uploaded?

荒凉一梦 提交于 2019-12-24 14:28:47
问题 Can some tell me how to make this script check for the password before it starts the upload process instead of after the file is uploaded? Some of the files I need uploaded are big and it sucks to wait till the file is uploaded to before it tells me that the password was wrong. Thanks for any help you can provide. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <title>ES

How to check login credentials in linux when not running as root?

久未见 提交于 2019-12-24 11:09:27
问题 I have written a cgi-bin application in C that runs in a browser and allows the user to open an interactive shell and view & edit files on a Linux machine. It runs as the standard apache "www-data" user. I just added a login screen to it where the user types in their name and password (in a form) but I cannot authenticate the user using getspnam since this function only works when running as root. What options do I have to check the login credentials of a user when not running as root? PS: In

How to make ldap respect Active Directory password history in php

本秂侑毒 提交于 2019-12-24 10:55:39
问题 I have access to an Active Directory that enforces a 5 password history restriction. Any password in the last 5 passwords you have, is not a viable candidate to be set or reset as your password. I am using php and am trying to use ldap calls to reset a user's password. I can reset the password just fine using the ldap_modify call. Unfortunately though, ldap_modify does not care at all about the Active Directory's password history rule, and it will reset the password to anything you choose

Security concerns sending user name and password to server via https from iOS app

浪尽此生 提交于 2019-12-24 10:48:26
问题 I have set up in app purchase receipt verification in accordance with Apple's recommendations by sending the receipt to my server which in turn sends it to Apple's servers for verification. All my receipt processing is handled server side and it is working perfectly. My server sends back a very obscure code to my app to confirm whether the purchase is valid or not. I make use of a pretty robust obfuscation method on the app side to disguise what is going on with that return code to make it as

Passing username and password to SSRS 2005 reports from web application

…衆ロ難τιáo~ 提交于 2019-12-24 09:59:33
问题 I want to add security to report(s) based on username and password present in my web application database. But i do not want add parameter(s) username/password in rdl file which shows password in clear text. What is the best way to perform this task? Currently, my reporting server bypass my web service? Report url directly call report on report server. Can I made to pass it via web service which can authenticate user? Any suggestions? 回答1: The method that gives you the most flexibility is to

Securing passwords in PowerShell scripts

喜你入骨 提交于 2019-12-24 08:58:47
问题 I'm writing a PowerShell script that, every few months, a third-party app will automatically call to do the following among other things: Use [System.Web.Security.Membership]::GeneratePassword() to randomly-generate a password then use that password with Export-PfxCertificate and OpenSSL's passin . Use a static password to authenticate via COM API to a third-party system that doesn't support API keys or anything. What's the best way to do this securely? As far as I'm aware, there's nothing

How to change a SALT password in a database using PHP?

孤街醉人 提交于 2019-12-24 08:57:04
问题 I am using a HTTP POST from android to some php script in order to update a users password in the database. I am using the same SALT hash as is done when the user creates the account and the database update is running and changing the values of SALT however when I try to log in with the new password it is coming as incorrect. The initial code for creating the password is: public function storeUser($name, $email, $password, $rand) { $uuid = uniqid('', true); $hash = $this->hashSSHA($password);

Java code Check Password for Letter and Digit?

霸气de小男生 提交于 2019-12-24 07:04:04
问题 EDIT--VERSION The first post was confusamagin. My assignment is to create a password prompt program. The password needs to be checked to see if it does have at least one digit and one letter in it. Also the password length must be between 6 - 10. My problem is trying to figure out how see if a digit and letter exist the password. In the check password area I am not sure where to begin really. I am not sure how to see if it has a Letter and a Digit in one. I know how to do either or by using a

Move saved TortoiseSVN authentication to another machine?

心不动则不痛 提交于 2019-12-24 04:05:37
问题 Is there a way to move a saved login/password for TortoiseSVN to a network repository from machine to machine? Just got a new machine, know my username but don't recall my login to the repository. I know TortoiseSVN saves some auth info on the directories at %appdata%\Subversion\auth Moved over the file I found at svn.simple; I see my user name in it in clear text but the password is encrypted. I also see "wincrypt" in the file so that's the crypto functionality invoked. Ordinarily I'd just

How to read a specified String from an input file, then read the next word after it

…衆ロ難τιáo~ 提交于 2019-12-24 03:27:37
问题 In Java I want to be able to have two JTextFields that take in String. One is a username and the other a password. to "login", the program will search through a file --> accounts.txt and will search first for "usrnm:", once it finds it, it takes the word right after the : the same goes for the password but it searches for "pswrd:". Here's what iv'e got so far: public void checkCredentials() { try { BufferedReader br = new BufferedReader(new FileReader(new File("accounts.txt"))); String text =