1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

40 Commits

Author SHA1 Message Date
Andrew Tridgell
77fb98ac7c addition of samr_SetSecurity() from kai
we needed to adjust the alignment of [relative] buffers for this to
work. I wonder if they are always 4 byte aligned?
(This used to be commit 9cd0a0b8b976e62c6da71b7e55cba5b38483620d)
2003-12-19 23:44:26 +00:00
Andrew Tridgell
db22c0c5f9 added a bunch of alias functions in samr.idl based on work by Kai.
(This used to be commit f740b02ac36780740700909da2bcdf672cb146cb)
2003-12-19 03:59:27 +00:00
Andrew Bartlett
ec92e2f9a2 My first stab at Samba4 IDL!
This patch adds the samr_CreateUser2 function, which is create_user
in Samba 3.0.

This also adds a torture suite that checks for various valid and invalid
account flags, and that they are persistant.

Also, a patch by Anthony Liguori to fix the build

Andrew Bartlett
(This used to be commit 53e657b74572ab329d4598a85e6989547c324209)
2003-12-03 03:10:10 +00:00
Andrew Tridgell
d65f0095c9 added netr_DatabaseSync(). It doesn't work as I haven't done schannel
yet, but at least the request is understood by w2k3

Also modified pidl to allow multiple branches in a union to have the
same element. This is used in netlogon.
(This used to be commit 983c0e9683fa9666a6e055d1776ebeef8cd2e700)
2003-12-02 03:06:21 +00:00
Andrew Tridgell
a6cf6cada9 added netr_LogonSamLogon() and test code
(This used to be commit 4fa3ad3ecbfd8f8663fcdfaba9a7db481e303f2b)
2003-12-01 09:28:10 +00:00
Andrew Tridgell
27b1dbaea6 * better diagnostics in ndrdump
* added samr_Connect2()
(This used to be commit 6b262ca37ca3fc0e3210b4379b2d9e46e1a2d336)
2003-11-23 21:51:24 +00:00
Andrew Tridgell
1b9452ffc5 fixed the handling of value() attributes on scalars in IDL that
reference other elements of the same structure
(This used to be commit d8d17be290730670bad0fea91188d394160cb879)
2003-11-23 07:14:17 +00:00
Andrew Tridgell
868555bca5 added support for enumerated types in IDL files. This makes unions
easier to work with.
(This used to be commit 60be15d306e7b65efdd27df02250c0264996ccf3)
2003-11-22 22:53:08 +00:00
Andrew Tridgell
e79e6bc472 added support for 'const' in IDL files. This makes it easy to define
symbolic names for bitfields etc.
(This used to be commit 344a6e1682cc1afab24735e73d05cf15f6eb9816)
2003-11-22 22:09:10 +00:00
Andrew Tridgell
86a604429e a fairly major upgrade to the dcerpc system
* added a NDR validator. The way it works is that when the
   DCERPC_DEBUG_VALIDATE_* flags are set the dcerpc system will
   perform NDR buffer validation. On sending a request the packet is
   first marshalled, then unmarahslled, then marshalled again, and it is
   confirmed that the two marshalling results are idential. This
   ensures that our pull and push routines are absolutely in sync, so
   that we can be very confident that if a routine works in the client
   then the corresponding routine must work on the server side. A
   similar validation is performed on all replies.

 * a result of this change is that pidl is fussier about the [ref]
   tag. You can only use it on pointers (which is the only place it
   makes sense)

 * fixed a basic alignment bug in the push side of the NDR code

 * added server side pull/push support. Our dcerpc system is now fully
   ready to be used on the server side.

 * fixed the relative offset pointer list. It must be traversed in
   reverse order on push

 * added automatic value setting for the size parameter in outgoing
   SdBuf structures.

 * expanded the ndr debugging code to always give a message on any
   failure

 * fixed the subcontext push code

 * fixed some memory leaks in smbtorture RPC tests
