1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
Commit Graph

58 Commits

Author SHA1 Message Date
Andrew Tridgell
2cabf613e3 r365: improved the IDL for samr_Connect5()
(This used to be commit 4b4f025504)
2007-10-10 12:51:35 -05:00
Andrew Tridgell
3fb30e46be r364: finally worked out the ancient samr_ChangePasswordUser() interface
yay!
(This used to be commit 0221566cf5)
2007-10-10 12:51:35 -05:00
Andrew Tridgell
304396c892 r358: added some more annotation on the samr unknown attributes
(This used to be commit a946315193)
2007-10-10 12:51:34 -05:00
Andrew Tridgell
b394a4c2ff r336: added a -X command line option to smbtorture to enable dangerous or
possibly destructive tests. Use with care!

Added IDL and test code for samr_Shutdown() and samr_SetDsrmPassword()
(This used to be commit 84de0b7e58)
2007-10-10 12:51:33 -05:00
Andrew Tridgell
493a37ba66 r335: added much better handling of servers that die unexpectedly during a
request (a dead socket). I discovered this when testing against Sun's
PC-NetLink.

cleaned up the naming of some of the samr requests

add IDL and test code for samr_QueryGroupMember(),
samr_SetMemberAttributesOfGroup() and samr_Shutdown().  (actually, I
didn't leave the samr_Shutdown() test in, as its fatal to windows
servers due to doing exactly what it says it does).
(This used to be commit 925bc2622c)
2007-10-10 12:51:33 -05:00
Andrew Tridgell
1325dea8ec r326: tweaks to the RPC-SAMR test code to allow win2003 to pass the test (for example, not filling in extra
fields in level21 setuserinfo)
(This used to be commit d06ed158f9)
2007-10-10 12:51:33 -05:00
Andrew Tridgell
45b57a8b38 r325: added IDL and test code for samr_ChangePasswordUser3().
Also added much better handling of random password generation in the
password change test code
(This used to be commit 67ae0b2a98)
2007-10-10 12:51:32 -05:00
Stefan Metzmacher
7eb7b1528b r310: add missing ','
metze
(This used to be commit d0aa749667)
2007-10-10 12:51:20 -05:00
Andrew Tridgell
7f26e3ad33 r307: added IDL and test code for samr_GetDomPwInfo(), samr_SetUserInfo2(),
samr_GetBootKeyInformation() and samr_Connect3()

also added some stub IDL for samr_SetBootKeyInformation() although I
don't yet have working test code. This one is tricky, as if you get it
wrong then the target system won't boot any more :)
(This used to be commit 118b6fc292)
2007-10-10 12:51:20 -05:00
Andrew Tridgell
5f545543f0 r305: - added IDL and test code for samr_RidToSid()
- completed the IDL and test code for the various set user password
  mechanisms in samr. Three password mechanisms are now working, the
  UserInfo24 method, the OemChangePasswordUser2() method (which only
  sets the LM password) and the ChangePasswordUser2() method which sets
  both the LM and NT passwords.

- updated some crypto routines to support the password change tests
(This used to be commit 051efa2abf)
2007-10-10 12:51:19 -05:00
Andrew Tridgell
8fce9e3c54 r275: added IDL and test code for samr_QueryDisplayInfo3(),
samr_AddMultipleMembersToAlias(),
samr_RemoveMultipleMembersFromAlias(), samr_OemChangePasswordUser2(),
and samr_ChangePasswordUser2()

