1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
Commit Graph

1216 Commits

Author SHA1 Message Date
Andrew Bartlett
b3c0dacd20 r9941: Update the CrackNames test, and provide a much improved server-side
DRSUAPI CrackNames.

We can't pass the full cracknames test until the initial provision is
updated, the seperate DomainControllerInfo and canonical names support
is added.

Andrew Bartlett
(This used to be commit ed24d88f0e)
2007-10-10 13:36:24 -05:00
Günther Deschner
ad44611170 r9888: add IDL for lsa_QueryDomainInformationPolicy to query Kerberos Settings.
Guenther
(This used to be commit d717e878bd)
2007-10-10 13:36:20 -05:00
Tim Potter
6e17020de9 r9884: Fix compiler warning.
(This used to be commit 6e30dd8a50)
2007-10-10 13:36:20 -05:00
Andrew Bartlett
9c8483dd12 r9878: This is getting a bit out of control, but a few more tests.
Andrew Bartlett
(This used to be commit a6597181f6)
2007-10-10 13:36:19 -05:00
Tim Potter
9a56cb39b3 r9876: Fix some 64-bit warnings for Itanium machine.
(This used to be commit 9e375d82e8)
2007-10-10 13:36:19 -05:00
Andrew Bartlett
cf9b91668a r9861: I need to convert this to table-driven, but anyway...
More CrackNames testing

Andrew Bartlett
(This used to be commit 0913dec6a9)
2007-10-10 13:36:18 -05:00
Jelmer Vernooij
b674411eb4 r9792: Rename StrCaseCmp -> strcasecmp_m. All these years I was thinking
StrCaseCmp was sys_strcasecmp, while it is in fact strcasecmp_m!
(This used to be commit 200a8f6652)
2007-10-10 13:35:01 -05:00
Andrew Bartlett
24dd21c498 r9778: Test for particular error returns, rather than just OK/not OK.
Andrew Bartlett
(This used to be commit fccbc15555)
2007-10-10 13:35:00 -05:00
Andrew Bartlett
4b94118968 r9733: Test conversion from known sids in CrackNames.
Andrew Bartlett
(This used to be commit ad60d45715)
2007-10-10 13:34:55 -05:00
Andrew Bartlett
24186a80eb r9728: A *major* update to the credentials system, to incorporate the
Kerberos CCACHE into the system.

This again allows the use of the system ccache when no username is
specified, and brings more code in common between gensec_krb5 and
gensec_gssapi.

It also has a side-effect that may (or may not) be expected: If there
is a ccache, even if it is not used (perhaps the remote server didn't
want kerberos), it will change the default username.

Andrew Bartlett
(This used to be commit 6202267f6e)
2007-10-10 13:34:54 -05:00
Andrew Bartlett
1a316fd8c5 r9727: A simplier test I can aim at passing when I get the cracknames code done.
Andrew Bartlett
(This used to be commit b1b0e26e53)
2007-10-10 13:34:53 -05:00
Andrew Tridgell
c98c6aa561 r9702: r9680@blu: tridge | 2005-08-27 18:45:08 +1000
- fixed ncacn_ip_tcp to use the generic async name resolution methods,
   so NBT names now work (as requested several times by abartlet!)

 - changed resolve_name() to take an event_context, so it doesn't cause
   the whole process to block

 - cleaned up the talloc_find_parent_bytype() calls to go via a cleaner
   event_context_find() call
(This used to be commit b3d491b210)
2007-10-10 13:34:51 -05:00
Andrew Bartlett
e669d0c53d r9701: Provide correct parameters.
Andrew Bartlett
(This used to be commit 1cd62944f1)
2007-10-10 13:34:50 -05:00
Andrew Bartlett
c496f58c6f r9681: We don't need the full smb_krb5_context here, so just pass the krb5_context.
Andrew Bartlett
(This used to be commit 47699019db)
2007-10-10 13:34:40 -05:00
Andrew Tridgell
1e2d5e64a9 r9649: missed a spot .....
(This used to be commit d3b5d00671)
2007-10-10 13:34:37 -05:00
Andrew Tridgell
4e24e93058 r9647: saved_pac is binary data, so prevent any possible portability problems with signed chars
(This used to be commit 4b3e3a9633)
2007-10-10 13:34:37 -05:00
Andrew Tridgell
8f5ac4a178 r9608: don't validate the hard-coded sid for an external pac file
(This used to be commit 7e6957b906)
2007-10-10 13:34:34 -05:00
Andrew Tridgell
06973120a5 r9603: allow the LOCAL-PAC test to use keys and pac data from the command line
For example:

