1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

18694 Commits

Author SHA1 Message Date
Derrell Lipman
50a06f76ef r12471: r12038@cabra: derrell | 2005-12-24 23:17:16 -0500
libsmbclient was not loading the global configuration file.  This should fix 3336.
(This used to be commit 6d7a9ce7a7060b9b397ae77b8b54d3cf25e50e5a)
2007-10-10 11:05:57 -05:00
Derrell Lipman
494e332220 r12468: r12033@cabra: derrell | 2005-12-24 21:03:45 -0500
actually add the new test program
(This used to be commit e3bab0cc437f3c51c74e438d8d76ffd8afe8644c)
2007-10-10 11:05:56 -05:00
Derrell Lipman
9d36d5ee2d r12467: r12029@cabra: derrell | 2005-12-24 20:25:59 -0500
add another libsmbclient test program
(This used to be commit 133cd3952b7f5fc9e9ca8d82a33ed1272067a6c8)
2007-10-10 11:05:56 -05:00
Derrell Lipman
56b20b8397 r12466: r12028@cabra: derrell | 2005-12-24 20:25:38 -0500
parse dates correctly.  w_time and m_time were reversed.
(This used to be commit 481abfbab40209e087c82eadc15c3697eae0ae5b)
2007-10-10 11:05:56 -05:00
Volker Lendecke
67706697c5 r12460: Fixes for bug 3349
(This used to be commit 040eda6bf0517204d5650702eea7e1d1c5eeb3d5)
2007-10-10 11:05:56 -05:00
Günther Deschner
3e80ef29a6 r12452: Fix Bug #3053 to allow esp. older eDirectory releases to load our LDAP
schema.

Maybe "Base64 encoded user parameter string" is not much clearer then
"munged dial" - anyone got a better description ?

Guenther
(This used to be commit 02ccde5f4792e34ad88b7adb5ebaf1747cb8151f)
2007-10-10 11:05:56 -05:00
Günther Deschner
ea6b1035bd r12441: Fix python build.
Guenther
(This used to be commit e33a20c222948414a9cf92fe6f63e655aebb6b06)
2007-10-10 11:05:56 -05:00
Volker Lendecke
88d3b08147 r12438: Remove an unused function
(This used to be commit 561e351d25b58fda4b050525aa03d18e4d88cc6c)
2007-10-10 11:05:56 -05:00
Günther Deschner
1501a1755c r12415: Forgot newlines.
Guenther
(This used to be commit c727a1a330e50b0919ff705d9ebc55c72d8fdee4)
2007-10-10 11:05:55 -05:00
Günther Deschner
107fe91d2b r12414: Remove the unnecessary SMB_STRDUP in server_role_str() + reuse the role
translation elsewhere.

Guenther
(This used to be commit 6c4a6da3dc7cecce09890a0da7d97b9d1bb47827)
2007-10-10 11:05:55 -05:00
Günther Deschner
25f13bb0f1 r12407: Fix returning wrong error codes and better sort out errors and stdout
messages.

Guenther
(This used to be commit 3ca735f7ad5bee53cd778f13347d48a76008d6e4)
2007-10-10 11:05:55 -05:00
Günther Deschner
568e8003bc r12406: Since w2k3 sp1 we fail to create user accounts using e.g. "net ads user
add" with "Server is unwilling to perform". Seems we have to put in the
same userAccountControl bits the server would pick when we wouldn't send
them at all.

