1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-17 02:05:21 +03:00

436 Commits

Author SHA1 Message Date
Jeremy Allison
ce0709666c More conversions I missed. Thanks metze.
Jeremy.
(This used to be commit 4f78d747e66b38edcd2a5754681f9a01aeaf7864)
2003-07-04 18:52:31 +00:00
Jeremy Allison
ce72beb2b5 Removed strupper/strlower macros that automatically map to strupper_m/strlower_m.
I really want people to think about when they're using multibyte strings.
Jeremy.
(This used to be commit ff222716a08af65d26ad842ce4c2841cc6540959)
2003-07-03 19:11:31 +00:00
Tim Potter
2d8fef88e8 Suggest the user runs kinit if smbclient -k returns NT_STATUS_MORE_PROCESSING_REQUIRED.
(This used to be commit 66c4beb28672ef335ff4d6d6a3447e4c2c337f76)
2003-07-02 03:01:27 +00:00
Steve French
d1fafca608 Fix mount options for ro, dir_mode, file_mode
(This used to be commit 7e7cf0dd98ec8e28c02cb9e36064eaf098339801)
2003-06-20 16:41:41 +00:00
Andrew Tridgell
1d03ec88f1 several places in client.c rely in commands[i].name == NULL being a
termination condition for checking for commands. Make sure the last
element is indeed NULL.
(This used to be commit 294f79884df1ebc4a8d955601e7547bdcadef5d6)
2003-06-11 06:23:53 +00:00
Andrew Tridgell
98f448b1f4 i'm getting rather sick of this
**********************************************************
**** PLEASE TEST YOUR CHANGES BEFORE CHECKING THEM IN ****
**********************************************************

Jelmer, your change did not fix the -b option, it just make it not
segfault on debian. It did however add a warning and make it not
compile on some systems. It also gave the io_bufsize the value of a
pointer, not the value the user specified.

(this doesn't apply just to Jelmer, I'm just seeing rather too many
checkins from everyone lately where the code could never have possibly
worked, so was obviously checked in without testing)
(This used to be commit 21931ad7a0584c14fd0278adc74eab9cacf14a3d)
2003-06-11 06:10:10 +00:00
Jelmer Vernooij
33a7f1bba0 Don't segfault when -b is specified (fixes debian bug #196833)
(This used to be commit 4af9074397bbb208e585f85aaa8a6e402057ebdd)
2003-06-10 19:27:32 +00:00
Andrew Tridgell
524da855ff don't call a function error_message() as that conflicts with a
kerberos name
(This used to be commit 8fa737f2235abfdc6c78b0af707aea2c67243597)
2003-06-10 03:46:11 +00:00
Jelmer Vernooij
44fa85fd60 Don't crash when doing namecompletion in smbclient. Fixes debian bug #194776
(This used to be commit f130b4f2a143ef7507d7267ec12a11c1d91f0457)
2003-05-29 15:44:35 +00:00
Tim Potter
3c830cad6f Syncup with HEAD:
>revision 1.3
>date: 2003/05/20 04:28:29;  author: sfrench;  state: Exp;  lines: +10 -5
>Fix Linux cifs vfs mount helper parsing of slashes
(This used to be commit b2b4a7e4998cc41842e8b564a4ccb77737aeed04)
2003-05-28 01:06:53 +00:00
Andrew Bartlett
d9029797fe Fix non-constant initialiser for Sun CC.
(This used to be commit c2948b9248016388f9b7c5595b0e1aba7e1ace8d)
2003-05-13 06:13:36 +00:00
Simo Sorce
c823b191ab And finally IDMAP in 3_0
We really need idmap_ldap to have a good solution with ldapsam, porting
it from the prvious code is beeing made, the code is really simple to do
so I am confident it is not a problem to commit this code in.

Not committing it would have been worst.
I really would have been able to finish also the group code, maybe we can
put it into a followin release after 3.0.0 even if it may be an upgrade
problem.

