Ignore:
Timestamp:
Jan 15, 2010, 8:23:30 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3 to 3.3.10 (source)

Location:
branches/samba-3.3.x/source/winbindd
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/winbindd/idmap_ldap.c

    r274 r370  
    854854        CHECK_ALLOC_DONE(ctx->url);
    855855
     856        trim_char(ctx->url, '\"', '\"');
     857
    856858        tmp = lp_parm_const_string(-1, config_option, "ldap_base_dn", NULL);
    857859        if ( ! tmp || ! *tmp) {
  • branches/samba-3.3.x/source/winbindd/winbindd_cred_cache.c

    r206 r370  
    2424#include "includes.h"
    2525#include "winbindd.h"
     26#include "smb_krb5.h"
     27
    2628#undef DBGC_CLASS
    2729#define DBGC_CLASS DBGC_WINBIND
  • branches/samba-3.3.x/source/winbindd/winbindd_pam.c

    r223 r370  
    2525#include "includes.h"
    2626#include "winbindd.h"
     27#include "smb_krb5.h"
     28
    2729#undef DBGC_CLASS
    2830#define DBGC_CLASS DBGC_WINBIND
     
    811813{
    812814        struct winbindd_domain *domain;
    813         fstring name_domain, name_user;
    814         char *mapped_user = NULL;
     815        fstring name_domain, name_user, mapped_user;
     816        char *mapped = NULL;
    815817        NTSTATUS result;
    816818        NTSTATUS name_map_status = NT_STATUS_UNSUCCESSFUL;
     
    836838        name_map_status = normalize_name_unmap(state->mem_ctx,
    837839                                               state->request.data.auth.user,
    838                                                &mapped_user);
     840                                               &mapped);
    839841
    840842        /* If the name normalization didnt' actually do anything,
    841843           just use the original name */
    842844
    843         if (!NT_STATUS_IS_OK(name_map_status) &&
    844             !NT_STATUS_EQUAL(name_map_status, NT_STATUS_FILE_RENAMED))
    845         {
    846                 mapped_user = state->request.data.auth.user;
     845        if (NT_STATUS_IS_OK(name_map_status)
     846            ||NT_STATUS_EQUAL(name_map_status, NT_STATUS_FILE_RENAMED)) {
     847                fstrcpy(mapped_user, mapped);
     848        } else {
     849                fstrcpy(mapped_user, state->request.data.auth.user);
    847850        }
    848851
  • branches/samba-3.3.x/source/winbindd/winbindd_rpc.c

    r342 r370  
    788788                return result;
    789789
    790         *num_names = rids->count;
    791         rid_mem = rids->rids;
    792 
    793         if (!*num_names) {
     790        if (!rids || !rids->count) {
    794791                names = NULL;
    795792                name_types = NULL;
     
    797794                return NT_STATUS_OK;
    798795        }
     796
     797        *num_names = rids->count;
     798        rid_mem = rids->rids;
    799799
    800800        /* Step #2: Convert list of rids into list of usernames.  Do this
Note: See TracChangeset for help on using the changeset viewer.