Ignore:
Timestamp:
May 27, 2009, 9:09:42 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.8

Location:
branches/samba-3.2.x/source/nsswitch
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/nsswitch/pam_winbind.c

    r228 r232  
    23632363         * if it was set by winbind.
    23642364         */
    2365         if (ctx->ctrl & WINBIND_KRB5_AUTH) {
     2365        if ((ctx->ctrl & WINBIND_KRB5_AUTH) && pam_getenv(pamh, "KRB5CCNAME")) {
    23662366                pam_putenv(pamh, "KRB5CCNAME");
    23672367        }
  • branches/samba-3.2.x/source/nsswitch/pam_winbind.h

    r133 r232  
    2121#include <iniparser.h>
    2222
    23 #ifndef LINUX
     23#if defined(LINUX)
     24
     25/* newer versions of PAM have this in _pam_compat.h */
     26#ifndef PAM_AUTHTOK_RECOVERY_ERR
     27#define PAM_AUTHTOK_RECOVERY_ERR PAM_AUTHTOK_RECOVER_ERR
     28#endif
     29
     30#else /* !LINUX */
    2431
    2532/* Solaris always uses dynamic pam modules */
  • branches/samba-3.2.x/source/nsswitch/winbind_nss_solaris.c

    r204 r232  
    282282        int errnop;
    283283        struct nss_groupsbymem *gmem = (struct nss_groupsbymem *)args;
     284        long int numgids = gmem->numgids;
     285        long int maxgids = gmem->maxgids;
    284286
    285287        NSS_DEBUG("_nss_winbind_getgroupsbymember");
     
    287289        _nss_winbind_initgroups_dyn(gmem->username,
    288290                gmem->gid_array[0], /* Primary Group */
    289                 &gmem->numgids,
    290                 &gmem->maxgids,
     291                &numgids,
     292                &maxgids,
    291293                &gmem->gid_array,
    292294                gmem->maxgids,
    293295                &errnop);
     296
     297        gmem->numgids = numgids;
     298        gmem->maxgids = maxgids;
    294299
    295300        /*
  • branches/samba-3.2.x/source/nsswitch/winbind_nss_solaris.h

    r133 r232  
    8282                                   struct group *result, char *buffer,
    8383                                   size_t buflen, int *errnop);
     84NSS_STATUS _nss_winbind_initgroups_dyn(char *user, gid_t group, long int *start,
     85                                       long int *size, gid_t **groups,
     86                                       long int limit, int *errnop);
    8487
    8588#endif /* _WINBIND_NSS_SOLARIS_H */
Note: See TracChangeset for help on using the changeset viewer.