The password change functions don't actually work yet (but should
soon). At this stage I have just completed the IDL for them. Next step
is to get the hash verifiers right and the torture test should be able
to do password changes.
(This used to be commit 849d0d314a)
2007-10-10 12:51:19 -05:00
Andrew Tridgell
bfa370671b r268: added IDL and test code for samr_QueryDomainInfo2(),
samr_QueryUserInfo2(), samr_QueryDisplayInfo2() and
samr_GetDisplayEnumerationIndex2()
(This used to be commit fddda52500)
2007-10-10 12:51:18 -05:00
Andrew Tridgell
d5a860e018 r267: added IDL and test code for samr_ChangePasswordUser(),
samr_GetDisplayEnumerationIndex(), samr_TestPrivateFunctionsDomain(),
samr_TestPrivateFunctionsUser() and samr_RemoveMemberFromForeignDomain()
(This used to be commit 53c6670887)
2007-10-10 12:51:18 -05:00
Andrew Tridgell
3441f07716 r259: added samr_DeleteGroupMember() IDL and test code
(This used to be commit 747351140b)
2007-10-10 12:51:18 -05:00
Andrew Tridgell
04af17ec63 r258: added samr_AddGroupMember() IDL and test code
(This used to be commit 0b8203306d)
2007-10-10 12:51:18 -05:00
Andrew Tridgell
90fd8aef69 r257: added samr_SetGroupInfo() IDL and test code
(This used to be commit fe1fc81ba7)
2007-10-10 12:51:18 -05:00
Andrew Tridgell
a106e7c7f2 r256: added samr_CreateDomainGroup() and samr_DeleteDomainGroup() IDL and test code
(This used to be commit 46185a71ba)
2007-10-10 12:51:17 -05:00
Andrew Tridgell
826efc9c46 r255: added samr_SetDomainInfo IDL and test code
(This used to be commit 9f12fb39db)
2007-10-10 12:51:17 -05:00
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 9cd0a0b8b9)
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 f740b02ac3)
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 53e657b745)
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 983c0e9683)
2003-12-02 03:06:21 +00:00
Andrew Tridgell
a6cf6cada9 added netr_LogonSamLogon() and test code
(This used to be commit 4fa3ad3ecb)
2003-12-01 09:28:10 +00:00
Andrew Tridgell
27b1dbaea6 * better diagnostics in ndrdump
* added samr_Connect2()
(This used to be commit 6b262ca37c)
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 d8d17be290)
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 60be15d306)
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 344a6e1682)
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 8ecf720206)
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 d2665f36a7)
2003-11-21 13:14:17 +00:00
Andrew Tridgell
38ce2ef4bb added 4 more levels to samr_QueryDisplayInfo()
(This used to be commit f4cc593a5c)
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 e7dd116138)
2003-11-20 22:47:20 +00:00
Andrew Tridgell
ddd2f9ced0 added samr_QueryDisplayInfo() (only level 1 so far)
(This used to be commit 8601305c81)
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 3337906d52)
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 26238b0f8a)
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 47128b3d50)
2003-11-20 07:20:59 +00:00
Andrew Tridgell
52cae6b908 added samr_LookupRids() and test code
(This used to be commit c32c33a791)
2003-11-20 03:18:07 +00:00
Andrew Tridgell
308cc429eb added samr_LookupNames() and test code
(This used to be commit f8397cbc85)
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 555a340d3c)
2003-11-20 00:57:59 +00:00
Andrew Tridgell
a0cd1069ce fixed country code field in samr_UserInfo5
(This used to be commit d194247b1b)
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 a1230f1b4b)
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 9d5d6b2f93)
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 41fc922954)
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 04e9269c1e)
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 5bbeaaa3d1)
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 16ffeb7c80)
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 468c2dc632)
2003-11-16 05:07:07 +00:00
Andrew Tridgell
c24f56e71c remember to samr_Close() policy handles after use
(This used to be commit 8b4e5c65e0)
2003-11-15 20:47:59 +00:00
Andrew Tridgell
8c90fcd32b added OpenAlias and QueryAliasInfo levels 1 to 3
(This used to be commit 2ed8cfdf66)
2003-11-15 12:38:06 +00:00
Andrew Tridgell
4d00dd9d5d added OpenGroup and QueryGroupInfo levels 1 to 4
(This used to be commit ffe4fcaab0)
2003-11-15 12:14:22 +00:00
Andrew Tridgell
e7d70e40d5 added UserInfo level 21
(This used to be commit b90eff794f)
2003-11-15 11:34:01 +00:00