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

1317 Commits

Author SHA1 Message Date
Tim Potter
7f66d5ce25 r9993: Gcc is fussy about the lack of parentheses around assignment statements.
(This used to be commit 908ba89259)
2007-10-10 13:36:27 -05:00
Jelmer Vernooij
52d995feb0 r9959: Fix bug where data offset was incorrect after parsing element with
[charset]
(This used to be commit b17478229e)
2007-10-10 13:36:25 -05:00
Jelmer Vernooij
c70405cd72 r9957: Switch to using DATA_BLOBs internally in TDR
(This used to be commit 351149d160)
2007-10-10 13:36:25 -05:00
Jelmer Vernooij
fc411bed80 r9949: Portability fixes for mingw32
(This used to be commit 994093b08e)
2007-10-10 13:36:24 -05:00
Jelmer Vernooij
4462869db2 r9948: Be a bit less verbose
(This used to be commit 071dba2d0a)
2007-10-10 13:36:24 -05:00
Andrew Bartlett
9319cace3b r9940: When guessing, don't make DEBUG(1,... errors.
Andrew Bartlett
(This used to be commit 664736e73d)
2007-10-10 13:36:23 -05:00
Andrew Bartlett
95fcf031b0 r9929: Fix indentation
Andrew Bartlett
(This used to be commit d6f57ec921)
2007-10-10 13:36:23 -05:00
Andrew Bartlett
ca87549168 r9928: ncName is a DN, and needs to use DN matching rules.
Andrew Bartlett
(This used to be commit b89e7a7fcd)
2007-10-10 13:36:22 -05:00
Jelmer Vernooij
74b26525ea r9919: Remove debug statement from samba3sam
Add SOC STATUS doc
(This used to be commit 152c1a37b5)
2007-10-10 13:36:22 -05:00
Jelmer Vernooij
f14f4fd706 r9918: Fix two copy-n-paste bugs that were preventing the modification
of special DN's when the rdn_name or timestamps modules were in use.
(This used to be commit c61efb2ff8)
2007-10-10 13:36:22 -05:00
Jelmer Vernooij
08f630be82 r9915: Some more mappings. Fix weird sAMAccountName values.
(This used to be commit 8ff1358f40)
2007-10-10 13:36:21 -05:00
Jelmer Vernooij
4f4dae05f0 r9912: Fix another bug in ldb_map.
(This used to be commit 4c3b37d660)
2007-10-10 13:36:21 -05:00
Jelmer Vernooij
ca6c0af86f r9908: Generate posixUser and posixGroup as well
(This used to be commit ebed25b47d)
2007-10-10 13:36:21 -05:00
Jelmer Vernooij
e2e2508b58 r9899: Be more conservative about what is sent to the remote server in ldb_map.
(This used to be commit 76e943d441)
2007-10-10 13:36:21 -05:00
Tim Potter
eb133639dc r9885: Fix code before declarations.
(This used to be commit b7d982c94b)
2007-10-10 13:36:20 -05:00
Tim Potter
b2c54c08bf r9881: I can't believe this can make a difference...
(This used to be commit 31069bfd18)
2007-10-10 13:36:20 -05:00
Tim Potter
4d0ec61e49 r9880: Convert remaining initialisers to more portable form. This should
clean out a lot of build farm breakage.
(This used to be commit c34fbdc6c3)
2007-10-10 13:36:19 -05:00
Tim Potter
7a3e0a89f1 r9879: A quick check to see if nested initialisers (?) is portable across the
build farm.  I have a feeling it isn't.
(This used to be commit 7cc8df0c2f)
2007-10-10 13:36:19 -05:00
Jelmer Vernooij
1b5cb7309d r9857: Fix rename/delete issues
(This used to be commit d6dce7ef3e)
2007-10-10 13:36:18 -05:00
Jelmer Vernooij
05db3024ba r9854: Finish ldb_map testsuite
Update PLAN
Some more small other fixes
(This used to be commit de2bde2526)
2007-10-10 13:36:18 -05:00
Jelmer Vernooij
222fdd5237 r9842: More error checks in the ldb_map modules, extend testsuite
(This used to be commit b7992de4b7)
2007-10-10 13:36:17 -05:00
Jelmer Vernooij
84bfcd3c78 r9835: Make ldb_map compile in the stand-alone LDB build
(This used to be commit 2283a336e0)
2007-10-10 13:36:17 -05:00
Jelmer Vernooij
d991196655 r9827: Convert 'passdb backend' rather then 'passdb backends'
Be a bit more verbose
(This used to be commit fb2fd8da10)
2007-10-10 13:36:16 -05:00
Jelmer Vernooij
f58a74aaba r9816: Work on testsuite for upgrade
Add 'paths' object to provision code.
(This used to be commit 488d737fb0)
2007-10-10 13:35:04 -05:00
Jelmer Vernooij
40f85ace04 r9813: Conver testsuite for samba3sam module to EJS
(This used to be commit 77f24ed131)
2007-10-10 13:35:04 -05:00
Jelmer Vernooij
34305d74e1 r9808: Improve code that selects what "passdb backend" to import from.
(This used to be commit 7739d092d5)
2007-10-10 13:35:04 -05:00
Jelmer Vernooij
10ee597a78 r9807: Use talloc in fd_lines_load() and file_lines_load(). The return
value now can be freed using talloc(). I couldn't find the free_lines_list()
function that was supposed to free it before.
(This used to be commit f6f31661d0)
2007-10-10 13:35:03 -05:00
Jelmer Vernooij
9f4b32996c r9800: Add EJS interface to param. tridge, sorry this overlaps a bit
with your loadparm interface. :-/
(This used to be commit bb0cef581a)
2007-10-10 13:35:03 -05:00
Jelmer Vernooij
a3a7881d39 r9798: Add generic functions for handling smb.conf files (the parameters don't to be pre-declared). Also doesn't use any globals, so multiple files can be loaded at once.
Currently uses the prefix "param" for all functions and structures; suggestions for better ones are welcome...

Remove old smb.conf-parsing code from libsamba3.
(This used to be commit 414e5f7f6d)
2007-10-10 13:35:02 -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 Tridgell
b75ca9aa2c r9791: r11611@blu: tridge | 2005-08-30 21:48:22 +1000
recognise any case combination of 'localhost' as 127.0.0.1
(This used to be commit 1d8dae5167)
2007-10-10 13:35:01 -05:00
Jelmer Vernooij
81e130b592 r9789: Patch from Volker that fixes the build on AIX.
(This used to be commit 9a1a7fb60e)
2007-10-10 13:35:01 -05:00
Jelmer Vernooij
f9447d2a17 r9786: Move ldb_map into ldb/modules/
Move samba3sam to dsdb/
(This used to be commit eb9d615bcd)
2007-10-10 13:35:01 -05:00
Andrew Tridgell
5c6528336c r9775: r11607@blu: tridge | 2005-08-30 12:16:19 +1000
fixed the help message
(This used to be commit 5e3d9708f6)
2007-10-10 13:35:00 -05:00
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
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
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
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
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
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
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
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
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
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
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
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
ca71549d5a r9581: Registry db
(This used to be commit b264e9f56a)
2007-10-10 13:34:31 -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
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
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
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
Jelmer Vernooij
c1b6fd5c4b r9552: Add idmap support.
(This used to be commit 37882f2287)
2007-10-10 13:34:27 -05:00
Andrew Tridgell
8f9478b09d r9504: use some low level ejs hackery to give much better exception error messages in both
the web server and smbscript. We can now give backtraces for all internal asserts, not
just high level errors
(This used to be commit 84c756b25c)
2007-10-10 13:34:23 -05:00
Andrew Tridgell
a92e61c452 r9503: removed duplicate REG_* defines from registry.h now that they are
generated in winreg.h
(This used to be commit fc15e1b003)
2007-10-10 13:34:23 -05:00
Jelmer Vernooij
5b15e435d1 r9472: Add read-only version of Samba3 registry database (doesn't compile yet)
(This used to be commit 77cbb62998)
2007-10-10 13:34:19 -05:00
Andrew Tridgell
81556a9078 r9464: fixed a problem with child pointers copied into non-allocated mpr variables. We
now use the same free technique as is used for mpr strings, rather than relying on
being a child of the variable
(This used to be commit 3d6739eaa6)
2007-10-10 13:34:18 -05:00
Jelmer Vernooij
6e388c27d8 r9455: Support for reading the policy database
(This used to be commit 7548a5012a)
2007-10-10 13:34:17 -05:00
Simo Sorce
894a1ed5ae r9451: some fixes now core.schema and cosine.schema are also read properly
(This used to be commit 0a26ee0432)
2007-10-10 13:34:16 -05:00
Jelmer Vernooij
70ca861538 r9450: Initial work on reading group mapping database.
(This used to be commit 788fd262fc)
2007-10-10 13:34:16 -05:00
Jelmer Vernooij
0b3f8c443d r9449: Add simple utility for dumping Samba3 domain information. Currently
only prints rids and usernames of users in passdb database.

Update plan
(This used to be commit 651d06728f)
2007-10-10 13:34:16 -05:00
Jelmer Vernooij
7de12a8d50 r9448: Work on reading the secrets tdb. Build tdbsam support by default.
(This used to be commit 9ea601c0a6)
2007-10-10 13:34:16 -05:00
Simo Sorce
5c16371daa r9447: Add a new tool to convert openLdap schema files into an ldif
My first test with nis.schema seem to confirm it works properly

Use a command line like:
oLschema2ldif -I tests/schema/nis.schema -O nis_schema.ldif -b "dc=sambadom,dc=samba,dc=org"
to see how it works.

SSS
(This used to be commit fc373fd463)
2007-10-10 13:34:16 -05:00
Simo Sorce
f975eb06f0 r9446: clean up old test file
(This used to be commit 10e4ebcc42)
2007-10-10 13:34:15 -05:00
Jelmer Vernooij
9796ba264c r9445: Support flags, add DATA_BLOB support
(This used to be commit cb5b23f038)
2007-10-10 13:34:15 -05:00
Jelmer Vernooij
f0b06b36f9 r9442: Support some more primitive types. Fix charset support.
(This used to be commit eeced29eb3)
2007-10-10 13:34:15 -05:00
Jelmer Vernooij
3c4cc87bf8 r9438: Add initial files for ldb_map
(This used to be commit a66eeadecd)
2007-10-10 13:34:14 -05:00
Jelmer Vernooij
85a12fe9af r9437: Update PLAN and README for Samba3 compatibility layer
Add support for reading tdbsam files
(This used to be commit 75ac972909)
2007-10-10 13:34:14 -05:00
Andrew Bartlett
684c824e9a r9421: Move arcfour code into it's own file, in lib/crypto.
Andrew Bartlett
(This used to be commit ca6cf46270)
2007-10-10 13:33:37 -05:00
Andrew Bartlett
479be53c0a r9414: Fix failure to find own domain info due to recent ldb_dn upgrade - we
don't use a simple char* here any more.

Andrew Bartlett
(This used to be commit f21c31c7e1)
2007-10-10 13:33:36 -05:00
Simo Sorce
f2ac4b8d6b r9394: avoid to use BOOL in ldb
(This used to be commit d2055849fb)
2007-10-10 13:33:33 -05:00
Simo Sorce
7c7b93f649 r9393: Fix ldb standalone build
(This used to be commit 796d0ea2fc)
2007-10-10 13:33:33 -05:00
Simo Sorce
ac90ddfdb2 r9392: Fix ldb_dn_compose to make build farm happy
Add ldb_dn_string_compose so that you can build a dn starting from a
struct ldb_dn base and a set of parameters to be composed in a format
string with the same syntax of printf
(This used to be commit 31c69d0655)
2007-10-10 13:33:33 -05:00