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

15783 Commits

Author SHA1 Message Date
Derrell Lipman
ded5fceef1 r12472: r12040@cabra: derrell | 2005-12-24 23:26:55 -0500
revert immediately previous change and fix problem correctly.  Interfaces were being loaded before all configuration files had been read.  *This* should fix byg 3336.
2007-10-10 11:05:57 -05:00
Derrell Lipman
6d7a9ce7a7 r12471: r12038@cabra: derrell | 2005-12-24 23:17:16 -0500
libsmbclient was not loading the global configuration file.  This should fix 3336.
2007-10-10 11:05:57 -05:00
Derrell Lipman
481abfbab4 r12466: r12028@cabra: derrell | 2005-12-24 20:25:38 -0500
parse dates correctly.  w_time and m_time were reversed.
2007-10-10 11:05:56 -05:00
Volker Lendecke
040eda6bf0 r12460: Fixes for bug 3349 2007-10-10 11:05:56 -05:00
Günther Deschner
e33a20c222 r12441: Fix python build.
Guenther
2007-10-10 11:05:56 -05:00
Volker Lendecke
561e351d25 r12438: Remove an unused function 2007-10-10 11:05:56 -05:00
Günther Deschner
c727a1a330 r12415: Forgot newlines.
Guenther
2007-10-10 11:05:55 -05:00
Günther Deschner
6c4a6da3dc r12414: Remove the unnecessary SMB_STRDUP in server_role_str() + reuse the role
translation elsewhere.

Guenther
2007-10-10 11:05:55 -05:00
Günther Deschner
3ca735f7ad r12407: Fix returning wrong error codes and better sort out errors and stdout
messages.

Guenther
2007-10-10 11:05:55 -05:00
Günther Deschner
fd5da5875c 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
2007-10-10 11:05:55 -05:00
Gerald Carter
5121d38069 r12400: one line patch for Sun LDAP libs pointed out by Nicholas Brealey <nick@brealey.org> 2007-10-10 11:05:55 -05:00
Gerald Carter
be32f10609 r12398: adding Guenther's account policy migration fix 2007-10-10 11:05:54 -05:00
Gerald Carter
85ea7afd8b r12393: cleaning up swat bugs. *no one* tests swat it seems. This has been broken since r10656 2007-10-10 11:05:54 -05:00
Jeremy Allison
7ccff8071a r12387: Make string_to_sid a little more silent.
Jeremy.
2007-10-10 11:05:54 -05:00
Jeremy Allison
8680eebbba r12376: Second patch from Martin Koeppe <mkoeppe@gmx.de>
for #3287.
Jeremy.
2007-10-10 11:05:54 -05:00
Günther Deschner
d50098518d r12341: add DEBUG statement.
Guenther
2007-10-10 11:05:54 -05:00
Günther Deschner
e0be0e0523 r12338: add ifdef DEBUG_PASSWORD before printing clear text password.
Guenther
2007-10-10 11:05:54 -05:00
Volker Lendecke
be6c9012da 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
2007-10-10 11:05:53 -05:00
Volker Lendecke
39041297c7 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
2007-10-10 11:05:53 -05:00
Volker Lendecke
23f5be1dcb r12311: Reformatting 2007-10-10 11:05:53 -05:00
Volker Lendecke
97acfa12e5 r12308: Reformatting 2007-10-10 11:05:53 -05:00
Volker Lendecke
ef4d9d96de r12307: Reformatting plus a trivial if/else simplification. There's no point in doing
an else branch that only returns NULL.

Volker
2007-10-10 11:05:53 -05:00
Volker Lendecke
3f1dad5fdb r12306: Reformatting 2007-10-10 11:05:53 -05:00
Volker Lendecke
f574e980aa r12305: Reformatting 2007-10-10 11:05:52 -05:00
Volker Lendecke
e7f348fcf8 r12303: Move split_domain_and_name to util_getent.c and make it static there.
Volker
2007-10-10 11:05:52 -05:00
Volker Lendecke
95094ef758 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
2007-10-10 11:05:52 -05:00
Volker Lendecke
de839cc165 r12290: Typo 2007-10-10 11:05:52 -05:00
Gerald Carter
b86528865a r12281: adding a note about WINS and NetLogon not being remotely manageable 2007-10-10 11:05:51 -05:00
Jeremy Allison
0c7b8a7637 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.
2007-10-10 11:05:51 -05:00
Jeremy Allison
5cab88f144 r12275: Fix memory leak found by Mikhail Kshevetskiy <kl@laska.dorms.spbu.ru>
and followed up by derrell@samba.org.
Jeremy.
2007-10-10 11:05:51 -05:00
Günther Deschner
266f5fc9af r12273: Fix copy paste error.
Guenther
2007-10-10 11:05:51 -05:00
Gerald Carter
58f8b42069 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()
2007-10-10 11:05:51 -05:00
Jeremy Allison
e53574d0b4 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.
2007-10-10 11:05:51 -05:00
Jeremy Allison
43c2d545ab 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.
2007-10-10 11:05:50 -05:00
Derrell Lipman
6c04a8f9ad r12236: r11740@cabra: derrell | 2005-12-14 13:16:58 -0500
check in the DEBUG message referenced in the previous commit
2007-10-10 11:05:50 -05:00
Derrell Lipman
965025c057 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.
2007-10-10 11:05:50 -05:00
Jeremy Allison
855f5f8c32 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.
2007-10-10 11:05:50 -05:00
Derrell Lipman
62a02b8f2a 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.
2007-10-10 11:05:50 -05:00
Gerald Carter
e461143639 r12224: adding more characters to the invalid share name string 2007-10-10 11:05:50 -05:00
Jeremy Allison
123135ed1d r12221: Fix error code paths that can potentially leave a dangling lock.
Jeremy.
2007-10-10 11:05:49 -05:00
Jeremy Allison
7c545e1e77 r12214: Fix compile if SYNC_DNS is set.
Jeremy.
2007-10-10 11:05:49 -05:00
Jeremy Allison
932e337db8 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.
2007-10-10 11:05:49 -05:00
Jeremy Allison
9d93af713f 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.
2007-10-10 11:05:49 -05:00
Gerald Carter
e96000c16c 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.
2007-10-10 11:05:49 -05:00
Jeremy Allison
22e3300911 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.
2007-10-10 11:05:48 -05:00
Günther Deschner
499224f02a r12193: Fix some typos.
Guenther
2007-10-10 11:05:48 -05:00
Volker Lendecke
d1e8f9afff r12185: Cosmetic cleanup 2007-10-10 11:05:48 -05:00
Volker Lendecke
81c358b511 r12182: Cosmetic cleanup 2007-10-10 11:05:48 -05:00
Gerald Carter
174fe494f9 r12177: last of outstanding patches in my queue to deal with MMC.
Validate the share name and fail when trying to creating
a share with bad characters.
2007-10-10 11:05:48 -05:00
Gerald Carter
ba67d3ae04 r12176: fix type mismatch after rpc structure change in rpc_svcctl.h 2007-10-10 11:05:48 -05:00