This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: Name aliasing in security.cc
- From: Corinna Vinschen <cygwin-patches at cygwin dot com>
- To: cygwin-patches at cygwin dot com
- Date: Mon, 3 Jun 2002 19:06:57 +0200
- Subject: Re: Name aliasing in security.cc
- References: <3.0.5.32.20020530215740.007fc380@mail.attbi.com>
On Thu, May 30, 2002 at 09:57:40PM -0400, Pierre A. Humblet wrote:
> a) keep lookup_name() as it is?
> b) remove it entirely?
> c) call it whenever a SID is missing from a passwd/group entry, using
> user independent search rules (except if a user looks up itself)?
I think b) is the way to go. IMHO we should deprecate using ntsec
w/o SID in the passwd/group files.
> 2002-05-30 Pierre Humblet <pierre.humblet@ieee.org>
>
> * security.cc (lsa2wchar): Suppressed.
> (get_lsa_srv_inf): Suppressed.
> (get_logon_server_and_user_domain): Suppressed.
> (get_logon_server): Essentially new.
> (get_user_groups): Add "domain" argument. Only lookup the
> designated server and use "domain" in LookupAccountName.
> (is_group_member): Simplify the arguments.
> (get_user_local_groups): Simplify the arguments. Do only a
> local lookup. Use "BUILTIN" and local domain in LookupAccountName.
> (get_user_primary_group). Only lookup the designated server.
> (get_group_sidlist): Remove logonserver argument. Do not lookup
> any server for the SYSTEM account.
> (create_token): Delete logonserver and call to get_logon_server.
> Adjust arguments of get_group_sidlist, see above.
> * security.h: Delete declaration of get_logon_server_and_user_domain
> and add declaration of get_logon_server.
> * uinfo.cc (internal_get_login): Call get_logon_server instead of
> get_logon_server_and_user_domain.
Applied.
Thanks,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.