Lines Matching refs:sdom
38 DLIST_FOR_EACH(sditer, opts->sdom) {
62 DLIST_FOR_EACH(sditer, opts->sdom) {
93 struct sdap_domain *sdom;
96 sdom = talloc_zero(opts, struct sdap_domain);
97 if (sdom == NULL) {
100 sdom->dom = dom;
101 sdom->head = &opts->sdom;
104 ret = domain_to_basedn(sdom, sdom->dom->name, &sdom->basedn);
112 talloc_set_destructor((TALLOC_CTX *)sdom, sdap_domain_destructor);
113 DLIST_ADD_END(opts->sdom, sdom, struct sdap_domain *);
115 if (_sdom) *_sdom = sdom;
120 talloc_free(sdom);
132 struct sdap_domain *sdom, *sditer;
150 ret = sdap_domain_add(sdap_id_ctx->opts, dom, &sdom);
163 sdom = sditer;
167 talloc_zfree(sdom->search_bases);
168 sdom->search_bases = talloc_array(sdom, struct sdap_search_base *, 2);
169 if (sdom->search_bases == NULL) {
172 sdom->search_bases[1] = NULL;
174 ret = sdap_create_search_base(sdom, sdom->basedn, LDAP_SCOPE_SUBTREE,
175 NULL, &sdom->search_bases[0]);
181 sdom->user_search_bases = sdom->search_bases;
182 sdom->group_search_bases = sdom->search_bases;
183 sdom->netgroup_search_bases = sdom->search_bases;
184 sdom->sudo_search_bases = sdom->search_bases;
185 sdom->service_search_bases = sdom->search_bases;
186 sdom->autofs_search_bases = sdom->search_bases;
196 struct sdap_domain *sdom;
198 sdom = sdap_domain_get(opts, dom);
199 if (sdom == NULL) return;
201 DLIST_REMOVE(*(sdom->head), sdom);