Changeset 204 for branches/samba-3.2.x/source/winbindd/idmap.c
- Timestamp:
- May 20, 2009, 6:46:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/winbindd/idmap.c
r141 r204 76 76 } } while(0) 77 77 78 static struct idmap_methods *get_methods(struct idmap_backend *be, 79 const char *name) 78 static struct idmap_methods *get_methods(const char *name) 80 79 { 81 80 struct idmap_backend *b; 82 81 83 for (b = b e; b; b = b->next) {82 for (b = backends; b; b = b->next) { 84 83 if (strequal(b->name, name)) { 85 84 return b->methods; … … 90 89 } 91 90 92 static struct idmap_alloc_methods *get_alloc_methods( 93 struct idmap_alloc_backend *be, 94 const char *name) 91 static struct idmap_alloc_methods *get_alloc_methods(const char *name) 95 92 { 96 93 struct idmap_alloc_backend *b; 97 94 98 for (b = be; b; b = b->next) {95 for (b = alloc_backends; b; b = b->next) { 99 96 if (strequal(b->name, name)) { 100 97 return b->methods; … … 141 138 } 142 139 143 test = get_methods( backends,name);140 test = get_methods(name); 144 141 if (test) { 145 142 DEBUG(0,("Idmap module %s already registered!\n", name)); … … 194 191 } 195 192 196 test = get_alloc_methods( alloc_backends,name);193 test = get_alloc_methods(name); 197 194 if (test) { 198 195 DEBUG(0,("idmap_alloc module %s already registered!\n", name)); … … 455 452 456 453 /* get the backend methods for this domain */ 457 dom->methods = get_methods( backends,parm_backend);454 dom->methods = get_methods(parm_backend); 458 455 459 456 if ( ! dom->methods) { 460 457 ret = smb_probe_module("idmap", parm_backend); 461 458 if (NT_STATUS_IS_OK(ret)) { 462 dom->methods = get_methods(backends, 463 parm_backend); 459 dom->methods = get_methods(parm_backend); 464 460 } 465 461 } … … 542 538 543 539 /* get the backend methods for this domain */ 544 dom->methods = get_methods(backends, compat_backend); 545 540 dom->methods = get_methods(compat_backend); 546 541 if ( ! dom->methods) { 547 542 ret = smb_probe_module("idmap", compat_backend); 548 543 if (NT_STATUS_IS_OK(ret)) { 549 dom->methods = get_methods(backends, 550 compat_backend); 544 dom->methods = get_methods(compat_backend); 551 545 } 552 546 } … … 607 601 dom->readonly = True; 608 602 609 /* get the backend methods for passdb*/610 dom->methods = get_methods( backends,"nss");603 /* get the backend methods for nss */ 604 dom->methods = get_methods("nss"); 611 605 612 606 /* (the nss module is always statically linked) */ … … 664 658 665 659 /* get the backend methods for passdb */ 666 dom->methods = get_methods( backends,"passdb");660 dom->methods = get_methods("passdb"); 667 661 668 662 /* (the passdb module is always statically linked) */ … … 756 750 IDMAP_CHECK_ALLOC(idmap_alloc_ctx); 757 751 758 idmap_alloc_ctx->methods = get_alloc_methods(alloc_backends, 759 alloc_backend); 752 idmap_alloc_ctx->methods = get_alloc_methods(alloc_backend); 760 753 if ( ! idmap_alloc_ctx->methods) { 761 754 ret = smb_probe_module("idmap", alloc_backend); 762 755 if (NT_STATUS_IS_OK(ret)) { 763 756 idmap_alloc_ctx->methods = 764 get_alloc_methods(alloc_backends, 765 alloc_backend); 757 get_alloc_methods(alloc_backend); 766 758 } 767 759 }
Note:
See TracChangeset
for help on using the changeset viewer.