Ignore:
Timestamp:
Mar 25, 2007, 5:18:51 PM (18 years ago)
Author:
Yuri Dario
Message:

Source code upgrade to 3.0.25pre2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/samba/source/nsswitch/winbindd_ads.c

    r1 r22  
    4141        ADS_STRUCT *ads;
    4242        ADS_STATUS status;
     43        fstring dc_name;
     44        struct in_addr dc_ip;   
    4345
    4446        DEBUG(10,("ads_cached_connection\n"));
     
    115117        ads->auth.renewable = WINBINDD_PAM_AUTH_KRB5_RENEW_TIME;
    116118
     119        /* Setup the server affinity cache.  We don't reaally care
     120           about the name.  Just setup affinity and the KRB5_CONFIG
     121           file. */
     122
     123        get_dc_name( ads->server.workgroup, ads->server.realm, dc_name, &dc_ip );
     124       
    117125        status = ads_connect(ads);
    118126        if (!ADS_ERR_OK(status) || !ads->config.realm) {
     
    608616        size_t num_groups = 0;
    609617        DOM_SID *group_sids = NULL;
    610         char *escaped_dn;
    611618        int i;
    612619
     
    620627        }
    621628
    622         if (!(escaped_dn = escape_ldap_string_alloc(user_dn))) {
    623                 status = NT_STATUS_NO_MEMORY;
    624                 goto done;
    625         }
    626 
    627         rc = ads_search_retry_extended_dn(ads, &res, escaped_dn, attrs,
     629        rc = ads_search_retry_extended_dn(ads, &res, user_dn, attrs,
    628630                                          ADS_EXTENDED_DN_HEX_STRING);
    629631       
    630         SAFE_FREE(escaped_dn);
    631 
    632632        if (!ADS_ERR_OK(rc) || !res) {
    633633                DEBUG(1,("lookup_usergroups_memberof ads_search member=%s: %s\n",
Note: See TracChangeset for help on using the changeset viewer.