bin/smbtorture //xx/y LOCAL-PAC --option 'torture:pac_file=x.dat' --option 'torture:pac_kdc_key=B286757148AF7FD252C53603A150B7E7' --option 'torture:pac_member_key=D217FAEAE5E6B5F95CCC94077AB8A5FC'
(This used to be commit e0978ead23)
2007-10-10 13:34:34 -05:00
Volker Lendecke
11f4803d00 r9584: Fix a race condition in Samba 3. If two files are opened simultaneously with
NTCREATEX_DISP_CREATE (create if not exists, else fail) they might end up with
two or more times NT_STATUS_OK as EEXIST is not correctly handled.

Jeremy, please look closely at this. You can easily verify this by adding a
smb_msleep(100) to the top of open_file_ntcreate and run the new samba4
torture test. It does also happen without the msleep, but not as reliably.

Thanks,

Volker
(This used to be commit c803d4c9a5)
2007-10-10 13:34:32 -05:00
Andrew Tridgell
782fd6946f r9578: fixed an endless loop and memory leak in the QueryMultipleValues test
(This used to be commit ba909a64e9)
2007-10-10 13:34:31 -05:00
Andrew Tridgell
26bae69bb9 r9575: more automatic cleanup code in winreg test
(This used to be commit 0e30c80a53)
2007-10-10 13:34:30 -05:00
Andrew Tridgell
3eb52c6cd6 r9574: - made the sec_info fields in lsa and samr use a IDL bitmap
- fixed winreg_GetKeySecurity() to use a sec_info field correctly

- simplied the winreg torture code, removing the separate opens for
  each hive

- added torture cleanup code in winreg test

- added 'create with security descriptor' in the winreg torture test
(This used to be commit f20695decd)
2007-10-10 13:34:30 -05:00
Andrew Tridgell
649882d8d5 r9567: fixed the winreg IDL for CreateKey, including a security
descriptor. To keep it simple I just use normal IDL buffers for now,
avoiding the complex methods metze used in spoolss. We might change
that later

Also added decoding of the security_descriptor in
winreg_GetKeySecurity() in smbtorture
(This used to be commit 439f34a962)
2007-10-10 13:34:29 -05:00
Andrew Bartlett
69578c8b8c r9547: A pile more completeness testing for DsCrackNames.
Andrew Bartlett
(This used to be commit 01c4a970ec)
2007-10-10 13:34:26 -05:00
Andrew Bartlett
42d692efe7 r9516: Try a full-on matrix test of all the combinations in DRSUAPI
CrackNames.

Andrew Bartlett
(This used to be commit a82a419579)
2007-10-10 13:34:25 -05:00
Volker Lendecke
520139439e r9431: Check an error code in BASE-DELETE.
Volker
(This used to be commit 71571fffc0)
2007-10-10 13:34:13 -05:00
Andrew Bartlett
839d0130f8 r9422: Include crypto.h header.
Andrew Bartlett
(This used to be commit 3409552204)
2007-10-10 13:33:37 -05:00
Andrew Bartlett
3fd6b47502 r9406: Add const.
Andrew Bartlett
(This used to be commit 4c6052ccfd)
2007-10-10 13:33:34 -05:00
Simo Sorce
3e4c4cff21 r9391: Convert all the code to use struct ldb_dn to ohandle ldap like distinguished names
Provide more functions to handle DNs in this form
(This used to be commit 692e35b779)
2007-10-10 13:33:32 -05:00
Andrew Tridgell
9fffd12799 r9338: fixed the winreg IDL to be correct for the EnumKey and EnumValue
calls. The previous IDL was just a workaround for the limitations of
our older rpc infrastructure. Now that Jelmer has added much improved
string support using the charset keyword we can correctly implemenent
the unusual winreg string buffers.

Jelmer, note the little comment I put on winreg_StringBuf() about why
I couldn't use [value()] for the length field.

This also fixes EnumKey() and EnumValue() to use NTTIME fields for the
last_changed_time. I don't know why we were using a pair of uint32's,
as it is just a NTTIME.
(This used to be commit 8354b01612)
2007-10-10 13:33:25 -05:00
Tim Potter
c08578c0cb r9238: Some test code to do user-unmarshalling of eventlog_Record data.
(This used to be commit d0225f1079)
2007-10-10 13:31:36 -05:00
Andrew Bartlett
25b94718f1 r9234: Ensure we always change the end of the PAC, no matter what it is. Fix
typo in comment.

