• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/samba-3.5.8/source4/dsdb/samdb/ldb_modules/

Lines Matching refs:ac

203 	struct kludge_acl_context *ac;
207 ac = talloc_get_type(req->context, struct kludge_acl_context);
208 data = talloc_get_type(ldb_module_get_private(ac->module), struct kludge_private_data);
209 ldb = ldb_module_get_ctx(ac->module);
212 return ldb_module_done(ac->req, NULL, NULL,
216 return ldb_module_done(ac->req, ares->controls,
222 if (ac->allowedAttributes) {
227 return ldb_module_done(ac->req, NULL, NULL, ret);
230 if (ac->allowedChildClasses) {
235 return ldb_module_done(ac->req, NULL, NULL, ret);
241 switch (ac->user_type) {
243 if (ac->allowedAttributesEffective) {
247 return ldb_module_done(ac->req, NULL, NULL, ret);
250 if (ac->allowedChildClassesEffective) {
254 return ldb_module_done(ac->req, NULL, NULL, ret);
260 if (ac->allowedAttributesEffective) {
264 return ldb_module_done(ac->req, NULL, NULL, ret);
267 if (ac->allowedChildClassesEffective) {
271 return ldb_module_done(ac->req, NULL, NULL, ret);
283 if (ac->allowedAttributes ||
284 ac->allowedAttributesEffective ||
285 ac->allowedChildClasses ||
286 ac->allowedChildClassesEffective) {
288 if (!ldb_attr_in_list(ac->attrs, "objectClass") &&
289 !ldb_attr_in_list(ac->attrs, "*")) {
296 return ldb_module_send_entry(ac->req, ares->message, ares->controls);
299 return ldb_module_send_referral(ac->req, ares->referral);
302 return ldb_module_done(ac->req, ares->controls,
312 struct kludge_acl_context *ac;
322 ac = talloc(req, struct kludge_acl_context);
323 if (ac == NULL) {
333 ac->module = module;
334 ac->req = req;
335 ac->user_type = what_is_user(module);
336 ac->attrs = req->op.search.attrs;
338 ac->allowedAttributes = ldb_attr_in_list(req->op.search.attrs, "allowedAttributes");
340 ac->allowedAttributesEffective = ldb_attr_in_list(req->op.search.attrs, "allowedAttributesEffective");
342 ac->allowedChildClasses = ldb_attr_in_list(req->op.search.attrs, "allowedChildClasses");
344 ac->allowedChildClassesEffective = ldb_attr_in_list(req->op.search.attrs, "allowedChildClassesEffective");
346 if (ac->allowedAttributes || ac->allowedAttributesEffective || ac->allowedChildClasses || ac->allowedChildClassesEffective) {
347 attrs = ldb_attr_list_copy_add(ac, req->op.search.attrs, "objectClass");
355 switch (ac->user_type) {
373 ldb, ac,
379 ac, kludge_acl_callback,