1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-07 01:58:28 +03:00

14091 Commits

Author SHA1 Message Date
Gerald Carter
d22a90c64f bumping version string
(This used to be commit e4cd21222dbd1a7a7f79618762799373230d4905)
2003-07-22 15:02:39 +00:00
Alexander Bokovoy
dca325f4f2 Fix comment
(This used to be commit 04f1577a39b926317911f59714de5c5ca87f02bd)
2003-07-22 14:43:05 +00:00
Gerald Carter
95fb5f95e5 sync from bea3 release
(This used to be commit e42cc1e920601883cd404e9b2292ca58554ccf63)
2003-07-22 13:10:57 +00:00
Tim Potter
c9bc4b27b7 Another round of uid/gid/pid format string changes I missed the
first time.
(This used to be commit 6616485dbad74dab7506609c6bfd183fc9c1f93c)
2003-07-22 06:52:39 +00:00
Tim Potter
80c1f1d865 Fixup a bunch of printf-style functions and debugs to use unsigned long when
displaying pid_t, uid_t and gid_t values.  This removes a whole lot of warnings
on some of the 64-bit build farm machines as well as help us out when 64-bit
uid/gid/pid values come along.
(This used to be commit f93528ba007c8800a850678f35f499fb7360fb9a)
2003-07-22 04:31:20 +00:00
Tim Potter
06345b8116 Use %p for a pointer type in a printf-style format string. Also casting
a pointer to a uint32 value is incorrect on a 64-bit architecture.
(This used to be commit afed2cbbcc07de9e453156972250f5f9d22e8e83)
2003-07-22 01:18:24 +00:00
Tim Potter
274f1f8806 Replace the eight (!) copies of dummy become/unbecome root with a single one.
(This used to be commit 8b818ce381595cdcb36631a2440d6aa0038805f1)
2003-07-22 00:20:53 +00:00
Tim Potter
63537d0add Use lp_idmap_[ug]id() instead of lp_winbind_[ug]id()
(This used to be commit cfb86b4503c13b34583a61ef01ca8e1ed00fb9e4)
2003-07-22 00:16:39 +00:00
Tim Potter
71a93a1551 Metze's AD/LDAP detection patches mainly to do with library detection.
Tested on a large combination of operating systems and versions.
Hopefully the build farm will find any remaining nasties if they
exist.
(This used to be commit 2e42fa3d7217615d90ad64261513bd1e8a65f535)
2003-07-21 23:42:45 +00:00
Richard Sharpe
f746a68030 Clarify a debug log a little. The path might not exist, so say so.
(This used to be commit 8409cf3e470df79f219f9a21c0cb780e9257186c)
2003-07-21 20:20:09 +00:00
Rafal Szczesniak
b3064ac5d6 This creates passdb backend files automatically when adding first account.
An extra message notifying that needed file didn't exist is displayed.
There's still a little catch with tdb backend, but it's better than it was,
from end-user's point of view.

This fixes #198


rafal
(This used to be commit b0be700605c289ce8e9dd3abe49d78ac77256911)
2003-07-20 21:43:41 +00:00
Rafal Szczesniak
bbd4c98b06 Typo fixes.
(This used to be commit 85df8213fc67a9c8e8712cb64f27e5559dc11af9)
2003-07-20 14:50:38 +00:00
Jelmer Vernooij
602db7904e Fix typo
(This used to be commit ee4b69c539000b17db31ea3d41d0c7145f0ca25c)
2003-07-20 00:34:24 +00:00
Volker Lendecke
7756b4088d Fix memleak
(This used to be commit defc71d4cb9bb1efcb39157bad2806f73b3cc3f5)
2003-07-19 11:28:15 +00:00
Andrew Bartlett
e45b66ba8a Fix StrCaseCmp() to avoid calling smb_panic() on invalid multibyte strings.
This fix results in
 - we no longer use fixed-size buffers in StrCaseCmp (previously limited to
   a pstring)
 - we return strcmp(s, t) if either of the strings is invalid
 - for non-ascii cases, we call iconv twice, not 4 times.

The basic idea with this fix is that if a string is not valid in the currnet
charset, then (unless it is byte-equivilant) it cannot be case-equivilant
to any other string.

This should address the majority of our smb_panic() cases on this matter.  It
will not fix them all - we still call unix_strupper(), aka strupper_m()
elsewhere, but this was being called on every file in the directory when
we performed unix_convert().

Tested with the stf unit tests for this routine.

