1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-15 05:57:49 +03:00

2066 Commits

Author SHA1 Message Date
Gerald Carter
c52ee09afe fix for UNICODE plaintext passwords (bug #59) and fix smbclient to send the unicode plain text password if negoitated
(This used to be commit e7d635af80c844f17ff9f34c26c1e9c978951ce1)
2003-05-21 16:12:07 +00:00
Andrew Tridgell
c9d0ee977c merge LANMAN1/LANMAN2.1 fixes from head
(This used to be commit 73c686ab771b6c3e9a9335032f851083d44701c7)
2003-05-21 05:20:54 +00:00
Gerald Carter
273dbfd9c6 really make sure to include the version in the lanman string; tested spnego using smbclient
(This used to be commit d7ca85613b6acf60e29cc118435db2c075995edb)
2003-05-20 22:54:58 +00:00
Jeremy Allison
1854e7b8e5 Cope with cumulative permissions sets. This code is #ifdef'ed out at the
moment as I don't think cumulative permission sets make sense in POSIX even
though that's the way Windows works....
Jeremy.
(This used to be commit 6ddd5b6ca7dde45ce866f852861e143434c84c7e)
2003-05-17 00:46:28 +00:00
Andrew Bartlett
a9336d8411 David Lee <t.d.lee@durham.ac.uk> provides some corrections to the comments
in the UTMP code.

Andrew Bartlett
(This used to be commit f0cff106cb6c8993eb31f589106d845261c1f8e9)
2003-05-16 12:15:04 +00:00
Simo Sorce
9e9849c0ee add metze's patch for smb_register functions
(This used to be commit 1480c7e8c7a84c34181118c449c50ca99fdcbc6b)
2003-05-16 06:20:57 +00:00
Jeremy Allison
3ededa5f7b Fix from Steve G <linux_4ever@yahoo.com>. Ensure sigemptyset is called on
the sa_mask to prevent valgrind complaints.
Jeremy.
(This used to be commit e065c3a58f5c7f2612596574046a73869183dbd3)
2003-05-15 17:37:52 +00:00
Gerald Carter
7f256452c1 fix quota build on non-64bit systems
(This used to be commit 227ac953386d0040c661cde85a5b23e10529fb0c)
2003-05-14 20:22:48 +00:00
Alexander Bokovoy
2c01eef4d7 Evolve quotas configure check more. Patch from Stefan (metze) Metzemacher. Now we are defaulting to --with-quotas=no but anyway trying to test them in configure. This is done to get information about as much quota API variations as possible -- when --with-quotas=no this does not affect build but provides us with more detailed information on build farm.
(This used to be commit 3786695c72e6ff6a52a527382ac77142e236971b)
2003-05-14 14:38:11 +00:00
Alexander Bokovoy
bc2a3748e9 Prefix VFS API macros with SMB_ for consistency and to avoid problems with VFS_ macros at system side. We currently have one clash with AIX and its VFS_LOCK. Compiled and tested -- no new functionality or code, just plain rename of macros for yet-unreleased VFS API version. Needs to be done before a24 is out
(This used to be commit c2689ed118b490e49497a76ed6a2251262018769)
2003-05-14 10:59:01 +00:00
Tim Potter
402fbc518a spelling
(This used to be commit 865c11275685c85124b506c9bbd2a8bde2e760b9)
2003-05-14 00:46:43 +00:00
Andrew Bartlett
b47963ae5a Restore a number of fixes that idra removed when he merged his
idmap-and-the-rest from HEAD.

These are correctness fixes that were already in 3.0, and a memory leak fix.

The pdb_ldap changes are held back at jerry's request (he is also playing
with pdb_ldap ATM).

