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

6086 Commits

Author SHA1 Message Date
Andrew Tridgell
8012fb2cfe r9774: r11605@blu: tridge | 2005-08-30 12:02:19 +1000
make sure we don't walk off the end of the hash array
(This used to be commit 3c32f24e2c)
2007-10-10 13:34:59 -05:00
Andrew Tridgell
cae788d560 r9773: r11599@blu: tridge | 2005-08-30 11:55:57 +1000
optimise this case a bit more. The total speedup using non-indexed
 ldbtest is now around a factor of 80x. The code is ugly as hell, but
 I think this speed is worth it.

 Of course, if we only ever do indexed searches in ldb then this
 doesn't help, but it seems all too common that we get unindexable
 searches, so the optimisation is worthwhile
(This used to be commit 2e14fb893d)
2007-10-10 13:34:59 -05:00
Andrew Bartlett
6f9b901fa0 r9772: Make credentials callbacks more consistant with the abstraction
function interface used in the credentials code.

Fix bug in ntlm_auth, where we would overwrite the PW specified as a
first input.  (Reported and chased by Kai Blin <blin@gmx.net>, bug
#3040)

Andrew Bartlett
(This used to be commit 04af95bd31)
2007-10-10 13:34:59 -05:00
Jelmer Vernooij
c0293aa715 r9771: - Prevent ldb crash when a invalid DN is added
- Don't silently drop records with empty attributes

tridge/simo: Could you please verify this patch is correct?
(This used to be commit 505c9b1d3d)
2007-10-10 13:34:59 -05:00
Jelmer Vernooij
7be4cf8c1d r9770: Couple other bugfixes
Update TODO-list
(This used to be commit d9541535e3)
2007-10-10 13:34:58 -05:00
Andrew Tridgell
3719422441 r9769: r11592@blu: tridge | 2005-08-30 10:40:19 +1000
added a tdb optimisation that speeds up non-indexed ldb by a large
 margin (often 10x or more). I'd be interested in any comments on the
 safety of this optimisation. See the comment in the code for an
 explanation.
(This used to be commit 7f9efaceb6)
2007-10-10 13:34:58 -05:00
Jelmer Vernooij
584f3aeb7e r9768: Arrrgh.. Right this time.
(This used to be commit 8bded3fc92)
2007-10-10 13:34:58 -05:00
Jelmer Vernooij
2f6fd1d45c r9767: Fix typo
(This used to be commit 0602e8b3e7)
2007-10-10 13:34:58 -05:00
Jelmer Vernooij
fe1ee4494e r9766: Prevent erroneous OOM message
ldb_dup_val() sets out->data to NULL if in->length == 0
(This used to be commit 7ecb6988e7)
2007-10-10 13:34:57 -05:00
Jelmer Vernooij
ec934124db r9762: Add support for reading good old smbpasswd files
Fix password support
Make base64 decode/encode functions available to EJS
(This used to be commit 1376a1fe44)
2007-10-10 13:34:57 -05:00
Jelmer Vernooij
c9ace93ce2 r9756: One-way upgrade from Samba3->Samba4 basically works now
Still need to polish some rough edges
(This used to be commit a8f309aa81)
2007-10-10 13:34:56 -05:00
Jelmer Vernooij
d4f22109ee r9755: Fix crash bug in SWAT login
(This used to be commit 6e3e964fb4)
2007-10-10 13:34:56 -05:00
Jelmer Vernooij
11f3f0fa6c r9754: Upgrading with the command line utility now works, at least partially (-:
Upgrading using SWAT should work as well now.
(This used to be commit 8baa2ac377)
2007-10-10 13:34:56 -05:00
Jelmer Vernooij
615e1c55bf r9751: Remove C version of samba3dump (the EJS version works nicely as well).
Fix a couple of bugs in ldb_map.
(This used to be commit 66df76a634)
2007-10-10 13:34:56 -05:00
Jelmer Vernooij
442d147f6d r9746: Add "staff" as possible alternative to wheel
(should fix standard provisioning on AIX)
(This used to be commit b1d9ef8998)
2007-10-10 13:34:56 -05:00
Jelmer Vernooij
0a72d9a5f7 r9744: - [upgrade.js] Start working on smb.conf conversion.
- [ldb_map] Support storing non-mappable data in a fallback LDB
(This used to be commit 435e4c6389)
2007-10-10 13:34:55 -05:00
Jelmer Vernooij
0549763600 r9735: More work on generating a valid Samba4 configuration using the
Samba3 data (both console and SWAT)
(This used to be commit d569465dc4)
2007-10-10 13:34:55 -05:00
Tim Potter
054f206599 r9734: The ethereal parser generator was generating duplicate functions for
fields in structures with the same name as a structure (i.e
security_ace.object and security_ace_object).  I've twiddled the naming
scheme a bit and things are a bit more unique but there is still may be
some naming conflicts in other IDL files.

We are now getting confused over fields with the same name in unions
(e.g security_ace_object_ctr.object) plus some other union weirdness.
(This used to be commit c2ad9f49a2)
2007-10-10 13:34:55 -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
efcba52ae5 r9731: Fix typo
(This used to be commit e4492951e5)
2007-10-10 13:34:54 -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
Jelmer Vernooij
14ebeffc46 r9725: Fix full output mode of samba3dump as well. Thanks to tridge for
a bit for explanation about js.
(This used to be commit 765a30a049)
2007-10-10 13:34:53 -05:00
Jelmer Vernooij
176da2a281 r9724: Rewrite samba3dump in JS. The summary works now, but the full output
is triggering some obscure EJS assert..
(This used to be commit 42605f4444)
2007-10-10 13:34:53 -05:00
Jelmer Vernooij
d152839e29 r9722: Initial attempt at converting samba3dump to EJS..
(This used to be commit 7e3b94dfb9)
2007-10-10 13:34:53 -05:00
Jelmer Vernooij
d6cd54fb0a r9718: Work a bit on the SWAT interface
(This used to be commit b1844905d2)
2007-10-10 13:34:53 -05:00
Jelmer Vernooij
8b15ef881d r9712: Bunch of small fixes
Write out basic sam.ldif
(This used to be commit 67593bef7f)
2007-10-10 13:34:52 -05:00
Andrew Tridgell
9b0662bb44 r9707: r11080@blu: tridge | 2005-08-28 12:41:12 +1000
make sure we leave the account enabled after creating a new user
(This used to be commit a22d0d02ee)
2007-10-10 13:34:52 -05:00
Andrew Tridgell
8da7ab52eb r9706: r11042@blu: tridge | 2005-08-28 12:40:09 +1000
a NULL expression is valid in a ldb search
(This used to be commit a8748cab86)
2007-10-10 13:34:52 -05:00
Andrew Tridgell
1ef362c89d r9705: r9685@blu: tridge | 2005-08-27 19:43:44 +1000
set the backend_name on socket_accept() too
(This used to be commit 10ac273288)
2007-10-10 13:34:52 -05:00
Andrew Tridgell
75c29073ce r9704: r9684@blu: tridge | 2005-08-27 19:38:31 +1000
don't try to call the name resolver on non-ipv4 names!
(This used to be commit 4bb3d36fe6)
2007-10-10 13:34:52 -05:00
Andrew Tridgell
c9d937b7eb r9703: r9683@blu: tridge | 2005-08-27 18:56:05 +1000
added a comment about event_context_find()
(This used to be commit 9c23008221)
2007-10-10 13:34:51 -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
Jelmer Vernooij
37059d70d9 r9700: Change DATA_BLOB in ejs back to struct datablob
Support writing idmap mappings to winbind.ldif
(This used to be commit 3709def353)
2007-10-10 13:34:49 -05:00
Jelmer Vernooij
df384bfa25 r9699: Add as much attributes the current Samba4 SAM has to the mapping table (ignoring most of them, currently..)
(This used to be commit 5100ae211c)
2007-10-10 13:34:49 -05:00
Jelmer Vernooij
95ed275dbb r9698: Fix a bit of memory management
More minor bugfixes
Support mapping objectclasses and do mapping on 'dn' field as well (not just msg->dn)
(This used to be commit b7b079167d)
2007-10-10 13:34:42 -05:00
Andrew Bartlett
3c265c7986 r9696: Update prototypes for new name of short parsing function.
Andrew Bartlett
(This used to be commit cc35cd5ee2)
2007-10-10 13:34:42 -05:00
Andrew Bartlett
d91a5808f0 r9693: Move the smb_krb5_context setup code to use the new pattern of
tmp_ctx, then steal at the last moment, on success.

andrew Bartlett
(This used to be commit c7a44518ad)
2007-10-10 13:34:41 -05:00
Jelmer Vernooij
e1269bafe8 r9690: Extend test + fix several bugs
(This used to be commit 0cff0e03fc)
2007-10-10 13:34:41 -05:00
Jelmer Vernooij
afb62ee775 r9689: valgrind-clean now. Editing works now mostly, you just lose half of your
database every time you do it...
(This used to be commit 40ea2af427)
2007-10-10 13:34:41 -05:00
Jelmer Vernooij
e8635da74d r9686: Another round of bugfixes. Works somewhat now, when running under valgrind ;-)
(This used to be commit 786379064f)
2007-10-10 13:34:41 -05:00
Jelmer Vernooij
7e3838dd2d r9685: Add tests for samba3sam mapping module
Fix a couple of bugs
Move samba3sam backend to lib/ldb/
Remove some more unused parameters
(This used to be commit 7f864d446d)
2007-10-10 13:34:41 -05:00
Jelmer Vernooij
e3dcc92dee r9684: Remove unused parameters (about 70)
(This used to be commit 4a51a31571)
2007-10-10 13:34:40 -05:00
Tim Potter
81045abddc r9683: OK that last fix was too good to be true. (-:
(This used to be commit b33774b693)
2007-10-10 13:34:40 -05:00
Tim Potter
54dc527a9e r9682: Jelmer, I think this fixes another case where the parser generator was
producing duplicate function definitions.  Can you check this out?
(This used to be commit e9bb695e74)
2007-10-10 13:34:40 -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 Bartlett
08730652fb r9680: Update Heimdal to current lorikeet-heimdal (which was itself updated
to Heimdal CVS as of 2005-08-27).

Andrew Bartlett
(This used to be commit 913924a499)
2007-10-10 13:34:39 -05:00
Andrew Bartlett
02caf604be r9678: Remove unused variables.
Andrew Bartlett
(This used to be commit 50e6229c7a)
2007-10-10 13:34:39 -05:00
Tim Potter
3567c7b2a7 r9677: Don't generate duplicate function names when processing structure elements
that are bitmaps or enums.
(This used to be commit 1b0e65359c)
2007-10-10 13:34:39 -05:00
Jelmer Vernooij
02779b745f r9672: Fix build for compilers that don't like undefined-length arrays at the end of structs...
(This used to be commit c2211df586)
2007-10-10 13:34:39 -05:00
Andrew Tridgell
7fd36b79eb r9671: patch from Kai Blin fixing a bug in our base64 encoder
(This used to be commit efa143cb3b)
2007-10-10 13:34:38 -05:00
Simo Sorce
61aaf82b62 r9654: introduce the samdb_search_dn call
(This used to be commit 333ebb40d5)
2007-10-10 13:34:38 -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
b8f4e0796d r9648: this fixes the krb5 based login with the pac. The key to this whole saga was
that the logon_time field in the pac must match the authtime field in the ticket we
gave the client in the AS-REP (and thus also the authtime field in the ticket we get
back in the TGS-REQ).

Many thanks to Andrew Bartlett for his patience in showing me the
basic ropes of all this code! This was a joint effort.
(This used to be commit 7bee374b3f)
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
4b275f4716 r9646: fixed error message
(This used to be commit 804f2485d0)
2007-10-10 13:34:37 -05:00
Andrew Tridgell
2e35b72086 r9645: fixed the ejs GetOptions() call to look at the first option passed (this is what broke --help)
(This used to be commit 88a7e9e00f)
2007-10-10 13:34:36 -05:00
Andrew Tridgell
4ab340d75d r9644: add LOCAL-PAC to the list of 'make test' tests
(This used to be commit 13185f468f)
2007-10-10 13:34:36 -05:00
Andrew Tridgell
b4d171d4df r9643: fixed samsync code for the new dn explode semantics
(This used to be commit 96298af202)
2007-10-10 13:34:36 -05:00
Stefan Metzmacher
81021aaa95 r9638: add error code that you get when you call DsGetNCChanges() with a tmp_highest_usn which is
higher than the real highest of the source dsa

metze
(This used to be commit e4424d2a6d)
2007-10-10 13:34:36 -05:00
Tim Potter
a45c4fd5e2 r9625: Get rid of "duplicate const" warning.
(This used to be commit 0ec755cfa0)
2007-10-10 13:34:35 -05:00
Jelmer Vernooij
a16c390fe0 r9624: Support writing wins.ldif
(This used to be commit b0595d238b)
2007-10-10 13:34:35 -05:00
Jelmer Vernooij
c9d3763bfc r9623: samba3dump now generates LDIF for the registry hives from registry.tdb
couple of other small fixes
(This used to be commit 06bc5d8e09)
2007-10-10 13:34:35 -05:00
Jelmer Vernooij
69fb684063 r9621: Bunch of bug fixes. Add 'format' option to samba3dump (text,summary,ldif)
(This used to be commit dc6aab8d4a)
2007-10-10 13:34:35 -05:00
Jelmer Vernooij
9bf5e494f7 r9616: Finish ldb_map module (still needs a lot of testing though...)
Add initial mapping table for ldb_samba3. Contains most attributes.
(This used to be commit b73441b04d)
2007-10-10 13:34:35 -05:00
Tim Potter
05065108f4 r9612: Don't generate handoff code for idl files that don't implement a pipe
(e.g security.idl)
(This used to be commit 178d040dbb)
2007-10-10 13:34:34 -05:00
Tim Potter
50004c6905 r9611: Reset global variables (hf and ett lists) for each parser run. This
avoids building up buckets of unecessary definitions from other parsers.

Get rid of warning and FIXME for unknown data types.  This is handled
by the interface depends list and including the appropriate header files.
(This used to be commit eb5e3b031c)
2007-10-10 13:34:34 -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
Jelmer Vernooij
dcd27d550f r9602: Add support for reading share_info.tdb and smb.conf.
Add userdata argument to function pointers for pm_process()
(This used to be commit 84b2fb3467)
2007-10-10 13:34:33 -05:00
Andrew Tridgell
2dc45bd484 r9600: fixed the intermittent failures we were getting with ejs in the build
farm.
(This used to be commit b23bffcba6)
2007-10-10 13:34:33 -05:00
Jelmer Vernooij
98b303e2eb r9595: Add ldb map module
(This used to be commit e0a0d3f092)
2007-10-10 13:34:33 -05:00
Jelmer Vernooij
47843f2b64 r9591: - Remove empty file
- Fix a couple of typo's
- Fix build of lib/samba3/secrets.c for systems that don't have /usr/include/tdb.h...
(This used to be commit b8c5290063)
2007-10-10 13:34:33 -05:00
Jelmer Vernooij
cdf218e270 r9589: Support reading secrets tdb
(This used to be commit dd15131b52)
2007-10-10 13:34:32 -05:00
Jelmer Vernooij
b873c1789f r9587: Fix SWAT data dir for --with-fhs
(This used to be commit 53d0c3e485)
2007-10-10 13:34:32 -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
Jelmer Vernooij
ca71549d5a r9581: Registry db
(This used to be commit b264e9f56a)
2007-10-10 13:34:31 -05:00
Andrew Tridgell
10dcfca9f1 r9580: put the libinclude() after the GetOptions so the smb.conf is loaded to
get the libjs path
(This used to be commit ee0b693ffa)
2007-10-10 13:34:31 -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
Tim Potter
43fbeed881 r9577: Fix some indentation.
(This used to be commit 2759c91b81)
2007-10-10 13:34:31 -05:00
Jelmer Vernooij
b42f358d51 r9576: Couple of small fixes. Generate notice indicating
that the parsers were autogenerated.
(This used to be commit a37e2134e6)
2007-10-10 13:34:30 -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
38e2d25eda r9573: fixed a comment
(This used to be commit d151a9459d)
2007-10-10 13:34:30 -05:00
Andrew Tridgell
d42e54648e r9569: fixed an uninitialised variable
(This used to be commit 5c71547703)
2007-10-10 13:34:30 -05:00
Andrew Tridgell
4a37c7ebbe r9568: updated the winreg js library for CreateKey, and add a --createkey
option to the winreg tool
(This used to be commit 881452c7b7)
2007-10-10 13:34:29 -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 Tridgell
cfa981c656 r9566: fix an uninitialised variable
(This used to be commit 7082440a70)
2007-10-10 13:34:29 -05:00
Tim Potter
00e79ceb49 r9563: I think this INIT_OBJ_FILES should be ADD_OBJ_FILES so that the lib/samba3
source files are included in make proto.  Fixes the build with
./configure.developer.
(This used to be commit 691d6a04d7)
2007-10-10 13:34:29 -05:00
Tim Potter
12e269c938 r9558: Add more whitespace to generated output.
Change conformance file warning to something more understandable.

Don't generate duplicate duplicate element dissectors for function
call arguments.  Hey this makes the winreg dissector compile, but not
link.
(This used to be commit 545d3deaa4)
2007-10-10 13:34:29 -05:00
Jelmer Vernooij
479ef0a387 r9557: Some more updates. Use combined function for parsing a set of
samba3 databases
(This used to be commit b91a695bd8)
2007-10-10 13:34:28 -05:00
Jelmer Vernooij
6622d3be09 r9556: Define a few libsamba structs
(This used to be commit 46c5cdb673)
2007-10-10 13:34:28 -05:00
Jelmer Vernooij
c0ab876711 r9555: More updates. Everything except for secrets.c compiles now..
(This used to be commit e59d6156b2)
2007-10-10 13:34:28 -05:00
Tim Potter
cdb6d52372 r9554: Do a quick once-over to make the ethereal auto-generated parser code a
bit more readable.
(This used to be commit da3ca9e3c1)
2007-10-10 13:34:28 -05:00
Tim Potter
2cd71e5101 r9553: Some cosmetic things to make the atsvc dissector output look prettier
and be more usable:

  - nicer formatting for summary of set fields in bitmap.

  - say "Pointer to Foo" in proto_tree instead of just "Foo" when
    dissecting pointers.

  - append string value to proto_tree when dissecting pointers to strings.

  - strip librpc/gen_ndr prefix from includes so generated files can
    live in the ethereal epan/dissectors directory.

Now to work on getting the winreg dissector compiling...
(This used to be commit ab00976699)
2007-10-10 13:34:28 -05:00
Jelmer Vernooij
c1b6fd5c4b r9552: Add idmap support.
(This used to be commit 37882f2287)
2007-10-10 13:34:27 -05:00
Tim Potter
2867f7869d r9550: Adjust some indentation.
(This used to be commit 781df1691c)
2007-10-10 13:34:27 -05:00
Jelmer Vernooij
91f4e46dbf r9549: Rerun ./config.status if one of the .mk files changes
(This used to be commit 729b8bd783)
2007-10-10 13:34:27 -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