Andrew Bartlett
(This used to be commit 9918fa73145a22b1d7adf001f0a9cf0e1bda4136)
2003-07-19 00:36:43 +00:00
Rafal Szczesniak
fb56f58fbc According to the result of voting, net has default debug level with
ability to change it by command line instead of turn-off cmdline switch
for debug messages.
It's a bit more comfortable to use now.
(This used to be commit b65fe75bec8170ad48d1ad0a9017ccc4de651eba)
2003-07-19 00:23:08 +00:00
Volker Lendecke
f4d4b079e9 Fix memleak
(This used to be commit 228fe54f0d65b895bef9e095ad996a48edf964df)
2003-07-18 11:36:16 +00:00
Volker Lendecke
ffbb6ee3b8 Fix two memleaks in pdb_ldap.c.
Whoever put the private.backend_private_data_free_fn thingy into
SAM_ACCOUNT, could you please revisit my change to pdb_get_set.c and
comment on my comment there?

Thanks,

Volker
(This used to be commit 922ec277d1c80b5532f5cac0ee99ae7cd20f83f1)
2003-07-18 09:05:30 +00:00
Andrew Tridgell
5e252c86bd make sure we don't allow the creation of directories containing
wildcard characters. I've only put this in mkdir at the moment, but I
suspect this will apply to all places that can create new filenames.

