diff options
author | Jean-François Micouleau <jfm@samba.org> | 2001-12-21 13:36:14 +0000 |
---|---|---|
committer | Jean-François Micouleau <jfm@samba.org> | 2001-12-21 13:36:14 +0000 |
commit | 595dd015071395bae2ffc61573c72bb9f6a77553 (patch) | |
tree | 6fa327b36d54f95299518fd3348f6a722df627c6 /source3/include/rpc_samr.h | |
parent | 28eb6b91b22ecfebeb42c1f97dbda94764359923 (diff) | |
download | samba-595dd015071395bae2ffc61573c72bb9f6a77553.tar.gz samba-595dd015071395bae2ffc61573c72bb9f6a77553.tar.xz samba-595dd015071395bae2ffc61573c72bb9f6a77553.zip |
re-done all of samr_query_disp_info()
instead of enumerating the whole user db or group db every time, we store
a in memory copy linked to the handle.
that's much faster for large enumeration where the db can't fit in a
single rpc packet. And as it's a copy, it's constant between enumeration.
still some stuff to clean. But now I can fix the W95 userlist bug, as I've
finally found it.
J.F.
(This used to be commit 3ab45215369e8e93d750f4687e9c1f7d47782590)
Diffstat (limited to 'source3/include/rpc_samr.h')
-rw-r--r-- | source3/include/rpc_samr.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/source3/include/rpc_samr.h b/source3/include/rpc_samr.h index 43ee342ed3..777dfa1e46 100644 --- a/source3/include/rpc_samr.h +++ b/source3/include/rpc_samr.h @@ -146,6 +146,16 @@ SamrTestPrivateFunctionsUser #define SAMR_SET_USERINFO 0x3A +typedef struct _DISP_USER_INFO { + SAM_ACCOUNT *sam; + uint32 size; +} DISP_USER_INFO; + +typedef struct _DISP_GROUP_INFO { + DOMAIN_GRP *grp; + uint32 size; +} DISP_GROUP_INFO; + typedef struct logon_hours_info { @@ -788,7 +798,6 @@ typedef struct samr_entry_info1 uint32 rid_user; uint16 acb_info; - uint16 pad; UNIHDR hdr_acct_name; UNIHDR hdr_user_name; @@ -820,7 +829,6 @@ typedef struct samr_entry_info2 uint32 rid_user; uint16 acb_info; - uint16 pad; UNIHDR hdr_srv_name; UNIHDR hdr_srv_desc; |