Cygwin: passwd/group: rename get_group_name to get_account_name
The function is the same for user and grou accounts. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
507982af79
commit
09bbcf8788
@ -60,8 +60,7 @@ public:
|
|||||||
/* User only */
|
/* User only */
|
||||||
gid_t get_primary_gid () { return get_num_attribute (L"primaryGroupID"); }
|
gid_t get_primary_gid () { return get_num_attribute (L"primaryGroupID"); }
|
||||||
gid_t get_unix_uid () { return get_num_attribute (L"uidNumber"); }
|
gid_t get_unix_uid () { return get_num_attribute (L"uidNumber"); }
|
||||||
/* group only */
|
PWCHAR get_account_name ()
|
||||||
PWCHAR get_group_name ()
|
|
||||||
{ return get_string_attribute (L"sAMAccountName"); }
|
{ return get_string_attribute (L"sAMAccountName"); }
|
||||||
gid_t get_unix_gid () { return get_num_attribute (L"gidNumber"); }
|
gid_t get_unix_gid () { return get_num_attribute (L"gidNumber"); }
|
||||||
};
|
};
|
||||||
|
@ -1980,7 +1980,7 @@ pwdgrp::fetch_account_from_windows (fetch_user_arg_t &arg, cyg_ldap *pldap)
|
|||||||
PWCHAR val;
|
PWCHAR val;
|
||||||
|
|
||||||
if (cldap->fetch_ad_account (sid, true)
|
if (cldap->fetch_ad_account (sid, true)
|
||||||
&& (val = cldap->get_group_name ()))
|
&& (val = cldap->get_account_name ()))
|
||||||
{
|
{
|
||||||
wcpcpy (name, val);
|
wcpcpy (name, val);
|
||||||
wcpcpy (dom, L"BUILTIN");
|
wcpcpy (dom, L"BUILTIN");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user