The code has been tested and seem to work right, more testing is needed for
corner cases.

Currently winbind pdc (working only for users and not for groups) is
disabled as I was not able to make a complete group code replacement that
works somewhat in a week (I have a complete patch, but there are bugs)

Simo.
(This used to be commit 0e58085978f984436815114a2ec347cf7899a89d)
2003-05-12 18:12:31 +00:00
Jelmer Vernooij
0914e541f5 Reverse previous patch from Stefan and me after comments by Andrew Bartlett
(This used to be commit d817eaf0ecca2d878ab1ffcf7a747a02d71c811e)
2003-05-10 11:49:51 +00:00
Jelmer Vernooij
c507ebe567 Patch from metze and me that adds dummy smb_register_*() functions so
that is now possible to, for example, load a module which contains
an auth method into a binary without the auth/ subsystem built in.
(This used to be commit 74d9ecfe2dd7364643d32acb62ade957bd71cd0d)
2003-05-10 10:53:48 +00:00
Jeremy Allison
7ae17cc151 Fix for possible segfault in readline handler. Found by vitalyb@mail333.com.
Jeremy.
(This used to be commit 151b7d0d88e14dd17c28e522a3e1e8f64a4a2a87)
2003-05-10 00:30:47 +00:00
Tim Potter
5bab7b987c Replace workgroup global variable with lp_workgroup()
Call lp_load() before parsing command line options so we can override
the workgroup value with the -W switch.

Fixes bug #39.
(This used to be commit 56f070cd5242ac6c10699ca35726ce68199dd274)
2003-04-28 06:54:49 +00:00
Tim Potter
ab892c1160 Merge:
- Jelmer's popt changes
(This used to be commit b5b6f11940c91dc5ecb5f4a4320e7b9aa72bcd99)
2003-04-14 04:05:48 +00:00
Tim Potter
9cfa77ae15 Merge:
- "Fix lingering large offset problems in smbtar etc."
(This used to be commit ba53df64cab5dc0ea9f2b7d82007bf655f85bc67)
2003-04-14 04:03:39 +00:00
Alexander Bokovoy
b3e9dfc375 Update smbmount to include unicode and lfs capabilities options -- smbfs supports this already
(This used to be commit fbbb9a6660e1e384d7a4ff4c5fe2d077246bedd1)
2003-04-08 15:38:38 +00:00
Andrew Bartlett
d5ee9b2f48 Jeremy merged across my string parinoia fixes, but forgot to enable them! :-)
This patch catches up on the rest of the work - as much string checking
as is possible is done at compile time, and the rest at runtime.

Lots of code converted to pstrcpy() etc, and other code reworked to correctly
call sizeof().

Andrew Bartlett
(This used to be commit c5b604e2ee67d74241ae2fa07ae904647d35a2be)
2003-03-18 11:22:52 +00:00
Andrew Bartlett
818f2a5dac Fix segfault on FD_SET() when we have an fd of -1
Andrew Bartlett
(This used to be commit 92bd0f69df4eef612b73da00e45d244f5236afa2)
2003-03-18 10:56:37 +00:00
Andrew Bartlett
cdc6fc8acb Add an extra parameter to our 'set_remote_machine_name' and
'set_local_machine_name' so that the client can't change it from under us.

(.NET RC2 and WinXP install calls the machine 'machinename' during NTLMSSP
on the domain join).

Andrew Bartlett
(This used to be commit 4c7163e7c2cc09bd95faa05156ee480957a7a4d8)
2003-03-18 09:52:55 +00:00
Andrew Bartlett
50eea93516 Add const.
(This used to be commit ed245023016779700571d108e7b9339236bcbe7c)
2003-03-18 09:43:00 +00:00
cvs2svn Import User
74d3be0218 This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit f0d009c3e91979b0dc3443e16f3f545bcc64cfda) 2003-03-18 07:09:24 +00:00
Andrew Bartlett
400bb4bfab - Make ReadDirName return a const char*.
- Consequential changes from that

 - mark our fstring/pstring assumptions in function prototypes

