diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-01-03 11:59:33 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-01-03 11:59:33 +0000 |
commit | f383e19e095eab975bf3d4e622a5c1d1f823171b (patch) | |
tree | 6dbb67d705fc84afeacd2d392e4865c743f9edae /source | |
parent | a855dfb2e0b899d03087860e5462c2aed3ca4cad (diff) | |
download | samba-f383e19e095eab975bf3d4e622a5c1d1f823171b.tar.gz samba-f383e19e095eab975bf3d4e622a5c1d1f823171b.tar.xz samba-f383e19e095eab975bf3d4e622a5c1d1f823171b.zip |
added nTSecurityDescriptor field to host acct dump
Diffstat (limited to 'source')
-rw-r--r-- | source/libads/ldap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/libads/ldap.c b/source/libads/ldap.c index 5503b6e3535..c616f09b6e5 100644 --- a/source/libads/ldap.c +++ b/source/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} }; |