Andrew Bartlett
(This used to be commit c96f8594b1)
2007-10-10 13:31:35 -05:00
Tim Potter
2fa50ab671 r9222: Rename smb_tree_connect() to smb_raw_tcon() to match other raw function
names.
(This used to be commit 26b191b3c9)
2007-10-10 13:31:33 -05:00
Andrew Bartlett
200a67f812 r9167: Further PAC parionia: ensure the checksum fails if we modify it.
Andrew Bartlett
(This used to be commit ea4cc6bcbe)
2007-10-10 13:31:27 -05:00
Andrew Bartlett
c46b658eec r9166: This checks more of auth subsystem in the PAC test.
Andrew Bartlett
(This used to be commit 1fa87223eb)
2007-10-10 13:31:26 -05:00
Tim Potter
f18657aa59 r9156: Add IDL and test for FlushEventLog() but it always seems to return
NT_STATUS_ACCESS_DENIED.
(This used to be commit f18d1f539e)
2007-10-10 13:31:25 -05:00
Tim Potter
865319a0ec r9155: Fix ReadEventLog() test so it now works.
(This used to be commit b76d35e7e2)
2007-10-10 13:31:24 -05:00
Tim Potter
d87e1306c5 r9145: Some work on eventlog since jerry is doing some in Samba3. (-:
- Convert to use lsa_String instead of eventlog_String.

 - Copy across some constants.

 - Implement idl and testcase for ClearEventLog() function
(This used to be commit 352b21af3f)
2007-10-10 13:31:23 -05:00
Andrew Tridgell
c3ee5d6f75 r9121: use the older non-passthru level for setting delete on close
disposition in the RAW-UNLINK test (this allows it to work with netapp
servers)
(This used to be commit 4f9cfd10bf)
2007-10-10 13:31:18 -05:00
Rafal Szczesniak
6f6e42c856 r9090: Another field in usermod function - account flags.
rafal
(This used to be commit f0d51b78c0)
2007-10-10 13:31:15 -05:00
Andrew Bartlett
8db8279730 r9084: 'resign' the sample PAC for the validation of the signature algorithms.
If we ever get problems with the kerberos code, it should show up as a
different signature in this PAC.

This involved returning more data from the pac functions, so changed
some callers and split up some functions.

Andrew Bartlett
(This used to be commit d514a74912)
2007-10-10 13:31:15 -05:00
Andrew Tridgell
13b20c379f r9047: show the order of the server/correct output to make it easier to demo this test ;)
(This used to be commit 73ba1a8e38)
2007-10-10 13:31:11 -05:00
Andrew Tridgell
d07f01b203 r9046: fixed display of privileges in RAW-ACLS test
(This used to be commit 0ab907af6a)
2007-10-10 13:31:11 -05:00
Andrew Tridgell
89cbdf8ed0 r9045: be friendly towards servers that don't understand the 'share' form for tconx, instead of the \\server\share
form
(This used to be commit 02a78d06e1)
2007-10-10 13:31:11 -05:00
Andrew Tridgell
177423e88c r9044: added a comment so you can see what this test does :-)
(This used to be commit ee27441608)
2007-10-10 13:31:11 -05:00
Andrew Tridgell
089fa95704 r9043: fixed return code in RAW-STREAMS test
(This used to be commit 45e41010da)
2007-10-10 13:31:10 -05:00
Andrew Tridgell
8a0b044d20 r9042: fixed the valgrind error in the RAW-SFILEINFO test
(This used to be commit eaf079e33f)
2007-10-10 13:31:10 -05:00
Rafal Szczesniak
9d7d5ea229 r9037: New fields in usermod function - allow_password_change and
force_password_change datetime.

rafal
(This used to be commit dfa2cc6c4e)
2007-10-10 13:31:10 -05:00
Stefan Metzmacher
94bc92b708 r9028: make some function static
metze
(This used to be commit 72643ac4c4)
2007-10-10 13:31:09 -05:00
Andrew Tridgell
ae650da0b8 r9010: forgot to commit the change to create_directory_handle()
(This used to be commit 8d52380493)
2007-10-10 13:31:06 -05:00