Home > General > Error_account_restriction


Uso === === Use o seguinte em Seu Código Instalador NSIS n Descobrir Domínio UM SE, nome de usuario, Senha e autenticação: highlight Push a_username " Push ADOMAIN " Push a_password The description in the MS docs for this error code is "Logon failure: user account restriction. I will test tonight. Função == == Eu não escrevi uma macro para esta função. weblink

Other OS's will be similar. Why? From MSDN To get a primary token that represents the specified user, call the LogonUser function. Sign in using Search within: Articles Quick Answers Messages home articles Chapters and Sections> Search Latest Articles Latest Tips/Tricks Top Articles Beginner Articles Technical Blogs Posting/Update Guidelines Article Help Forum Article

Why don't you just explain what exactly you're trying to accomplish? and other countries. Because a user chose not to have a password. You're right though, there are other ways to achieve this, and I did just that.

How about Window Vista?? This article describes how to detect empty password users Introduction This article describes how to detect empty password users in the Windows NT environment using Visual C++ 6. What I can get from the thread topic is that your "way of using a documented API" was not successful. This is some simple empty password detection code that runs on Windows NT; it does not support Windows 9x.

If the product or version you are looking for is not listed, you can use this search box to search TechNet, the Microsoft Knowledge Base, and TechNet Blogs for more information. Also what operating system are you running it on? I recommend turning off the policy for testing to find out if you can use the api - I suspect you will. I converter it to C# easily, the only trick is that you dont need to call the GetLastError Function by declare it as external it is more easy: var error =

Originally Posted by Arjay You're missing the point. Originally Posted by ahmd Because a user chose not to have a password. Why? You may have to register or Login before you can post: click the register link above to proceed.

Disclaimers CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Register Help Remember Me? The third requirement is that when the update service finishes I have to start a third program that unlike that service has to run in a user context (it shows user That is not a good approach either. Alternatively, you can call the DuplicateTokenEx function to convert an impersonation token into a primary token.

See this article for starting the group policy editor in WinXP. have a peek at these guys For some reason LogonUser fails with the error code 1327 = ERROR_ACCOUNT_RESTRICTION when the user password is blank and there's nothing in documentation that can explain it. nice work Thanks, Anand. The first idea is using the LogonUser API.

I will try it Kwon Yong Hwi13-Aug-07 23:21 Kwon Yong Hwi13-Aug-07 23:21 I tested it Windows Vista 32 and 64 bit, and it works well. As a bet, my friend was able to access my Windows XP documents folder under a password-protected user account using the Windows 2000 recovery disc and a tutorial he found on BOOL bLoggedOn = ::LogonUser(pszUserName, pszPassword, NULL, // ... Thanks in advance Sign In·ViewThread·Permalink Re: Domain user gets locked out jamalhaider18-Jun-08 20:52 jamalhaider18-Jun-08 20:52 I second you for this.

And Windows chose not to serve him in this case. There probably isn't many users in this day and age that are dumb enough to be running an account without a password. Look on YouTube, there's a bunch of 14-year-olds explaining how to bypass it in a couple of hours.

HANDLE hToken = NULL; BOOL bLoggedOn = ::LogonUser(pszUserName, "", NULL, LOGON32_LOGON_INTERACTIVE, LOGON32_PROVIDER_DEFAULT, &hToken); DWORD dwError = GetLastError(); dwError has the error code of LogonUser.

This article is so simple that you can understand it even if you are not a professional. If a password policy has been set, then you wouldn't expect to be able to call an api and have it work, would you? Thanks, brraghava Reply With Quote November 3rd, 2009,12:42 AM #3 Arjay View Profile View Forum Posts Moderator / MS MVP Power Poster Join Date Aug 2004 Posts 12,386 Re: LogonUser fails Microsoft Visual C++ MVP (from 2008 to present) Website: You may also be interested in...

Originally Posted by Igor Vartanov There are number of alternatives that never require you to provide a password in clear text. That is the point. Endif; _MSWAuthenticate_nsh Destacar-nsis Recursos == e == Links * NSIS forum [] discussão * [Plugin System] Funções API utilizados: * [Http:// LogonUser] * [Http:// GetLastError] Why?

The answer is simple: just check the error code. But, even if I tweak it on my particular system, will it be possible to do so on a user system without applying a major change to the system? Linux questions C# questions ASP.NET questions fabric questions SQL questions discussionsforums All Message Boards... My Code Guru Articles Reply With Quote November 4th, 2009,11:55 AM #6 ahmd View Profile View Forum Posts Senior Member Join Date Feb 2009 Location Portland, OR Posts 1,488 Re: LogonUser

Page 1 of 2 12 Last Jump to page: Results 1 to 15 of 21 Thread: LogonUser fails with empty password.

© Copyright 2017 All rights reserved.