(This used to be commit 8ecf720206a2eef3f8ea7cbdb1f460664a5dba9a)
2003-11-22 08:11:32 +00:00
Andrew Tridgell
a465add90f * changed the way strings are handled in pidl to a much more general
interface. We now support an arbitrary set of flags to each parser,
  and these can be used to control the string types. I have provided
  some common IDL string types in librpc/idl/idl_types.h which needs to
  be included in every IDL file.

* added IDL for the endpoint mapper. Added a test suite that enumerates
  all endpoints on the server.
(This used to be commit d2665f36a75b482ff82733f72ffac938c2acf87a)
2003-11-21 13:14:17 +00:00
Andrew Tridgell
38ce2ef4bb added 4 more levels to samr_QueryDisplayInfo()
(This used to be commit f4cc593a5c7d75adaced2c33dd83c2ec741751be)
2003-11-21 02:19:47 +00:00
Andrew Tridgell
4fd867a240 Todd Sabin pointed out that a couple of the values I marked as hyper_t
are in fact 4 byte aligned. Create a ULONG8 type in samr for
those. This type should probably be made global later.
(This used to be commit e7dd116138ed21922c8578bebe0452f03221b3b7)
2003-11-20 22:47:20 +00:00
Andrew Tridgell
ddd2f9ced0 added samr_QueryDisplayInfo() (only level 1 so far)
(This used to be commit 8601305c8100f03ffaee4754eae12e9b332508a4)
2003-11-20 12:10:41 +00:00
Andrew Tridgell
fe6fd991ee extensive samr_SetUserInfo/samr_QueryUserInfo testing, with
cross-checking of all settable fields
(This used to be commit 3337906d52e95c127d64f81f9fc99aeb8a8d1ce6)
2003-11-20 10:53:08 +00:00
Andrew Tridgell
d4dfcda78e * fixed level2 of QueryUserInfo
* added per-field testing of SetUserInfo

 * fixed strlen_m()
