Changeset 22 for trunk/samba/source/nsswitch/winbindd_ads.c
- Timestamp:
- Mar 25, 2007, 5:18:51 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/samba/source/nsswitch/winbindd_ads.c
r1 r22 41 41 ADS_STRUCT *ads; 42 42 ADS_STATUS status; 43 fstring dc_name; 44 struct in_addr dc_ip; 43 45 44 46 DEBUG(10,("ads_cached_connection\n")); … … 115 117 ads->auth.renewable = WINBINDD_PAM_AUTH_KRB5_RENEW_TIME; 116 118 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 117 125 status = ads_connect(ads); 118 126 if (!ADS_ERR_OK(status) || !ads->config.realm) { … … 608 616 size_t num_groups = 0; 609 617 DOM_SID *group_sids = NULL; 610 char *escaped_dn;611 618 int i; 612 619 … … 620 627 } 621 628 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, 628 630 ADS_EXTENDED_DN_HEX_STRING); 629 631 630 SAFE_FREE(escaped_dn);631 632 632 if (!ADS_ERR_OK(rc) || !res) { 633 633 DEBUG(1,("lookup_usergroups_memberof ads_search member=%s: %s\n",
Note:
See TracChangeset
for help on using the changeset viewer.