Andrew Bartlett
(This used to be commit fe2bc64bc439b27387b8f326b0f4f3bfcc3d04a1)
2003-03-16 13:21:12 +00:00
Steve French
2055e724ad Checkin cifs vfs for Linux mount helper
(This used to be commit a55acfd7a296c5ae9b043dc03393a29d87e43a40)
2003-03-15 22:35:47 +00:00
Andrew Bartlett
58abc7b5b6 If the server went away, don't segfault by attempting to FD_SET -1.
Andrew Bartlett
(This used to be commit 4b1337ee94a19e39a2f4012c4dbc32a2e58cacf5)
2003-03-15 06:50:45 +00:00
Andrew Bartlett
01289b14a7 Make sure that the 'remote' machine name can only be set once. For some weird
reason, during a Win2003 installation, when you select 'domain join' it sends
one machine name in the name exchange, and litraly 'machinename' during the
NTLMSSP login.

Also fix up winbindd's logfile handling, so that it matches smbd and nmbd.

(This helps me, by seperating the logs by pid).

Andrew Bartlett
(This used to be commit afe5a3832f79131fb74461577f1db0e5e8bf4b6d)
2003-03-08 10:22:50 +00:00
Steve French
f944fd6975 Add early prototype of cifs mount helper for Linux
(This used to be commit b20bcf8d336b4b2079eb42342a96d1fe714709de)
2003-03-07 22:29:14 +00:00
Andrew Bartlett
192148bab3 More safe_strcpy() off-by-one bug fixes. (mostly moves to pstrcpy()/fstrcpy())
Andrew Bartlett
(This used to be commit 42b5514404bc7e33306c11344c6c934a1f83d295)
2003-03-06 07:55:48 +00:00
Richard Sharpe
e3fdd289f5 More janitorial duties, fixing the BIG_UINT changes for large offsets.
(This used to be commit 1af39523cc3b2313f3e8acd4f2e5338182ec0b13)
2003-03-03 23:00:22 +00:00
Richard Sharpe
3042cfb7fa Do my janitorial duties to encourage others to do so.
Fix lingering large offset problems in smbtar etc.
(This used to be commit c416eec2f2a38eebfcda5868999d474628037f1e)
2003-03-03 17:43:33 +00:00
Tim Potter
64e53c9b22 Fix breakage done by myself yesterday.
(This used to be commit f4492de2d668082df6ae06933d12a3cfe120d403)
2003-02-25 23:28:28 +00:00
Tim Potter
3a2f56cb63 Fixed up some const related compiler warnings.
(This used to be commit 923425e497112c5d1e2e569da6c13dcd02b6a8af)
2003-02-25 06:24:13 +00:00
Andrew Bartlett
630944d179 Cleint-side-auth/kerberos fixes from HEAD, and don't connect to a share
twice, let the libsmb code determine what form the share name should take.

Andrew Bartlett
(This used to be commit a25f6126647c94551c03bfc28e3fb5ec5ef6264a)
2003-02-24 03:28:37 +00:00
Andrew Bartlett
108580c224 The cli_send_tconX code already determines to send \\server\share to port 139
and share to 445, so doing this only confuses the issue (sending
\\server\\server\share to 139) and makes debugging specific error codes more
difficult.

Andrew Bartlett
(This used to be commit 1a723bcda72901dac00b36955e860e3af23c0dc6)
2003-02-18 00:36:37 +00:00
Simo Sorce
07886ac856 fix dumb perror used without errno beeing set.
thanks to RedHat developers for the report
(This used to be commit e257141c9b3703ef73ee312f3ec30d377e0d3293)
2003-02-15 21:37:15 +00:00
Simo Sorce
584206dccf fix dumb perror used without errno beeing set.
thanks to RedHat developers for the report
(This used to be commit 4a3c6c62d979707900b95e6c38b0132f522269ca)
2003-02-15 21:36:28 +00:00
Andrew Bartlett
e4202a9fe7 Antti Andreimann <Antti.Andreimann@mail.ee> has done some changes to enable
users w/o full administrative access on computer accounts to join a
computer into AD domain.