Guenther
(This used to be commit fd5da5875cdc47fc6ef6ba1615a9635f9f157589)
2007-10-10 11:05:55 -05:00
Deryck Hodge
025cee7eec r12403: Update url on the docs directory README.
deryck
(This used to be commit aeff7e3e180b3d8a79a1f90f7458ba85a670a451)
2007-10-10 11:05:55 -05:00
Gerald Carter
830149e6d9 r12400: one line patch for Sun LDAP libs pointed out by Nicholas Brealey <nick@brealey.org>
(This used to be commit 5121d3806992da79d194717ef7a9da810b5ff679)
2007-10-10 11:05:55 -05:00
Gerald Carter
5ac6b21f09 r12398: adding Guenther's account policy migration fix
(This used to be commit be32f10609f2274903cb3b2c6b84c9aa62962151)
2007-10-10 11:05:54 -05:00
Gerald Carter
67e8af8527 r12393: cleaning up swat bugs. *no one* tests swat it seems. This has been broken since r10656
(This used to be commit 85ea7afd8bd30e0a2bcbc7181f75fde63b016a34)
2007-10-10 11:05:54 -05:00
Jeremy Allison
894979c69b r12387: Make string_to_sid a little more silent.
Jeremy.
(This used to be commit 7ccff8071abf2bd85f4022abace1f96c7f7f0d29)
2007-10-10 11:05:54 -05:00
Jeremy Allison
e53642a131 r12376: Second patch from Martin Koeppe <mkoeppe@gmx.de>
for #3287.
Jeremy.
(This used to be commit 8680eebbba220eea257c9ea093d5a463afe7bd94)
2007-10-10 11:05:54 -05:00
Günther Deschner
0f20bcdbaa r12341: add DEBUG statement.
Guenther
(This used to be commit d50098518d77f9559457f558df7d11d3f026833e)
2007-10-10 11:05:54 -05:00
Günther Deschner
ce5bde1e84 r12338: add ifdef DEBUG_PASSWORD before printing clear text password.
Guenther
(This used to be commit e0be0e052380b38235d4f34d366f48707ed59df7)
2007-10-10 11:05:54 -05:00
Günther Deschner
c32197dd22 r12336: A couple of fixes and enhancements for adssearch.pl (espc. to debug
GPOs).

sid2string fix from Michael James <michael@james.st>.

Guenther
(This used to be commit 9424b65c70bd24ba8f5b6c729dc1440a4dbf5647)
2007-10-10 11:05:53 -05:00
Volker Lendecke
28fb5b6f97 r12313: Introduce yet another copy of the string_sub function:
talloc_string_sub. Someone with time on his hands could convert all the
callers of all_string_sub to this.

realloc_string_sub is *only* called from within substitute.c, it could be
moved there I think.

Volker
(This used to be commit be6c9012da174d5d5116e5172a53bbe6486d6c38)
2007-10-10 11:05:53 -05:00
Volker Lendecke
0a585102d6 r12312: Reformatting and a trivial change: is_share_read_only_for_user only uses
conn->service, so there's no point in passing down the whole conn struct.

Volker
(This used to be commit 39041297c771795efaa4292bc6e8020c1a047f32)
2007-10-10 11:05:53 -05:00
Volker Lendecke
46dee7219d r12311: Reformatting
(This used to be commit 23f5be1dcbb9e5a1e7f24813c67009056b07d59c)
2007-10-10 11:05:53 -05:00
Volker Lendecke
f2c8291791 r12308: Reformatting
(This used to be commit 97acfa12e52e889c97d0f7ce72c1a7f863cb0665)
2007-10-10 11:05:53 -05:00
Volker Lendecke
862e4a11c1 r12307: Reformatting plus a trivial if/else simplification. There's no point in doing
an else branch that only returns NULL.

Volker
(This used to be commit ef4d9d96de3f1a242d26ae2f8033103bbdb7a2dc)
2007-10-10 11:05:53 -05:00
Volker Lendecke
286fed3627 r12306: Reformatting
(This used to be commit 3f1dad5fdbd104dc0c03a6a9488bd619b8915c83)
2007-10-10 11:05:53 -05:00
Volker Lendecke
b15c32800d r12305: Reformatting
(This used to be commit f574e980aac5bae5e1e3cc23ec648b69a87eb04a)
2007-10-10 11:05:52 -05:00
Volker Lendecke
e1dd50bfd7 r12303: Move split_domain_and_name to util_getent.c and make it static there.
Volker
(This used to be commit e7f348fcf871e8559ecf4e3e597627a78187d1da)
2007-10-10 11:05:52 -05:00
Volker Lendecke
8ee13ab866 r12291: Make getgroups_user static.
Jeremy, there's a #ifdef'ed 0 call to this in your usershare code. We need to
talk about what exactly what you intend to do here and in what scenarios.

