summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-01-03 11:59:33 +0000
committerAndrew Tridgell <tridge@samba.org>2002-01-03 11:59:33 +0000
commit9e0297b3edd01d5c9b7e99881f72421706b4f9e2 (patch)
tree04de81e27338fb458055183a530d3ece7fb741f2 /source3/libads
parent80437a4cc0d88f47fb20901abf28590c35f3b09a (diff)
downloadsamba-9e0297b3edd01d5c9b7e99881f72421706b4f9e2.tar.gz
samba-9e0297b3edd01d5c9b7e99881f72421706b4f9e2.tar.bz2
samba-9e0297b3edd01d5c9b7e99881f72421706b4f9e2.zip
added nTSecurityDescriptor field to host acct dump
(This used to be commit f383e19e095eab975bf3d4e622a5c1d1f823171b)
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/ldap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index 5503b6e353..c616f09b6e 100644
--- a/source3/libads/ldap.c
+++ b/source3/libads/ldap.c
@@ -111,11 +111,12 @@ ADS_STATUS ads_find_machine_acct(ADS_STRUCT *ads, void **res, const char *host)
{
ADS_STATUS status;
char *exp;
+ const char *attrs[] = {"*", "nTSecurityDescriptor", NULL};
/* the easiest way to find a machine account anywhere in the tree
is to look for hostname$ */
asprintf(&exp, "(samAccountName=%s$)", host);
- status = ads_search(ads, res, exp, NULL);
+ status = ads_search(ads, res, exp, attrs);
free(exp);
return status;
}
@@ -264,6 +265,7 @@ void ads_dump(ADS_STRUCT *ads, void *res)
void (*handler)(const char *, struct berval **);
} handlers[] = {
{"objectGUID", dump_binary},
+ {"nTSecurityDescriptor", dump_binary},
{"objectSid", dump_sid},
{NULL, NULL}
};