Many times (not always) i need to enter my credentials when i run an app. I am using Appcelerator to build mobile apps and whenever a coworker is also using the credentials i get booted out since it does not allow multiple users to be logged in at once. We have a Makefile that automates a lot of the tasks. When we do make run it cleans and runs our apps. However, we do need to enter our login credentials every time we are both developing. How do we make it to where if we are asked to enter our email and password it would automatically be entered?
Auto-login for appcelerator ?
https://www.dalsgaard-data.eu/blog/autologin-to-appcelerator-titanium/
http://johnjardin.ukuvuma.co.za/2013/07/15/appcelerator-tip-have-titanium-auto-login-on-startup/
I don't know if you are looking for that or not.
Related
I'm required at work to use a Mobile Account connected to Active Directory. I also have an Administrator account on my computer (which is a local account).
Whenever I need to use sudo commands from the terminal, logged in as Mobile Account, the password of the Admin account is never recognized.
All the other operations that need a password input (e.g. the authorization to install Applications) work, so I can't explain why inside the terminal it doesn't work.
I've solved it by putting my user in the list of sudoers.
Checkout this link on how to do it.
We are working on a Slack app that doesn't work well when it is installed by a non-admin user. For example, if we invite a user to a channel using channels.invite we get a not_in_channel error (of course, when the installer user is not in the channel), what doesn't happen when the installer is an admin.
I see each team can configure who can install apps, but I don't see any option to indicate that the app must be installed by an admin user and throw an error if you aren't and admin of the team your are trying to install the app into. Is there a way to do that?
I think I found the answer. We need to ask for the admin scope.
Instead of asking for the admin scope I strongly recommend to ask for specific scopes (during installation) that the app needs to perform its functionality. e.g. for channels.Invite its channels:write.
Then the app also works when installed by a non-admin, provided that the user has the necessary permissions.
To learn more about the permissions system check out the official documentation on the topic.
We have developed a web program for one of our customers, where we use the company’s AD to validate the user. We use function AdsOpenObject('WinNT://... and this work fine, whoever one fail use of wrong password, and the user is disabled, and need to be reactivated. The AD is set up to use 5 fail login before disabling, and their mail system is working accordingly.
Any ide where to look for or any idea of using another method to validate a user against an AD. We use Delphi but other solution is welcome.
On apps like twitter and snapchat, if you changed the password from the web, it wouldn’t allow you to get into the app without re-authenticating with the new password. When changing your password with Parse Open Source Framework, does it implement this functionality automatically on mobile or would the developer need to implement it themselves?
You have to do it by yourself. Check the following tutorial, section Handling an Invalidated Session:
https://parse.com/tutorials/integrating-facebook-in-android
I am developing a VB.NET based application which requires administrative privileges in order to run properly. However I went through several tutorials online and it all mentioned how to do this using a mainifest file. The problem with this technique is that whenever the program is opened I need to type in the Administrator password, however I want this to happen automatically. (The user should not type the Admin password, the password must be entered from the code level)
The following code is the closest I could find, but it too does not satisfy my problem,
Dim securePass As New Security.SecureString()
Dim pass As String = "password"
For Each c As Char In pass
securePass.AppendChar(c)
Next
' If there isn't a domain, set the argument to 'Nothing', as demonstrated below.
Process.Start("testsoftware\WinKBSel\WinKBSel1003.exe", "username", pass, Nothing)
Could anyone please let me know how I could do this without requiring the user to enter the administrator password?
You would probably be best splitting the application up, if you had a back-end service that runs under an administrator account your application could use that to do stuff it requires at an elevated privilege. UAC is designed to protect the user from themselves, you can get around it by adding a backend service... but be very careful about opening up holes in this way as they could be exploited by other applications/viruses. Storing an administror password inside an application is always a bad idea as the application could be decompiled and the password extracted.
You cannot create a program that will automatically log on as a user unless the username/password is already known.
That means that you're either restricted to running on systems where your app already knows the credentials, your user has to enter the credentials into your app, or your user has to use the "Run As" functionality in Windows to use the correct user.
If what you're proposing were actually possible, it would represent a huge security hole: you'd be able to run any code as any user without requiring authentication first. That is not a good thing!
Think about it like this: if you were sold a program that would automatically log on as administrator even without your permission, how would you feel?
UAC is designed so that you cannot do what you want. UAC ensures that in order to elevate the user must pass through a UAC dialog (either the admin consent dialog or the over-the-shoulder dialog). You need to adapt your expectations to the reality of UAC.
You don't need a code for this action, UAC is made so you can automatically log on without the user's permission. What you can do is use the manifest and change the startup so when the application starts it runs as administrator and asks for permission! Change the manifest. look it up!