"LogonUser()" confusion
From: Rob Bolton (_nospam_at__nospam.com)
Date: 07/01/04
- Next message: Igor Tandetnik: "Re: Installing Driver from app in Windows 98"
- Previous message: Caspar van der Heiden: "Installing Driver from app in Windows 98"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 1 Jul 2004 12:31:46 -0400
Hi there,
Can someone explain why "LogonUser()" succeeds even after passing a
non-existent domain name argument? In Keith Brown's book "Programming
Windows Security", he states that passing NULL for this argument means that
Windows will "search for the closest authority (including the local
authority) with a matching account name" (page 96). This behaviour isn't
documented in MSDN though he says otherwise, but even if it's true (can
someone confirm this), why is a non-existent (non-NULL) domain name
accepted? It appears that the closest authority is in fact being sought out
which is not what the programmer is asking for (to log on a user in a
specific domain, not some other). Any assistance will be appreciated. Thanks
(BTW, this same behaviour also manifests itself in "NetUseAdd()").
- Next message: Igor Tandetnik: "Re: Installing Driver from app in Windows 98"
- Previous message: Caspar van der Heiden: "Installing Driver from app in Windows 98"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|