Volker
(This used to be commit 95094ef758089cfc62700509d45b53bc0980654d)
2007-10-10 11:05:52 -05:00
Volker Lendecke
7ae0fd8ed8 r12290: Typo
(This used to be commit de839cc1658b6394e153a1f027c29524b301625b)
2007-10-10 11:05:52 -05:00
Gerald Carter
31c73b9913 r12281: adding a note about WINS and NetLogon not being remotely manageable
(This used to be commit b86528865abae7380e80a8a18f9fb53ac77d6472)
2007-10-10 11:05:51 -05:00
Jeremy Allison
10b5609a14 r12279: unix_mask_match has been broken for *ever*... (How).
Ensure it returns a BOOL.
Jerry (and anyone else) please check this, I think
all uses are now correct but could do with another
set of eyes. Essential for 3.0.21 release.
Jeremy.
(This used to be commit 0c7b8a7637e760fcb6629092f36b610b8c71f5c9)
2007-10-10 11:05:51 -05:00
Jeremy Allison
76796e212c r12275: Fix memory leak found by Mikhail Kshevetskiy <kl@laska.dorms.spbu.ru>
and followed up by derrell@samba.org.
Jeremy.
(This used to be commit 5cab88f1444177129bb5521ccc4afd8869e9bf25)
2007-10-10 11:05:51 -05:00
Günther Deschner
f6e8106076 r12273: Fix copy paste error.
Guenther
(This used to be commit 266f5fc9af6a07bc1f1432e716e6c528e9048533)
2007-10-10 11:05:51 -05:00
Gerald Carter
6f91e3a862 r12262: * patch from Brian Moran to fix segv in eventlogadm when not eventlogs
are listed in smb.conf
* initialize the local group description in set_alias_info()
(This used to be commit 58f8b42069a69c0b61da2609e5706a6c0d512e09)
2007-10-10 11:05:51 -05:00
Jeremy Allison
91efc453ab r12250: Patch from Martin Koeppe <mkoeppe@gmx.de> for #3287
to make the dev/inode numbers match what SFU expects.
If we're using 8 byte inodes we'll lose the top 4 bytes
and replace them with a dev_t instead, but this seem
reasonable to ensure uniqueness.
Jeremy.
(This used to be commit e53574d0b43e5525029c89e56331701399013d91)
2007-10-10 11:05:51 -05:00
Jeremy Allison
3a405096c5 r12245: eDirectory returns LDAP_UNWILLING_TO_PERFORM if the
account is disabled. If we get this we can't check
the password so have to tell the client the account
was disabled.
Jeremy.
(This used to be commit 43c2d545ab98fef341c7e22d3b82c98bd0afebc2)
2007-10-10 11:05:50 -05:00
Derrell Lipman
0dc59604f7 r12236: r11740@cabra: derrell | 2005-12-14 13:16:58 -0500
check in the DEBUG message referenced in the previous commit
(This used to be commit 6c04a8f9adfcd40fb0f1e1fcd4e22056ee463046)
2007-10-10 11:05:50 -05:00
Derrell Lipman
103f720617 r12235: r11738@cabra: derrell | 2005-12-14 13:15:14 -0500
Ensure that when libsmbclient copies a cli, it prevents the cli from later
 being freed, by turning off the 'allocated' flag.

 Change a DEBUG message in pipe_open code from level 0 to level 1 since
 libsmbclient is now regularly attempting to open a pipe for share enumeration,
 and falling back to RAP if RPC is unavailable (e.g. win98).  We don't want
 the debug message to display when the pipe open fails, under these normal
 circumstances.