We need to allow the opening of existing filenames that contain
wildcards, but not allow the creation of new ones.
(This used to be commit 2fd5569938b8970f3e9d761eecad5bc0b8bb267e)
2003-07-18 07:07:29 +00:00
Andrew Tridgell
14f3c75070 this fixes a bug where Samba would under some circumstances return
incomplete directory listings. The problem was the exact_match
optimisation that short circuited directory listings on exact
matches. This optimisation doesn't work when the unix filename
contains Microsoft wildcard characters.
(This used to be commit 84cee2c3fcc34fe6356e842821a5f0a361477637)
2003-07-18 06:48:28 +00:00
Tim Potter
fc7c1101fb Fix spelling typo.
(This used to be commit 5cb7d92751b6da58bb3ecd97cced5c963d348bed)
2003-07-18 03:04:13 +00:00
Tim Potter
09f90ae63e Uninstall modules as part of uninstall. Partial fix for 236.
We still don't uninstall swat or the man pages properly.
(This used to be commit 90157b9bd3d4122e647faa48b17a44d63b07e32e)
2003-07-18 02:57:43 +00:00
Andrew Tridgell
e895bd2320 fixed the pstrcpy() bug in directory recursion properly
(This used to be commit 132d6fdf635eb2bf2a1afd6e850d0f6967260f84)
2003-07-18 01:36:11 +00:00
Jeremy Allison
814e987c62 Signing so far... the client code fails on a SMBtrans2 secondary transaction
I think (my changes haven't affected this I believe). Initial support on the
server side for smbclient. Still doesn't work for w2k clients I think...
Work in progress..... (don't change).
Jeremy.
(This used to be commit e5714edc233424c2f74edb6d658f32f8e0ec9275)
2003-07-18 00:53:34 +00:00
Jeremy Allison
5b4a2dfd2b Formatting tidyups to match the rest of the source.
Jeremy.
(This used to be commit 86c5ebcf8f5eb57e9885627b3da4e486ee3f62d9)
2003-07-17 18:55:40 +00:00
Volker Lendecke
9ec9df5fe4 Disconnect an idle LDAP connection after 150 seconds.
Not strictly a bugfix, but it should considerably reduce the load we
put on LDAP servers given that at least nss_ldap on Linux keeps a
connection open.

And it should also stress our reconnect-code a bit more ;-)

Thanks to metze for this!

Volker
(This used to be commit e68d8eabeb9c64dc45d057619f9b3dd0cd507444)
2003-07-17 11:24:54 +00:00
Volker Lendecke
0fe05982cd Ban getgrouplist on linux glibc systems with glibc <= 2.3.
This segfaults when you have to many group membership entries
in /etc/group.

Fixed in glibc CVS end of April 2003.

Volker
(This used to be commit 61bfdf0b12457689b08c19a6269259abf3d15410)
2003-07-17 10:03:37 +00:00
Tim Potter
7f7b754483 Fix for bug 222 from Marcin Owsiany.
Don't get stuck in an infinite loop listing directories recursively
if the server returns an empty directory name.  This can happen with
incorrect i18n configuration on a Samba server.
(This used to be commit f93a2831f1b4e5751ca86d46a6e5ede9adf660cb)
2003-07-17 04:17:58 +00:00
Tim Potter
bcd659f26a Don't use pstrcpy on non-pstrings.
(This used to be commit 3498624d941fe200b06f114ece3373d4c4cfb2d1)
2003-07-17 03:53:43 +00:00
Andrew Bartlett
4c53bb6b90 In the presense of RPC fragments, schannel is not strictly request/reply,
so the shared sequence number will not be strictly odd/even.

Andrew Bartlett
(This used to be commit 77c3e69aef545d3f9b7cec9efdc366cbeb0c745e)
2003-07-17 01:34:05 +00:00
Jeremy Allison
583fc85078 Correctly toggle the signing state to what it was previosly when sending
an oplock break.
Jeremy.
(This used to be commit 9515de83a864250c417cf490b7be714c8e1e127e)
2003-07-17 00:58:14 +00:00
Jeremy Allison
9ad4fbcf75 Don't allow read/write raw when signing is active.
Jeremy.
(This used to be commit 8d2a848052df03dad7bfeb5e7be96f8e9a509bbf)
2003-07-17 00:53:37 +00:00
Jeremy Allison
f1b6cd794d Putting the framework for server signing in place. Ensure we don't use
sendfile when signing (I need to add this for readbraw/writebraw too...).
Jeremy.
(This used to be commit f2e84f1ba67b13ff29e24a38099b559d9033a680)
2003-07-17 00:48:21 +00:00
Jeremy Allison
6ab5e14494 Refactor signing code to remove most dependencies on 'struct cli'.
Ensure a server can't do a downgrade attack if client signing is mandatory.
Add a lp_server_signing() function and a 'server signing' parameter that
will act as the client one does.
Jeremy
(This used to be commit 203e4bf0bfb66fd9239e9a0656438a71280113cb)
2003-07-16 22:57:56 +00:00
Eloy Paris
cdb3b5dec2 Further Debian fixes.
(This used to be commit 8f86cb196f9f2eaa4d6406f1082397dcf01897bf)
2003-07-16 21:30:02 +00:00
Jeremy Allison
4fbbaff415 Add API framework for server SMB signing.
Jeremy.
(This used to be commit 61fc9a7b2eafdf8cbed1f8d9aae016b828c91a08)
2003-07-16 21:06:21 +00:00
Jeremy Allison
8c38bb75b7 Add krb5_princ_component to Heimdal. Remove cli_ from mark packet signed.
Jeremy.
(This used to be commit dd46f8b22d6e8411081a1279e1cd32929e40370b)
2003-07-16 19:17:33 +00:00
Jeremy Allison
1eff052300 Reformatting fixes to bring in line with the rest of the source.
Jeremy.
(This used to be commit 3c11d9362379f16bb0d14449f64e731efad97ffe)
2003-07-16 18:06:27 +00:00
Gerald Carter
4c8863ab08 adding command for moving a record from one tdb to another
(This used to be commit d0d85dd49c41c55e086714a45990d5cd6c36fa10)
2003-07-16 16:51:51 +00:00
Gerald Carter
2da3330555 make tdbtool deal with NULL and non-NULL terminated keys
(This used to be commit 5df7b9a3efaf5b7828d0405bc14504d14d9e833a)
2003-07-16 16:26:40 +00:00
Gerald Carter
449a1bc848 sync with release tree
(This used to be commit dd10e7c9bbef0d28f3c5330605ff3b18c278eeef)
2003-07-16 15:01:26 +00:00
Volker Lendecke
658099b695 Fix memleak
(This used to be commit 42a59d691019ee328920be25a1c505037f74151f)
2003-07-16 13:57:53 +00:00
Volker Lendecke
36d1df4413 typo
(This used to be commit 09e00970d4b3ec80467a4a292c39650d6c945847)
2003-07-16 13:35:23 +00:00
Tim Potter
aed434ea9b Spelling.
(This used to be commit 2750418752e491c5e87f0f2adf253291e31ee4c2)
2003-07-16 05:51:10 +00:00
John Terpstra
ca93846230 Documentation Update for Beta3.
(This used to be commit a88dc502cb3b6b2d905106675f50680bf22e2cfa)
2003-07-16 05:42:10 +00:00
Gerald Carter
6810e37aee removing outdated scripts
(This used to be commit b47b6f5825753b4ad130cdd372dbd023f78d3fd9)
2003-07-16 04:53:57 +00:00
Gerald Carter
b1b70182c8 remove outdated doc
(This used to be commit ee44d72a1bf24ecf99d485f4d9ff8359d54e19c3)
2003-07-16 04:50:45 +00:00
Gerald Carter
794c577ac3 adding another missing doc
(This used to be commit ec92d856734e6d32189c3e90411fd02a20b8fe83)
2003-07-16 03:54:08 +00:00
Gerald Carter
259763dac9 updating WHATSNEW
removing old readme (not part of WHATSNEW)
(This used to be commit c9c5f68eeab5a36b279673c728411672b4b4449b)
2003-07-16 03:51:25 +00:00
Andrew Bartlett
8a4577cc22 Fix up our auth_pipe code to always cope with fragmented datagrams,
in both SCHANNEL and NTLMSSP.

(Try not to deal with a general case as individual special cases...)

Andrew Bartlett
(This used to be commit 6ca77bd28f16f9f65ff40bf8996e39356de5b4f8)
2003-07-16 03:22:43 +00:00