Andrew Bartlett
(This used to be commit c7d5e336bd91514a02974044742b058be387e490)
2003-05-13 15:29:23 +00:00
Jeremy Allison
6abef08100 Fix obvious compiler warnings.
Jeremy.
(This used to be commit 2a6d0c2481c3c34351e57c30a85004babdbf99b0)
2003-05-12 21:27:54 +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
Gerald Carter
9308eaf77d fixing typos in debug statements
(This used to be commit f59bcb51cfe4e268ba43245d401d212aefdf2b72)
2003-05-12 16:06:05 +00:00
Alexander Bokovoy
c9bfb7660b Eliminate NULL pointers from VFS interface. All hooks now really callable, producing either correct result or returning error if the feature isn't supported in the configuration
(This used to be commit af0a17349e6986eef2e2fd07b4b9f0bcd33bbe1f)
2003-05-12 16:03:16 +00:00
Alexander Bokovoy
ed1c7282e4 GCC accepts unnamed initalization of sub-structure. Let's see how AIX behave with this. Previous fix was incorrect.
(This used to be commit 13e1bbd803111361bcd9c28b5086277c912c59a6)
2003-05-12 09:01:50 +00:00
Richard Sharpe
6e4c1e4e4d A small patch from metze to fix builds on some platforms ...
http://lists.samba.org/pipermail/samba-technical/attachments/20030512/0332258a/vfs-fix-01.obj
(This used to be commit 5d643b9d03135effa5c8fd84bf1e54a7bd075e2a)
2003-05-12 06:57:32 +00:00
Alexander Bokovoy
fe3b05eec4 Fix a wrong define check.
(This used to be commit f1c4f65ae019c61f4a8178bee094dd66506dbcae)
2003-05-12 03:13:41 +00:00
Alexander Bokovoy
eeac7cc99d Wrap into WITH_QUOTAS yet another place in trans2
(This used to be commit fea5d85d947965bd4789ab31607fd48d78403696)
2003-05-12 02:53:17 +00:00
Alexander Bokovoy
92c8ca92c3 Better isolate quota stuff
(This used to be commit 73de13159c57de21a59d2e32216812f5d9d2292e)
2003-05-12 02:23:50 +00:00
Alexander Bokovoy
f9c23432ae Small fix for HAVE_SYS_QUOTAS usage, spotted by build farm
(This used to be commit 01cff3e2e4e2724ed112fa62a775055192a2207b)
2003-05-12 02:01:31 +00:00
Alexander Bokovoy
e102cdf58e Small fix for HAVE_SYS_QUOTAS usage, spotted by build farm
(This used to be commit ee5fa840686a1d9789688e7c0f1c3ca8d0175e94)
2003-05-12 01:43:59 +00:00
Alexander Bokovoy
e8573c8fa9 Add NT quota support. Patch from Stefan (metze) Metzemacher
1. Allows to change quota settings for shared mount points from Win2K and WinXP from Explorer properties tab
2. Disabled by default and when requested, will be probed and enabled only on Linux where it works
3. Was tested for approx. two weeks now on Linux by two independent QA teams, have not found any bugs so far
Documentation to follow
(This used to be commit 4bf022ce9e45be85609426762ba2644ac2031326)
2003-05-12 01:20:17 +00:00
Alexander Bokovoy
e7c8c15888 Fix VFS layer:
1. Finally work with cascaded modules with private data storage per module
2. Convert VFS API to macro calls to simplify cascading
3. Add quota support to VFS layer (prepare to NT quota support)

Patch by Stefan (metze) Metzemacher, with review of Jelmer and me
Tested in past few weeks. Documentation to new VFS API for third-party developers to follow
(This used to be commit 91984ef5caa2d13c5d52e1f535bd3bbbae1ec978)
2003-05-11 23:34:18 +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
2d7a8480cf Optimisation. We don't need to do 2 strlen's when we're setting the stat
struct in the correct place.
Jeremy.
(This used to be commit 4cd8b276715f7e019fcee8fc3ebb2855610c4751)
2003-05-10 00:35:38 +00:00
Jeremy Allison
f359b4bdf6 Fix nasty bug pointed out by samba-technical poster. If name is mangled
then we weren't always correctly detecting that it had a valid stat struct
and so might now return a 'file existed'. Finally realized this when installing
the W2K resource kit as a test case.
Jeremy.
(This used to be commit d48069ccd8351e4bff097a7f7500c738870a413d)
2003-05-09 01:06:27 +00:00
Jeremy Allison
2746a909b2 SMB_QUERY_FILE_ALT_NAME_INFO and SMB_FILE_ALTERNATE_NAME_INFORMATION
are identical - noticed by "Dr. Tilo Levante" <tilo@levante.de>.
Jeremy.
(This used to be commit f6d7c279bc8354202f2a9b39fec4a4c8ace368a3)
2003-05-07 22:19:43 +00:00
Jeremy Allison
fae80fe1a0 Make fchown, fchmod conditional for systems that don't have them.
Jeremy.
(This used to be commit cf78b1e7fe72aec72d03c86c46a8ca49df539c11)
2003-05-07 18:28:24 +00:00
Jelmer Vernooij
06551c644c Patch from metze to add exit and interval events. Useful for modules
(This used to be commit 3033a63cefb5f28d4460885f7f4e4ecaed95443c)
2003-05-06 02:34:59 +00:00
Jeremy Allison
269a48fedc Fix uninitialized blobs reported by Luke Howard.
Jeremy.
(This used to be commit 8dcc00899977a126d5782e44bdae74175ecc0d93)
2003-05-01 18:11:24 +00:00
Jeremy Allison
7ce38082f3 Fix for bugid 51 from Dragan Krnic.
Jeremy.
(This used to be commit a2af45154d0e1bb76e78fbde1572d4fcd1ba0da2)
2003-05-01 17:45:38 +00:00
Jelmer Vernooij
bac83636a5 Fix disk quotas support on HP/UX (patch by David Nixon)
(This used to be commit a2c315dea6910e3f83ba2e9bad4312cf35f608da)
2003-05-01 11:02:54 +00:00
Jelmer Vernooij
d2373e7dce Make the version numbers ints (patch from metze)
(This used to be commit dbe36b4c43dceddea9f14161c6cf7b34709287c8)
2003-04-30 23:06:44 +00:00
Gerald Carter
ad9a3848a8 add version back to lanman string in sessetup reply
(This used to be commit dade462a168abe721c70022546109074961969b6)
2003-04-29 13:28:48 +00:00
Jelmer Vernooij
17a3acafa8 Use NTSTATUS as return value for smb_register_*() functions and init_module()
function. Patch by metze with some minor modifications.
(This used to be commit bc4b51bcb2daa7271c884cb83bf8bdba6d3a9b6d)
2003-04-28 17:48:48 +00:00
Andrew Bartlett
4121d1611d inet_pton isn't portable, so use interpret_addr2.
(This used to be commit 04d27381325561038bee1c27f10c748b9aaf447d)
2003-04-28 09:19:09 +00:00
Jim McDonough
f870072e5c Fix length in findfirst2 responses, fix os/2 clients
(This used to be commit c12feff680b183a22d933bab65b5c095c0548e7e)
2003-04-24 18:58:26 +00:00
Andrew Bartlett
596de71fc6 When possible, store the IP address of the connecting client, not just the
hostname.