(This used to be commit 965025c057d9e00fb68ea0819e675fcf9ad2f819)
2007-10-10 11:05:50 -05:00
Jeremy Allison
e7d2e311a2 r12234: Reduce the race condition for renames by holding the lock
longer. Instigated by complaints on the fix for #3303 from
SATOH Fumiyasu <fumiyas@miraclelinux.com>.
Jeremy.
(This used to be commit 855f5f8c32aa530dbad244805a40200824724618)
2007-10-10 11:05:50 -05:00
Derrell Lipman
765daab643 r12225: r11729@cabra: derrell | 2005-12-13 22:59:45 -0500
1. Fix a crash bug which should have reared its ugly head ages ago, but for
    some reason, remained dormant until recently.  The bug pertained to
    libsmbclient doing a structure assignment of a cli after having opened a
    pipe.  The pipe open code makes a copy of the cli pointer that was passed
    to it.  If the cli is later copied (and that cli pointer that was saved
    is no longer valid), the pipe code will cause a crash during shutdown or
    when the copied cli is closed.

 2. The 'type' field in enumerated shares was not being set correctly with
    the new RPC-based mechanism for enumerating shares.
(This used to be commit 62a02b8f2a1fcb66881a9c9636e0b27e3049c5a1)
2007-10-10 11:05:50 -05:00
Gerald Carter
728e527d2c r12224: adding more characters to the invalid share name string
(This used to be commit e461143639889da78cd4de47df40ac59a5a758a4)
2007-10-10 11:05:50 -05:00
Jeremy Allison
762901cfb9 r12221: Fix error code paths that can potentially leave a dangling lock.
Jeremy.
(This used to be commit 123135ed1ddd84cc0a5e8e5ca06a0703d1944e37)
2007-10-10 11:05:49 -05:00
Jeremy Allison
4d3152e145 r12214: Fix compile if SYNC_DNS is set.
Jeremy.
(This used to be commit 7c545e1e77c3e235b21eb11d5ced91c603da491d)
2007-10-10 11:05:49 -05:00
Jeremy Allison
ab7a4f7e8e r12213: Final fix for #3303 - send rename messages to smbd's
that have open file handles to allow them to correctly
implement delete on close. There is a further correctness
fix I'm intending to add to this to cope with different share
paths, but not right now...
Jeremy.
(This used to be commit 932e337db8788e75344e1c7cf1ef009d090cb039)
2007-10-10 11:05:49 -05:00
Jeremy Allison
7d2771e758 r12203: Add the share path into the sharemode db. This involves
revving the minor version number for libsmbsharemodes (we
now have a new _ex interface that takes the share path
as well as the filename). Needed for #3303. Some code written
by SATOH Fumiyasu <fumiya@samba.gr.jp> included in the changes
to locking/locking.c. The smbstatus output is a bit of a mess
and needs overhauling...
Jeremy.
(This used to be commit 9d93af713f8520ca506730dd32aa2b994937eaba)
2007-10-10 11:05:49 -05:00
Gerald Carter
3f6d9a7b9d r12196: patch from Krishna Ganugapati <krishnag@centeris.com>
Use the subtree delete ldap control when running 'net ads leave'
to ensure that the machine account is actually deleted.
(This used to be commit e96000c16cd182b2e2cbdc1a287002306d2965e6)
2007-10-10 11:05:49 -05:00
Jeremy Allison
fa4df827d0 r12194: Ensure that when we set a connection path we've canonicalized
the name (must be abolute - start with /, must not end in /,
must have ./ and ../ removed). Of course for realpath resolved
paths this won't be the case but for others we need this name
to be canonicalized. This name is going into the sharemode db
for #3303 so needs to be in a normalized format.
Jeremy.
(This used to be commit 22e3300911809692b595f49e87d91e3111923e6a)
2007-10-10 11:05:48 -05:00
Günther Deschner
c9c8781ccf r12193: Fix some typos.
Guenther
(This used to be commit 499224f02a8722eea0d4644ca81ca55da0e9a86b)
2007-10-10 11:05:48 -05:00