1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-10 13:57:47 +03:00

24141 Commits

Author SHA1 Message Date
Volker Lendecke
e518e19bc0 Remove Get_Pwnam and its associated static variable
All callers are replaced by Get_Pwnam_alloc
(This used to be commit 735f59315497113aebadcf9ad387e3dbfffa284a)
2007-12-19 21:09:10 +01:00
Volker Lendecke
042201bcc1 Fix a "no prototype" warning
(This used to be commit e5bd32812dd1e864e51c2199fd90d71813517f68)
2007-12-19 20:48:45 +01:00
Volker Lendecke
5f1d36ce9a Fix debug messages
When warning that "client plaintext auth" is not enabled where the server
requested them we should not talk about "client use plaintext auth"
(This used to be commit 7799e18994354b2705ee8c64ae8c75e062ace460)
2007-12-19 20:48:45 +01:00
Volker Lendecke
873b6f0f21 Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-716-g12cce3b
On Tue, Dec 18, 2007 at 06:04:32PM -0600, Jeremy Allison wrote:
>     Fix valgrind error in dbwrap_rbt where rec_priv->node was
>     being accessed after free. VALOKER PLEASE CHECK THIS VERY
>     CAREFULLY !!!! This is a correct fix in that it fixes the
>     valgrind error, but it looks inelegant to me. I think if
>     I understood this code better I could craft a more subtle
>     fix. Still looking at it....

Thanks a lot. Fully correct. What about the attached little
simplification?

