user credential validation after user rename [closed] - c++

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
Using KB180548 in a native c++ application, the user can log in in this application with his Windows credentials.
However, a strange bug appears: if the user is renamed, the old(original) name still work with this authentication method, but the new name does not!
What is the problem? Why does Windows not acknowledge the name change in all instances?
On a side note, a long time ago, when interfacing with another software, which also used Windows accounts for log in, I found something similar in their software:
first, they had a limitation in that a username containing spaces did not work. To remedy that, I renamed the user. But this renamed user still did not work. Creating a new user with the same name worked...

I believe Windows caches credential information until the next time you log in. This is how you can log into your corporate laptop, even when that laptop isn't currently connected to your company's domain controller.

Solved it. The Control Panel based user renaming is a farce. To really change the username, as opposed as just the full name, type netplwiz in a command prompt.

Related

How to avoid a .exe to be identified as "File might be dangerous" by antivirus? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
The .exe I'm building is currently recognized by Avast as "File might be dangerous". It is not a false positive because the antivirus software finally doesn't find any virus in it, but just an alarm saying that this file has been "rarely downloaded".
I've contacted Avast but they don't seem to offer a solution except sending them the .exe for whitelisting.
Things I have tried, but that didn't solve the problem:
Have proper resource.rc file in Visual C++, with details about the .exe: BLOCK "StringFileInfo", VALUE "CompanyName", "MyCompany\0", etc.
Use makecert, certutil, signtool as detailed in this answer: How do I create a self-signed certificate for code signing on Windows?
Things that won't work:
Add to local avast exclusion (I can't ask every customer to do this!)
Redo a "Submit file to Avast Lab for scan" for each new build of the .exe. It's not scalable to have to re-submit the .exe to Avast (and all other 50+ antivirus software!) for each new build.
Paying $200 per year for code-signing (it might work, but I don't find it fair to have to give a $xxx ransom per year just for being whitelisted)
Are there common solutions that can help to avoid "Rarely downloaded file / File might be suspicious" antivirus alarms?
Note: I've read How to prevent my .exe to be recognized as malware?, how can I make my software not to be discovered by antivirus?, but it did not really cover the topic here.
Note2: I've read these guidelines, etc. but it did not currently help.
It depends of what this exe going to do. I've seen these av balloons two times.
First when I've add some compiled assembler code into (signed?) exe file and another one happens when I'd deploy system wide hook to catch all keystrokes in the system while app is inactive (exe were not enough for it and there were own dll).

What is registry equivalent for Linux? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
Recently I have been involved in code porting from Windows to a Linux. I came across so many windows functions which retrieve registry keys and edit it. I am not sure what can be the equivalent approach for Linux. I know registry is just a windows database which stores data in "Key=value" format. I am thinking about INI file. Other than this is there anything that is more efficient?
I am not asking from a storage perspective. My question is related to registry equivalent in Linux. How can we achieve registry structure in Linux?
A typical way to store configuration in Linux per user is to store it in /home/username/.someapp, where someapp is the name of your program. I love this in Linux actually because when I move to another computer, all I have to do is save/move my home directory, and that will save all my configuration.
On Windows, the registry has a user part HKEY_CURRENT_USER, and others that represent any user, such as HKEY_LOCAL_MACHINE, being global for the whole system. For the user part, you should put the configuration in the user directory like I explained before, because it shouldn't require any super-user privileges. The local machine part you can choose either to also put in the user directory, where then every user will have separate configuration, or put it in something like /var/lib/someapp, but keep in mind that it'll be read-only then.
With all this, keep in mind that you should create your own configuration format, or use some library, such as libconfig, XML or JSON.
Linux has XDG Base Directory specification. If you want to use config file(s) for your app (doesn't matter which format you prefer - INI, JSON, YAML, SQLite database, etc), please store it in directory $XDG_CONFIG_HOME/your_app_name
Usually many software take the config files in the /etc, but it's a static configuration as I think. If you have something changed configuration from the software (by user or after something external) it's good idea to put it into /var/lib/(your_project_short_name)/(your_project_config_files) I suppose, as it do Mysql, Postgresql for the database files and the Postgresql's config files etc.

mutt: how can I open a subfolder that has subfolders? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I want to start using mutt again after about 15 years. I first want to use it to access my gmail account. I'm running into a simple problem now: how to open a subfolder (tag in gmail) that has subfolders of its own?
When I go to TODO/ and press enter mutt takes me into the TODO directory. I simply want to open the TODO tag. How can I do that?
To view messages outside your inbox, type c and either type ? to view a list of all your tags and folders, or prepend your tag with an equals sign. So, to view messages tagged 'work', you'd type c, then =work, then hit Return.
Found the info on this post

Github & Trello lists [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I'm working on a project that's just about done.
Now I just need a list that shows all the things I've worked on. Luckily I've been using Github and Trello to keep track of all my work.
Does anyone know how to get a simple list of commits/activities from any of these 2 services?
I just need a simple list like this:
Date:
Title:
Description:
I'm working on a Mac but I'm using the Github client.
Github: In the terminal, you can navigate to the folder that you are working in and type git log. It will give you a list of commits. If you would like to save it in a text file you could typegit log > commits.txt.
Trello: In Trello you can go to the board you are working on and select print form the menu. This will give you a list of activities.

Saving data into file at free host [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have created an app (some kind of "client" app) that will have a "bug report" feature. The feature consists with pure text area from which the text should be sent and saved to a text file on the free host. Is it possible? If so, which c++ library could give me such ability?
EDIT:
In my intentions it had to be a simple application that a user has on his own computer. After finding some bug in my app there should be the "bug report" feature that will allow him to send the data (pure text) to some place that only I could reach. I was just thinking about free hosting (because it's... free), and save the data into a text file there. I'm sorry if my question wasn't appropriate.
If your free hosting permits it (and you should check that) you might code a CGI program, or a fastCGI application. There are several C++ libraries which might help, like libcgicc etc.
If you can afford a web server, there exist C++ libraries providing HTTP service, in particular Wt or (in C) Onion etc.
You could also consider other technologies, like OpaLang or Ocsigen (but I would not recommend PHP, even if it is a lot used).
MAybe your hosting enable ssh so you could use scp ....
And if your application is free software (e.g. GPL licensed), several free software hosting (freecode, sourceforge, github, gitorious ...) may offer also a bug database facility.