Ignore:
Timestamp:
Jul 6, 2011, 8:21:13 PM (14 years ago)
Author:
Herwig Bauernfeind
Message:

Samba 3.5: Update trunk to 3.5.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/libnet/libnet_join.c

    r414 r599  
    104104        ADS_STATUS status;
    105105        ADS_STRUCT *my_ads = NULL;
     106        char *cp;
    106107
    107108        my_ads = ads_init(dns_domain_name,
     
    115116                SAFE_FREE(my_ads->auth.user_name);
    116117                my_ads->auth.user_name = SMB_STRDUP(user_name);
     118                if ((cp = strchr_m(my_ads->auth.user_name, '@'))!=0) {
     119                        *cp++ = '\0';
     120                        SAFE_FREE(my_ads->auth.realm);
     121                        my_ads->auth.realm = smb_xstrdup(cp);
     122                        strupper_m(my_ads->auth.realm);
     123                }
    117124        }
    118125
Note: See TracChangeset for help on using the changeset viewer.