Bug 12424 - Function wbcGetgrlist returns an empty group list
Summary: Function wbcGetgrlist returns an empty group list
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Other (show other bugs)
Version: 4.3.12
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-14 09:21 UTC by Zhang Zujian
Modified: 2016-11-14 09:21 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zhang Zujian 2016-11-14 09:21:45 UTC
Function wbcGetgrlist(declared in nsswitch/libwbclient/wbclient.h) returns an empty group list.

Here is the description of the function:

/**
 * @brief Return the next struct group* entry from the pwent iterator
 *
 * This is similar to #wbcGetgrent, just that the member list is empty
 *
 * @param **grp     Pointer to resulting struct group* from the query.
 *
 * @return #wbcErr
 **/
wbcErr wbcGetgrlist(struct group **grp);


However, in nsswitch/winbind_struct_protocol.h, the corresponding implement is:

/* this is like GETGRENT but gives an empty group list */
WINBINDD_GETGRLST,