summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-05-05 15:44:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:16:49 -0500
commitc6fa16f330bbc0cc9f428622ca2c4ad0c75cf56a (patch)
tree32a67acc112954f06eefc20596c43972035cf4bd /source3/utils
parent4137c63d0236d429c33b718674b365c6efcba695 (diff)
downloadsamba-c6fa16f330bbc0cc9f428622ca2c4ad0c75cf56a.tar.gz
samba-c6fa16f330bbc0cc9f428622ca2c4ad0c75cf56a.tar.bz2
samba-c6fa16f330bbc0cc9f428622ca2c4ad0c75cf56a.zip
r15460: Prefer to use the indexed objectCategory attribute (instead of
objectClass which is not indexed on AD) in LDAP queries. Guenther (This used to be commit 847882a98328b91a2157959c5dad0a2023223846)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_ads.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c
index e02da46b9c..cca8dd63d0 100644
--- a/source3/utils/net_ads.c
+++ b/source3/utils/net_ads.c
@@ -473,7 +473,7 @@ int net_ads_user(int argc, const char **argv)
rc = ads_do_search_all_fn(ads, ads->config.bind_path,
LDAP_SCOPE_SUBTREE,
- "(objectclass=user)",
+ "(objectCategory=user)",
opt_long_list_entries ? longattrs :
shortattrs, usergrp_display,
disp_fields);
@@ -597,7 +597,7 @@ int net_ads_group(int argc, const char **argv)
"\n-----------------------------\n");
rc = ads_do_search_all_fn(ads, ads->config.bind_path,
LDAP_SCOPE_SUBTREE,
- "(objectclass=group)",
+ "(objectCategory=group)",
opt_long_list_entries ? longattrs :
shortattrs, usergrp_display,
disp_fields);