(This used to be commit 26238b0f8a5752bb0f611c4aa492b964e419209a)
2003-11-20 10:29:54 +00:00
Andrew Tridgell
f3a4d83711 started on samr_SetUserInfo()
cope with the 'samrtorturetest' user already existing in the samr test
(to cope with previously failed runs)
(This used to be commit 47128b3d50b3481175a8b2580624316a4f7677db)
2003-11-20 07:20:59 +00:00
Andrew Tridgell
52cae6b908 added samr_LookupRids() and test code
(This used to be commit c32c33a791dd42676ca7fa47aae264e8d8ea8339)
2003-11-20 03:18:07 +00:00
Andrew Tridgell
308cc429eb added samr_LookupNames() and test code
(This used to be commit f8397cbc8554b721093b8ae6ac6fb26d0ee9a7cf)
2003-11-20 03:09:19 +00:00
Andrew Tridgell
66a827c921 * changed to midl syntax using [case(x)] instead of case(x)
* use empty defaults instead of a dummy empty structure
(This used to be commit 555a340d3c0697b147799bc0a6615e01e196daf6)
2003-11-20 00:57:59 +00:00
Andrew Tridgell
a0cd1069ce fixed country code field in samr_UserInfo5
(This used to be commit d194247b1bac03fbe3fd8226b897fa6886c6ca4c)
2003-11-19 05:26:11 +00:00
Andrew Tridgell
025236281b possibly better handling of NULL secdesc (thanks to lukeh)
(This used to be commit a1230f1b4b0b06d08bfe7c8a7e4863357db1ca5a)
2003-11-19 04:44:47 +00:00
Andrew Tridgell
22ef16aa44 added a thanks to Todd Sabin (with his permission)
(This used to be commit 9d5d6b2f9339dcd069524f6a9260c3581da2a92a)
2003-11-18 22:35:39 +00:00
Andrew Tridgell
bdf0578621 added samr_CreateUser() samr_DeleteUser(). The test suite creates a
test user called "samrtorturetest" and then deletes it. The next step
is to do all possible user operations on that temporary user.
(This used to be commit 41fc922954bd8ec461a79a22cc903e63902c7401)
2003-11-18 10:21:05 +00:00
Andrew Tridgell
20f1530a11 changed wks to wkssvc (suggestion from metze). Started adding samr_CreateUser().
(This used to be commit 04e9269c1e37c9c2984ee2886fa6c0eda5c19669)
2003-11-18 08:03:06 +00:00
Andrew Tridgell
06d0f61aa4 added samr_QuerySecurity() call that displays the ACL for any handle.
(This used to be commit 5bbeaaa3d13c838d014e7689b0fcf7374c8c7f57)
2003-11-18 05:20:54 +00:00
Andrew Tridgell
9b7b5e5c51 use the auto-generated UUID, version and name rather than listing them
in the dcerpc core code
(This used to be commit 16ffeb7c80bfe7f1bfbfce8c98066e9ddbca7686)
2003-11-18 05:01:10 +00:00
Andrew Tridgell
4d48e84ffa slightly more efficient strlen setting in lsa and samr strings (calls
strlen_m() once, not twice)
(This used to be commit 468c2dc632703e6956428fb5f1da4044709b8f6f)
2003-11-16 05:07:07 +00:00
Andrew Tridgell
c24f56e71c remember to samr_Close() policy handles after use
(This used to be commit 8b4e5c65e0e18657befbd5eba2d195c2751dcf7f)
2003-11-15 20:47:59 +00:00
Andrew Tridgell
8c90fcd32b added OpenAlias and QueryAliasInfo levels 1 to 3
(This used to be commit 2ed8cfdf6662f74808df67e3e9d03cf03f765569)
2003-11-15 12:38:06 +00:00
Andrew Tridgell
4d00dd9d5d added OpenGroup and QueryGroupInfo levels 1 to 4
(This used to be commit ffe4fcaab0fe4f6e0f64fb2d57c77442aa2e1f6f)
2003-11-15 12:14:22 +00:00
Andrew Tridgell
e7d70e40d5 added UserInfo level 21
(This used to be commit b90eff794f083029c568d3ec4ec2a7d2f7741139)
2003-11-15 11:34:01 +00:00
Andrew Tridgell
8f09c940b7 added samr UserInfo levels 4 to 20
(This used to be commit 5bbe63a7bbd4623dbbab7f74c00c7998d469571c)
2003-11-15 11:13:49 +00:00
Andrew Tridgell
e92419e2d3 added samr_UserInfo2 and samr_UserInfo3
(This used to be commit 5e852f694c039ae8bde3490be9e0c4959c1e93f0)
2003-11-15 10:58:29 +00:00
Andrew Tridgell
42a25ebb75 added samr_OpenUser, samr_EnumDomainAliases and samr_QueryUserInfo level 1
(This used to be commit e7edeec60e274c1460f7c8cc0fb4121b37e1bcd7)
2003-11-15 10:03:12 +00:00
Andrew Tridgell
4063fd08d4 added samr_EnumDomainGroups and samr_EnumDomainUsers
(This used to be commit f8d690fb2bc0afcc8267caa4edcbeed9463594e5)
2003-11-15 09:39:48 +00:00
Andrew Tridgell
4cadb043d7 added another 11 levels of QueryDomainInfo
(This used to be commit 219cfabaeb38c5fd2fcabd1e6f05da206bab21e4)
2003-11-15 09:18:02 +00:00
Andrew Tridgell
497e01e93e added samr_OpenDomain() and samr_QueryDomainInfo() level 1
(This used to be commit 2d9c055c1be7187ae890e46edba74bf4fedbc9db)
2003-11-15 08:06:39 +00:00
Andrew Tridgell
bcfbaa312a run LookupDomain on each domain returned from EnumDomains in samr
(This used to be commit 947b9f8ced486d34ee6710a921fb985ea14e2bb1)
2003-11-15 07:51:19 +00:00
Andrew Tridgell
ba5a060136 added the first couple of calls from samr as IDL
samr_EnumDomains() works nicely
(This used to be commit 7c162eaf3bb0195f9a2da05d6acd3c8e620f08d1)
2003-11-15 06:00:21 +00:00