diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-12-10 06:21:44 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-12-10 06:21:44 +0000 |
commit | 6b36fa3a8ad3a71850493f62ab4edebc3a57c9fc (patch) | |
tree | 7caae8834cd3cb5af2ae1dc153d38f3964952592 /source3/nsswitch | |
parent | 31f036b5b3f8ed14e8450f22a376da4697ac9fa2 (diff) | |
download | samba-6b36fa3a8ad3a71850493f62ab4edebc3a57c9fc.tar.gz samba-6b36fa3a8ad3a71850493f62ab4edebc3a57c9fc.tar.bz2 samba-6b36fa3a8ad3a71850493f62ab4edebc3a57c9fc.zip |
use objectCategory instead of objectClass for faster searching
(This used to be commit 4d3b827e5ac1ac20ec31acdc1e2a0264f1c18e43)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/winbindd_ads.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/nsswitch/winbindd_ads.c b/source3/nsswitch/winbindd_ads.c index fc04f8932d..7f9d2eb4e5 100644 --- a/source3/nsswitch/winbindd_ads.c +++ b/source3/nsswitch/winbindd_ads.c @@ -165,7 +165,7 @@ static NTSTATUS query_user_list(struct winbindd_domain *domain, ads = ads_cached_connection(domain); if (!ads) goto done; - rc = ads_search_retry(ads, &res, "(objectclass=user)", attrs); + rc = ads_search_retry(ads, &res, "(objectCategory=user)", attrs); if (rc) { DEBUG(1,("query_user_list ads_search: %s\n", ads_errstr(rc))); goto done; @@ -256,7 +256,7 @@ static NTSTATUS enum_dom_groups(struct winbindd_domain *domain, ads = ads_cached_connection(domain); if (!ads) goto done; - rc = ads_search_retry(ads, &res, "(objectclass=group)", attrs); + rc = ads_search_retry(ads, &res, "(objectCategory=group)", attrs); if (rc) { DEBUG(1,("query_user_list ads_search: %s\n", ads_errstr(rc))); goto done; @@ -591,7 +591,7 @@ static NTSTATUS lookup_groupmem(struct winbindd_domain *domain, sid_from_rid(domain, group_rid, &group_sid); sidstr = sid_binstring(&group_sid); /* search for all users who have that group sid as primary group or as member */ - asprintf(&exp, "(&(objectclass=user)(|(primaryGroupID=%d)(memberOf=%s)))", + asprintf(&exp, "(&(objectCategory=user)(|(primaryGroupID=%d)(memberOf=%s)))", group_rid, sidstr); rc = ads_search_retry(ads, &res, exp, attrs); free(exp); |