From: Kai Blin Date: Sun, 23 Nov 2008 10:17:42 +0000 (+0100) Subject: libwbclient: Add placeholder function for WINBINDD_GETGRLST X-Git-Tag: samba-4.0.0alpha6~480^2~121 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ddf821685436f7f49f49dda8fb4abb63ea1945cb;p=thirdparty%2Fsamba.git libwbclient: Add placeholder function for WINBINDD_GETGRLST --- diff --git a/source3/nsswitch/libwbclient/wbc_pwd.c b/source3/nsswitch/libwbclient/wbc_pwd.c index 0d17b312ef4..5bb9a9fde4f 100644 --- a/source3/nsswitch/libwbclient/wbc_pwd.c +++ b/source3/nsswitch/libwbclient/wbc_pwd.c @@ -376,6 +376,20 @@ wbcErr wbcGetgrent(struct group **grp) return WBC_ERR_NOT_IMPLEMENTED; } +/** @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) +{ + return WBC_ERR_NOT_IMPLEMENTED; +} + /** @brief Return the unix group array belonging to the given user * * @param *account The given user name diff --git a/source3/nsswitch/libwbclient/wbclient.h b/source3/nsswitch/libwbclient/wbclient.h index 2495b9604a3..9e74e1ed3c9 100644 --- a/source3/nsswitch/libwbclient/wbclient.h +++ b/source3/nsswitch/libwbclient/wbclient.h @@ -602,6 +602,8 @@ wbcErr wbcEndgrent(void); wbcErr wbcGetgrent(struct group **grp); +wbcErr wbcGetgrlist(struct group **grp); + wbcErr wbcGetGroups(const char *account, uint32_t *num_groups, gid_t **_groups);