diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2006-12-16 22:52:27 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2006-12-16 22:52:27 +0100 |
commit | 1f346957724bc386fc6603137843a4fe4a0367ed (patch) | |
tree | fc4b843f3fcc3d770389e5e4b8845c1c3c2cb07b /nss | |
parent | 2858543a5dd9225d1972c61db658151f5894e4fc (diff) |
remove _nss_ldap_initgroups_dyn() from interface for now because it is currently not working
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@162 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nss')
-rw-r--r-- | nss/exports.linux | 2 | ||||
-rw-r--r-- | nss/group.c | 2 | ||||
-rw-r--r-- | nss/prototypes.h | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/nss/exports.linux b/nss/exports.linux index 62c0313..1a4cac8 100644 --- a/nss/exports.linux +++ b/nss/exports.linux @@ -19,7 +19,7 @@ EXPORTED { # group - groups of users _nss_ldap_getgrnam_r; _nss_ldap_getgrgid_r; - _nss_ldap_initgroups_dyn; +# _nss_ldap_initgroups_dyn; _nss_ldap_setgrent; _nss_ldap_getgrent_r; _nss_ldap_endgrent; diff --git a/nss/group.c b/nss/group.c index 85691ae..cddfe43 100644 --- a/nss/group.c +++ b/nss/group.c @@ -60,6 +60,7 @@ enum nss_status _nss_ldap_getgrgid_r(gid_t gid,struct group *result,char *buffer NSS_BYTYPE(NSLCD_ACTION_GROUP_BYGID,gid,gid_t,read_group); } +#ifdef REENABLE_WHEN_WORKING /* this function returns a list of groups, documentation for the interface is scarce (any pointers are welcome) but this is what is assumed the parameters mean: @@ -118,6 +119,7 @@ enum nss_status _nss_ldap_initgroups_dyn( fclose(fp); return NSS_STATUS_SUCCESS; } +#endif /* REENABLE_WHEN_WORKING */ /* thread-local file pointer to an ongoing request */ static __thread FILE *grentfp; diff --git a/nss/prototypes.h b/nss/prototypes.h index 39d4453..1da30d5 100644 --- a/nss/prototypes.h +++ b/nss/prototypes.h @@ -99,7 +99,9 @@ enum nss_status _nss_ldap_endetherent(void); /* group - groups of users */ enum nss_status _nss_ldap_getgrnam_r(const char *name,struct group *result,char *buffer,size_t buflen,int *errnop); enum nss_status _nss_ldap_getgrgid_r(gid_t gid,struct group *result,char *buffer,size_t buflen,int *errnop); +/* enum nss_status _nss_ldap_initgroups_dyn(const char *user,gid_t group,long int *start,long int *size,gid_t **groupsp,long int limit,int *errnop); +*/ enum nss_status _nss_ldap_setgrent(int stayopen); enum nss_status _nss_ldap_getgrent_r(struct group *result,char *buffer,size_t buflen,int *errnop); enum nss_status _nss_ldap_endgrent(void); @@ -116,7 +118,6 @@ enum nss_status _nss_ldap_endhostent(void); enum nss_status _nss_ldap_setnetgrent(const char *group,struct __netgrent *result); enum nss_status _nss_ldap_getnetgrent_r(struct __netgrent *result,char *buffer,size_t buflen,int *errnop); enum nss_status _nss_ldap_endnetgrent(struct __netgrent *result); -/* TODO: should there be a innetgr() equivalent? */ /* networks - network names and numbers */ enum nss_status _nss_ldap_getnetbyname_r(const char *name,struct netent *result,char *buffer,size_t buflen,int *errnop,int *h_errnop); |