Volker
(This used to be commit 5b72828600fb057a7aeb5f1a6fb6c23c23f28cd8)
2007-12-19 10:16:43 -08:00
Volker Lendecke
a37873490f packet_struct is used in several places as raw memory
-> Fix more uninitialized variable warnings
(This used to be commit 0af02db6f2f84a8ce5d614e5baec27f20b413c26)
2007-12-19 17:15:45 +01:00
Volker Lendecke
0743d384a6 Some paranoia checks
(This used to be commit ff644cfa1b123e9d0f8f4817504e5b209b85dedd)
2007-12-19 16:57:48 +01:00
Volker Lendecke
2197801ef1 Zero the tdb key, there might be padding
This leads to uninitialized variable warnings if nmbd is run under valgrind.
(This used to be commit 9ec4f91f35696e5a00e24fe9ae2dd06119482c80)
2007-12-19 16:57:40 +01:00
Volker Lendecke
cd893dd365 Today is not my day...
dmapi.c certainly did compile now...
(This used to be commit 93f3a1172af2f1a20f0c4c26ec8be999546d95f8)
2007-12-19 16:30:36 +01:00
Volker Lendecke
712a28aaae Rename cache.[ch] to memcache.[ch]
cache.h conflicts with an XFS DMAPI include on "opi" :-(
(This used to be commit b8db804e07cc19d406ba3892d6eecbe16132a89a)
2007-12-19 16:07:19 +01:00
Günther Deschner
713e1536fe Merge WERR_NO_SUCH_LOGON_SESSION from Samba4.
Guenther
(This used to be commit 7b528647879bb55c9c85243a3e2906c09490edc9)
2007-12-19 11:15:29 +01:00
Günther Deschner
d0cd32e2c8 Add and use some keystr functions using talloc_tos() in secrets api.
Guenther
(This used to be commit 6ccbf67a0c6f117978df55d4e2565d34fddf9317)
2007-12-19 11:15:17 +01:00
Günther Deschner
5eca35e0ca Add cmd_wkssvc_enumeratecomputernames to rpcclient.
Guenther
(This used to be commit 289151393a43c7f0c2baafdd79d1163fc80aad6a)
2007-12-19 11:15:05 +01:00
Jeremy Allison
7326612cfd Two more static fstrings gone.
Jeremy.
(This used to be commit 4056bb8645821fba95d6e9ca4d82e2d5084c1e5c)
2007-12-18 18:16:40 -08:00
Jeremy Allison
a34c6cd0e7 Remove last_message completely as it's no longer used.
Jeremy.
(This used to be commit c378c3edc1197d46c5d6eb2bcabbf9e774c03ffc)
2007-12-18 18:10:09 -08:00
Jeremy Allison
75ca692430 Remove another static fstring.
Jeremy.
(This used to be commit f9182bbe628cb5f5395a08b2e09d4a282a99d7dc)
2007-12-18 18:01:34 -08:00
Jeremy Allison
c99dc69a45 We've finished with the old node once we've copied the
keyval.
Jeremy.
(This used to be commit 39f3efbcc5fbdff1db1b12e5fc7368968f240993)
2007-12-18 17:30:02 -08:00
Jeremy Allison
537c4cf9cd Fix valgrind error in dbwrap_rbt where rec_priv->node was
being accessed after free. VALOKER PLEASE CHECK THIS VERY
CAREFULLY !!!! This is a correct fix in that it fixes the
valgrind error, but it looks inelegant to me. I think if
I understood this code better I could craft a more subtle
fix. Still looking at it....
Jeremy.
(This used to be commit 12cce3be2a24fd72106d747890caf6c7f29db43d)
2007-12-18 16:03:57 -08:00
Michael Adam
1394b91888 Fix an error when accessing unallocated sid in error path.
Michael
(This used to be commit 2a0585d3093265a499c9fef60d500059f79b4112)
2007-12-18 16:33:35 +01:00
Volker Lendecke
b940e473dd Add forgotten cache.h
(This used to be commit 0dc4d6a8de84c191e339ee08c7f06ca63f83e6f3)
2007-12-18 10:10:46 +01:00
Volker Lendecke
f427d4ce65 Add a in-memory cache
This is a more general API that caches data with a LRU scheme. See
include/cache.h. No comments yet, I'm still working on it. But Jeremy has given
me a hint in one of his checkins that he would like to make use of this now.

The idea is that we get rid of all our silly little caches and merge them all
into one cache that we can then very easily trim, for example even with a
smbcontrol message if someone decides memory is tight. The main user is the
stat cache, this patch also converts the getwd cache. More caches to come.
(This used to be commit 7a911b35713538d82001a3c9f34152e293fe1943)
2007-12-18 09:56:04 +01:00
Michael Adam
68e65b2981 Fix a debug message: add missing space.
Michael
(This used to be commit 6a7f2a59fc370e226ddacb195059155f28c6c157)
2007-12-18 07:58:37 +01:00
Rishi Srivatsavai
bf2c5e2bde Add smbclient support for basic mDNS browsing.
Patch from Rishi Srivatsavai (bugzilla #4150), with tallocification
and minor syle changes by me.
(This used to be commit db74b99d0ef1a60894c838b4c9d0d454db6cf620)
2007-12-17 22:09:09 -08:00
Jeremy Allison
2d1b03d67a More static pstring elimination.
Jeremy.
(This used to be commit 92acc0115d8d4111289c2ade1db7bb060ee908db)
2007-12-17 18:32:27 -08:00
Jeremy Allison
e3efe7cd7e More static fstring elimination.
Jeremy.
(This used to be commit b4dfec09e89428cac9b21a94ce4d24e60d4a54f4)
2007-12-17 18:00:43 -08:00
Jeremy Allison
192aae0564 Remove more static fstrings (yes this little cache should be
in the rbtree....).
Jeremy.
(This used to be commit 97cfdae4052d46a35040d4c1a4ade8bf2c41dbc7)
2007-12-17 17:27:29 -08:00
Jeremy Allison
5bfe3c49a1 Correctly define prototypes for accessor functions.
Jeremy.
(This used to be commit 299ea5d122e173adf6edb6399fc90798747b0c97)
2007-12-17 17:13:31 -08:00
Jeremy Allison
289d793629 Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
(This used to be commit 8223624fea7c1b61e9231168cb4d82771576cbc5)
2007-12-17 17:03:07 -08:00
Jeremy Allison
2b0a570c77 More static fstring removal.
Jeremy.
(This used to be commit dcf624aa02cf7415a4a55e6d45606e813ae6b91f)
2007-12-17 17:02:48 -08:00
Michael Adam
a62cc94443 Fix logic error in cm_connect_sam().
Don't fall back to schannel when trust creds could be obtained.
This is still not complete, but I am getting closer.

Michael
(This used to be commit 7c9fa597d684a25822b4db6615f28336f2d64ef3)
2007-12-18 01:55:48 +01:00
Michael Adam
a3081ba5b5 Prevent another segfault.
Michael
(This used to be commit 0a9874c1c76c0ccc71caba7ee85a0ee1a91808c5)
2007-12-18 01:30:52 +01:00
Jeremy Allison
c8071c3522 Use the %*s feature of snprintf to remove anothe static fstring.
Jeremy.
(This used to be commit 4ae4b2358688bf289305a2db0ed01b653ac073b2)
2007-12-17 16:20:44 -08:00
Gerald (Jerry) Carter
d9553e8fd1 Fix a segv in winbindd caused by trying to free an fstring.
Make a copy of the machine_password and machine_account strings
in all conditional paths so that SAFE_FREE() will always be valid.
(This used to be commit 194c4640b158457a6d0d5ea91e28d41d619c77de)
2007-12-17 17:33:48 -06:00
Michael Adam
d9682dfb59 Do not close netlogon pipe in get_schannel_session_key_common().
This removes one forgotten call of cli_rpc_pipe_close(netlogon_pipe).
Correction of e77c4022cfbb868e608edcb06b676658b0e201ad.

Michael
(This used to be commit 7f6593cddef048dd05140b05d306c708d8134f0e)
2007-12-17 23:27:53 +01:00
Simo Sorce
2e44c4020b Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-simo
(This used to be commit e940537d5be870ae622712a3b76dff891739df8c)
2007-12-17 15:26:16 -05:00
Simo Sorce
4869ccfed6 While 'data' is usually 0 terminated, nothing in the spec requires that. The correct way is to copy only 'length' bytes.
Simo.
(This used to be commit 814c1b0e0034fb67c7718760dfcf913904f3e7fa)
2007-12-17 15:26:08 -05:00
Jeremy Allison
8f28bda7f8 Fix bug #5121 (unix passwd sync not working on a streams based
system).
Jeremy.
(This used to be commit 545cd2139cfc9484b733693814d4724d37125942)
2007-12-17 10:44:09 -08:00
Simo Sorce
d20608c8f3 Merge in J.Layton patch and resolve conflict.
(This used to be commit 6b1a118eaaab405eeef0cf3c0488a2747af562ba)
2007-12-17 09:43:18 -05:00
Michael Adam
9f5a16a22d Remove direct caller of secrets_fetch_trusted_domain_password().
This is a regession introduced by f7efc0eca9426e63b751c07a90265a12bb39cf95.
This calls pdb_get_trusteddom_pw() instead, again.

Michael
(This used to be commit 91be824d2ba0b8dccf42ba2b8555a204aa1fa56c)
2007-12-17 14:51:37 +01:00
Michael Adam
3fa2183941 Reformat: Remove trailing spaces.
Michael
(This used to be commit 5249b3d204bf5f9191c2a4a7e81d09227eb5ddea)
2007-12-17 13:25:49 +01:00
Michael Adam
602bb7d766 Make usage message for net sam rights list a little more precise.
Michael
(This used to be commit d466a5136d5151e2a3cae7464cb346f0db650554)
2007-12-17 13:23:05 +01:00
Michael Adam
81327b1613 Fix for bug #4801: Correctly implement lsa lookup levels for lookupnames.
This patch is still incomplete in that winbindd does not walk
the the trusted domains to lookup unqualified names here.
Apart from that this fix should be pretty much complete.

Michael
(This used to be commit f7efc0eca9426e63b751c07a90265a12bb39cf95)
2007-12-17 13:06:13 +01:00
Michael Adam
720c65faed Fix flags in caller of lookup_name() in create_builtin_administrators().
Michael
(This used to be commit 46bfbf5c8af6c030e67219a29c49fd2d40003b18)
2007-12-17 13:06:09 +01:00
Michael Adam
7d5415a2cc Fix flags in all callers of lookup_name() in net_sam.c.
Michael
(This used to be commit 6d0db17a9e255235d40eabc63e91c9f5d4febcde)
2007-12-17 13:06:01 +01:00
Michael Adam
4c8a708288 Fix flags in call of lookup_name() in srv_samr_nt.c: can_create().
Use LOOKUP_NAME_LOCAL instead of LOOKUP_NAME_ISOLATED.

Michael
(This used to be commit 1d4e0ad1142c61de402c925306f02f5de2c872f6)
2007-12-17 13:05:54 +01:00
Michael Adam
286b050e15 Fix flags in call of lookup_name() in pdb_default_create_alias().
Use new flag LOOKUP_NAME_LOCAL.

Michael
(This used to be commit 280d6cb6c8e834ce0a08769e9187b0f40321716f)
2007-12-17 13:05:45 +01:00
Michael Adam
470e970e41 Add combined flag LOOKUP_NAME_LOCAL.
Presence of LOOKUP_NAME_ISOLATED as the only flag is not the sign
for doing local lookups only but the sign for allowing lookups
of unqualified names. The correct sign is absence of the flag
LOOKUP_NAME_REMOTE.

Michael
(This used to be commit cd8c0057446a1311a860f6cc3876a113568f6c30)
2007-12-17 13:05:29 +01:00
Volker Lendecke
7ec9ee0e05 Remove t_doschar.c
(This used to be commit b89f87242b9c949401f3fa9b352211906cb76895)
2007-12-17 07:18:30 +01:00
Jeremy Allison
26daf2b479 Remove another static string and static passwd.
Jeremy.
(This used to be commit 2a700c5a57a417add3b1975b2c396d20c8a5f301)
2007-12-16 18:32:03 -08:00
Jeremy Allison
bd1172d106 Remove a static fstring.
Jeremy.
(This used to be commit 898c56c0ead6331721de9645ce55608cbe7cf34d)
2007-12-16 18:02:32 -08:00
Volker Lendecke
3c490d91f1 get rid of doschar_table[]
If I'm not completely blind, then check_dos_char is *only* used in the case
when we can't mmap() valid.dat. To me this looks as if we initialize the 65536
bits in doschar_table[] with check_dos_char_slowly, use it once to initialize
valid_table[] and *never* use them again. I think there's no point in keeping
these 8k of modified memory around for an unlikely case (no "valid.dat") and
even that only to use it exactly once.
(This used to be commit 0bfea7259e4091c6d914528a0e65fc10d8a56fb8)
2007-12-16 10:57:01 -08:00