This makes 'last -i' show the IP.

Thanks to Philip Anderson <pza@australia.op.org> for the idea.

Andrew Bartlett
(This used to be commit 107731c080da1e3e4e13e966f8b79bfd2692a952)
2003-04-24 09:52:29 +00:00
Andrew Bartlett
29133d9677 This is really trying to be a StrnCpy (most names will overflow the 10 char
limit)
(This used to be commit 0e04761abe375bfea48fa2c9ba9e1dc0d56d39f7)
2003-04-24 05:43:45 +00:00
Andrew Bartlett
14a317010c Thanks to a reminder from vance - delete build_options.c from CVS, now
it's autogenerated.
(This used to be commit 1cbc66e2e35342980f27151622658e2f2f498245)
2003-04-23 14:31:23 +00:00
Andrew Bartlett
53004910eb Patch by Vance Lankhaar <vlankhaar@linux.ca> to automaticly regenerate the
build options, so we will always have the right values for how and when
an smbd was built.

In particular, this is indended to address bitrot caused by configure.in
changes.

Andrew Bartlett
(This used to be commit 2be258071c71986ba9af01e9a09ec49909a620dd)
2003-04-23 14:19:03 +00:00
Andrew Bartlett
7ae2477197 StrnCpy -> safe_strcpy() on a over-malloced struct.
Andrew Bartlett
(This used to be commit e4f1171d57a6186f85b87586a525b3bbaf601974)
2003-04-23 13:35:10 +00:00
Andrew Bartlett
2a3a9f0bf4 Merge the 'safe' parts of my StrnCpy patch - many of the users really wanted
a pstrcpy/fstrcpy or at most a safe_strcpy().

These have the advantage of being compiler-verifiable.

Get these out of the way, along with a rewrite of 'get_short_archi' in the
spoolss client and server.  (This pushes around const string pointers, rather
than copied strings).

Andrew Bartlett
(This used to be commit 32fb801ddc035e8971e9911ed4b6e51892e9d1cc)
2003-04-23 13:27:35 +00:00
Andrew Bartlett
1a9394195d Merge HEAD's winbind into 3.0.
This includes the 'SIDs Rule' patch, mimir's trusted domains cacheing code,
the winbind_idmap abstraction (not idmap proper, but the stuff that held up
the winbind LDAP backend in HEAD).

Andrew Bartlett
(This used to be commit d4d5e6c2ee6383c6cceb5d449aa2ba6c83eb0666)
2003-04-23 11:54:56 +00:00
Andrew Bartlett
be86f6555a Make the variable name match the comment.
Andrew Bartlett
(This used to be commit 5a577f8cafa7375bd8485763f163de939ddc4a39)
2003-04-23 11:11:02 +00:00
Andrew Bartlett
0e26a6d3f5 Don't leak the session identifier string when we shut down a vuid.
Andrew Bartlett
(This used to be commit 33189b4be0ac79d5e7bc2606f40187118ee506a4)
2003-04-23 01:05:26 +00:00
Jeremy Allison
2aa7b1573c Add runtime tests for "impossible" case with -DDEVELOPER. Trying to catch logic
error on Linux.
Jeremy.
(This used to be commit 546d1a941b63a538702f2fb668019d2b89f63bdc)
2003-04-22 17:30:53 +00:00