summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-06-10 00:55:37 +0000
committerJeremy Allison <jra@samba.org>2003-06-10 00:55:37 +0000
commiteaf0decab83640b505ea091ff25a38ff01d1b2d7 (patch)
treeccce80c8399b57166d2ae8822b86f23d6d1b0bee
parent2783e6f4f40f421c45b195519e4e5153e1412ea5 (diff)
downloadsamba-eaf0decab83640b505ea091ff25a38ff01d1b2d7.tar.gz
samba-eaf0decab83640b505ea091ff25a38ff01d1b2d7.tar.bz2
samba-eaf0decab83640b505ea091ff25a38ff01d1b2d7.zip
More instrumentation for winbindd.
Jeremy. (This used to be commit 4161a122b74b75b0ed1758e3491e69bb9f1e8390)
-rw-r--r--source3/nsswitch/winbindd_ads.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_ads.c b/source3/nsswitch/winbindd_ads.c
index beb40af79d..aff3754fe8 100644
--- a/source3/nsswitch/winbindd_ads.c
+++ b/source3/nsswitch/winbindd_ads.c
@@ -346,6 +346,8 @@ static BOOL dn_lookup(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx,
uint32 atype;
char *escaped_dn = escape_ldap_string_alloc(dn);
+ DEBUG(3,("ads: dn_lookup\n"));
+
if (!escaped_dn) {
return False;
}
@@ -465,6 +467,8 @@ static NTSTATUS lookup_usergroups_alt(struct winbindd_domain *domain,
ADS_STRUCT *ads;
const char *group_attrs[] = {"objectSid", NULL};
+ DEBUG(3,("ads: lookup_usergroups_alt\n"));
+
ads = ads_cached_connection(domain);
if (!ads) goto done;
@@ -656,6 +660,8 @@ static NTSTATUS lookup_groupmem(struct winbindd_domain *domain,
int i, num_members;
fstring sid_string;
+ DEBUG(10,("ads: lookup_groupmem %s sid=%s\n", domain->name, sid_string_static(group_sid)));
+
*num_names = 0;
ads = ads_cached_connection(domain);
@@ -730,6 +736,8 @@ static NTSTATUS sequence_number(struct winbindd_domain *domain, uint32 *seq)
ADS_STRUCT *ads = NULL;
ADS_STATUS rc;
+ DEBUG(3,("ads: fetch sequence_number for %s\n", domain->name));
+
*seq = DOM_SEQUENCE_NONE;
ads = ads_cached_connection(domain);
@@ -755,6 +763,8 @@ static NTSTATUS trusted_domains(struct winbindd_domain *domain,
ADS_STRUCT *ads;
ADS_STATUS rc;
+ DEBUG(3,("ads: trusted_domains\n"));
+
*num_domains = 0;
*names = NULL;
@@ -772,6 +782,8 @@ static NTSTATUS domain_sid(struct winbindd_domain *domain, DOM_SID *sid)
ADS_STRUCT *ads;
ADS_STATUS rc;
+ DEBUG(3,("ads: domain_sid\n"));
+
ads = ads_cached_connection(domain);
if (!ads) return NT_STATUS_UNSUCCESSFUL;
@@ -796,6 +808,8 @@ static NTSTATUS alternate_name(struct winbindd_domain *domain)
TALLOC_CTX *ctx;
char *workgroup;
+ DEBUG(3,("ads: alternate_name\n"));
+
ads = ads_cached_connection(domain);
if (!ads) return NT_STATUS_UNSUCCESSFUL;