The patch and detailed changelog is available at:
http://www.itcollege.ee/~aandreim/samba

This is a list of changes in general:

1. When creating machine account do not fail if SD cannot be changed.
   setting SD is not mandatory and join will work perfectly without it.
2. Implement KPASSWD CHANGEPW protocol for changing trust password so
   machine account does not need to have reset password right for itself.
3. Command line utilities no longer interfere with user's existing
   kerberos ticket cache.
4. Command line utilities can do kerberos authentication even if
   username is specified (-U). Initial TGT will be requested in this case.

I've modified the patch to share the kinit code, rather than copying it,
and updated it to current CVS.  The other change included in the original patch
(local realms) has been left out for now.

Andrew Bartlett
(This used to be commit ce52f1c2ed4d3ddafe8ae6258c90b90fa434fe43)
2003-02-15 00:29:21 +00:00
Alexander Bokovoy
ff1db7b4f7 Fix typo in WIFSIGNALED (as per Waider's report)
(This used to be commit 4463ffeed91163314d2d903a271b29e87edaadcf)
2003-02-13 16:29:12 +00:00
Martin Pool
404a3f34c8 waitstatus audit: Correctly handle case where smbmnt is killed by a
signal.  Previously this was incorrectly treated as success.
(This used to be commit fe5582c1b2e1c6a6ed5e048dd169a1fcf908069c)
2003-02-13 04:45:40 +00:00
Jeremy Allison
5bc835c188 Samba janitors: applying mbp's redundant umask fix.
Jeremy.
(This used to be commit 45d4e58ca5da1c01f135470257bb17a5257e6fb2)
2003-02-07 22:52:35 +00:00
Jeremy Allison
9e8fc1ee4e Samba janitors: applying mbp's redundant umask fix.
Jeremy.
(This used to be commit b54f6bf06c6a4032ba0d6c2a25699948685ccf6a)
2003-02-07 22:52:19 +00:00
Tim Potter
11245e0fc3 smb signing compile fix
(This used to be commit 22d7aa0e673baa1c26205d1c659ba71ad2f94609)
2003-02-02 22:49:28 +00:00
Andrew Bartlett
ac2eeb7a8f More signing updates - start checking that the server isn't being spoofed.
Andrew Bartlett
(This used to be commit b1c722e306533babeffeba9d8c7dcfa00e019423)
2003-02-02 00:11:12 +00:00
Martin Pool
115f3d8470 Add FIXME about dodgy argument parser.
(This used to be commit a58028330849dbb1706793fdc6e36161f7baebed)
2003-01-20 00:53:35 +00:00
Gerald Carter
d7ed1e1362 s/WIFSIGNALLED/WIFSIGNALED/g
(This used to be commit dc6cda595179b8c53f15d4bc92faf782f3e2d482)
2003-01-15 23:11:57 +00:00
Gerald Carter
523e406daf s/WIFSIGNALLED/WIFSIGNALED/g
(This used to be commit 251585142bb5d13951160a76f65bb2bf32f209bf)
2003-01-15 23:11:45 +00:00
Gerald Carter
99cdb46208 *lots of small merges form HEAD
*sync up configure.in
*don't build torture tools in make all
*make sure to remove torture tools as part of make clean
(This used to be commit 0fb724b3216eeeb97e61ff12755ca3a31bcad6ef)
2003-01-15 18:57:41 +00:00
Martin Pool
ec894b5695 One more from waitpid() audit: Correctly interpret waitstatus when a
child fails.  Possibly this was causing smbmount to exit(0) when it
really should have indicated a failure.
(This used to be commit 1e33083fe66dfc1e168ffeb2f9d87953534a2d5d)
2003-01-15 05:27:33 +00:00