Changeset 140 for branches/samba-3.0/source/nsswitch/winbindd_util.c
- Timestamp:
- Jul 11, 2008, 1:13:42 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/nsswitch/winbindd_util.c
r124 r140 29 29 30 30 extern struct winbindd_methods cache_methods; 31 extern struct winbindd_methods passdb_methods; 31 extern struct winbindd_methods builtin_passdb_methods; 32 extern struct winbindd_methods sam_passdb_methods; 32 33 33 34 /** … … 84 85 return False; 85 86 87 if ( IS_DC ) 88 return sid_check_is_builtin(sid); 89 86 90 return (sid_check_is_domain(sid) || sid_check_is_builtin(sid)); 87 91 } … … 91 95 if (sid == NULL) 92 96 return False; 97 98 if ( IS_DC ) 99 return sid_check_is_in_builtin(sid); 93 100 94 101 return (sid_check_is_in_our_domain(sid) || sid_check_is_in_builtin(sid)); … … 141 148 ZERO_STRUCTP(domain); 142 149 143 /* prioritise the short name */ 144 if (strchr_m(domain_name, '.') && alternative_name && *alternative_name) { 145 fstrcpy(domain->name, alternative_name); 146 fstrcpy(domain->alt_name, domain_name); 147 } else { 148 fstrcpy(domain->name, domain_name); 149 if (alternative_name) { 150 fstrcpy(domain->alt_name, alternative_name); 151 } 150 fstrcpy(domain->name, domain_name); 151 if (alternative_name) { 152 fstrcpy(domain->alt_name, alternative_name); 152 153 } 153 154 … … 524 525 525 526 domain = add_trusted_domain(get_global_sam_name(), NULL, 526 & passdb_methods, get_global_sam_sid());527 &sam_passdb_methods, get_global_sam_sid()); 527 528 if ( role != ROLE_DOMAIN_MEMBER ) { 528 529 domain->primary = True; … … 532 533 /* BUILTIN domain */ 533 534 534 domain = add_trusted_domain("BUILTIN", NULL, & passdb_methods,535 domain = add_trusted_domain("BUILTIN", NULL, &builtin_passdb_methods, 535 536 &global_sid_Builtin); 536 537 setup_domain_child(domain, &domain->child, NULL);
Note:
See TracChangeset
for help on using the changeset viewer.