home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.win32
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!ux1.cso.uiuc.edu!news.iastate.edu!martin
- From: martin@iastate.edu (Martin R Calsyn)
- Subject: Undocumented API calls
- Message-ID: <BzGtJp.IBH@news.iastate.edu>
- Sender: news@news.iastate.edu (USENET News System)
- Organization: Iowa State University, Ames, IA
- Date: Fri, 18 Dec 1992 17:21:24 GMT
- Lines: 34
-
- I recently posted here and on Compu$erve requesting advice on how to
- determine the home directory for a user. MicroSoft responded on CI$ and
- indicated that I should user the HOMEPATH environment variable. This is
- perhaps tolerable for determining the homedir for the currently active
- user but not real desirable since it's a secondary, non-secure source of
- that information.
-
- It's not really workable in the larger sense because you can't get at
- the homedir and other profile info for an arbitrary user that way (as
- might be needed by certain user-administration programs). In any case,
- MS has been responsive and is examining the issue and as I understand
- it, considering whether to `expose' the calls they use.
-
- In a related issue (which I posed on CI$ this AM), there are plenty of
- routines for managing security objects, but the one conspicuous by its
- absence is the routine to take a user name and password and get back an
- access token. Unless I've developed a documentation blind-spot, then
- it's just not there.
-
- I'm in the process of porting ftpd, which will turn out to be an
- impossible task if I can't use the supplied name and password to obtain
- tokens, etc with which to control file access. The same would be true
- of any attempt to port telnetd or any other application which does not
- get its token from WINLOGON, the services manager, or by using a
- client-provided token (impersonation).
-
- Have I missed something technical here or is MS keeping some pieces of
- the puzzle to themselves?
-
- --
- Martin R. Calsyn martin@iastate.edu
- Software Innovations Incorporated voice: (515) 232-9196
- P.O. Box 644 (800) 728-1525
- Ames, Iowa 50010 fax: (515) 233-6209
-