1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

16312 Commits

Author SHA1 Message Date
Gerald Carter
4b27ffd821 BUG 979 -- fix quota display on AIX; patch from Heinrich.Mislik@univie.ac.at (Heinrich Mislik)
(This used to be commit 8f9bedaeb1b3b102fa6b23da1f6b03eb0e015359)
2004-03-16 19:06:30 +00:00
Gerald Carter
9073c95b97 BUG 979 -- fix quota display on AIX; patch from Heinrich.Mislik@univie.ac.at (Heinrich Mislik)
(This used to be commit 760b63496ccc908c76ea5d3ed474cbbca268ad61)
2004-03-16 19:06:03 +00:00
Gerald Carter
8ef645c8a9 BUG 1182: patch from john.klinger@lmco.com (John Klinger) to reanable the -n 'no cache' option for winbindd
(This used to be commit d1848988d9ee9fdd870bcdd32c938b907419558b)
2004-03-16 18:54:09 +00:00
Alexander Bokovoy
ba042a96cd Fix check_path_syntax() for multibyte encodings which have no '\' as second byte.
This is intermediate fix as discussed with Jeremy until we move check_path_syntax() to UCS2 internally where all
ambiguity is resolved. Please add other encodings into charcnv.c with such property.
(This used to be commit c8c66337494c63173a6aba4286a843875302da63)
2004-03-16 17:21:06 +00:00
Alexander Bokovoy
e2fd98af57 Fix check_path_syntax() for multibyte encodings which have no '\' as second byte.
This is intermediate fix as discussed with Jeremy until we move check_path_syntax() to UCS2 internally where all
ambiguity is resolved. Please add other encodings into charcnv.c with such property.'
'
(This used to be commit 2c404f6ba988d68c6f44df9409c0de319553de10)
2004-03-16 17:18:57 +00:00
Gerald Carter
b1d5261bde merging print change notify fix from HP appliance. Also might address some one the issues in BUG 1007
(This used to be commit b80e3553bf1b7f8d1435f3144082577f2e30c3a9)
2004-03-16 17:07:18 +00:00
Gerald Carter
dbb38cc6b5 merging print change notify fix from HP appliance. Also might address some one the issues in BUG 1007
(This used to be commit 17ecea4152fb0883acde675b01f19d3e19ff1d64)
2004-03-16 17:06:11 +00:00
Gerald Carter
1df61db072 BUG 1165, 1126: Fix bug with secondary groups (security = ads) and winbind use default domain = yes
(This used to be commit ca971cf76e5fbb33d51b1fdfa92e4d13b2e150b6)
2004-03-16 16:44:54 +00:00
Gerald Carter
d24b8a2032 BUG 1165, 1126: Fix bug with secondary groups (security = ads) and winbind use default domain = yes
(This used to be commit f2eaa14b1eb7e89c945b2b06a48e17998c75d620)
2004-03-16 16:41:54 +00:00
Richard Sharpe
76e86e88c3 Make sure we don't clobber the stack when response consists of the empty
string.
(This used to be commit e522663717f6b6141580f34502ad8686d326f8c8)
2004-03-16 06:56:20 +00:00
Jeremy Allison
c377ae98b1 Avoid mb conversion overflow when sending an announcement.
Jeremy.
(This used to be commit 7a62d6215d32e664345d10b87ab4e4ddeda5dc2e)
2004-03-16 00:10:34 +00:00
Jeremy Allison
96c5a010bb Avoid mb conversion overflow when sending an announcement.
Jeremy.
(This used to be commit 188e1daaffb3b21abc250ebb37d9a671ba51d054)
2004-03-16 00:10:30 +00:00
Jeremy Allison
8613940ce6 Use "unix netbios name" type unstring - 64 bytes long to manipulate netbios
names in nmbd. Allows conversion from dos codepage mb strings (ie. SJIS) to
expand to utf8 size on read.
Jeremy.
(This used to be commit b9da3e941d4233c2d3931f32767f3e51b214033e)
2004-03-15 21:53:59 +00:00
Jeremy Allison
ce0c99312c Use "unix netbios name" type unstring - 64 bytes long to manipulate netbios
names in nmbd. Allows conversion from dos codepage mb strings (ie. SJIS) to
expand to utf8 size on read.
Jeremy.
(This used to be commit 834d816caf9cd6318da00febde50d9233469dac2)
2004-03-15 21:45:45 +00:00
Gerald Carter
b5805b04da removing extra comma in --with-fhs
(This used to be commit ad1bf59a795e90e0a3757f1dd33d92442928e80c)
2004-03-15 16:20:22 +00:00
Gerald Carter
96c66b7be7 removing extra comma in --with-fhs
(This used to be commit 12f3f0268c49c9393ff4cd97cfcd802e6b61bbea)
2004-03-15 16:20:03 +00:00
Gerald Carter
1054f6b107 more fixes from 3.0
(This used to be commit 211cead67ca2c8c017ee5eec1d6989d4928236bf)
2004-03-15 16:17:51 +00:00
Gerald Carter
56f2e80d58 include swatdir in 'make showlayout'
(This used to be commit b1115c0fc507e82d828ccbb5853734a964701cd2)
2004-03-15 16:14:04 +00:00
Gerald Carter
11f6251b77 sync small fixes from 3.0 and fix compiler warning in priv code
(This used to be commit c640594c9362dca625a8fa51b453dafe1f3e980d)
2004-03-15 16:12:52 +00:00
Gerald Carter
12fb2d7305 fix byte ordering problem when storing the updating pid for the lpq cache; was causing an abort in process_exists() on solaris
(This used to be commit ce49e4f2b904ab64ea98af4736147795669495df)
2004-03-15 15:16:29 +00:00
Gerald Carter
dbe9e8a4cb fix byte ordering problem when storing the updating pid for the lpq cache; was causing an abort in process_exists() on solaris
(This used to be commit 26681cd2a1567d90cc7d344e8aca6e6a686053f5)
2004-03-15 15:06:33 +00:00
Volker Lendecke
1287ce077b Ok, one of the latest cleanups did too much... :-)
Re-add adding the local aliases to winbindd_getgroups.

Volker
(This used to be commit ae080f2cfaa50cf16c91d760f63db2c721e251c5)
2004-03-14 11:15:37 +00:00
Volker Lendecke
916d7852a5 Clean up a bit :-)
Volker
(This used to be commit 66c4a6dee88274c2e1493224b0ba694418b32796)
2004-03-14 10:36:07 +00:00
Volker Lendecke
6cd06f816d Fix 'getent group aliasname', this did not look in pdb.
(This used to be commit 3acac5d626b2897fd2c4b291dd4e0a6c9ceffcfe)
2004-03-14 10:28:21 +00:00
Volker Lendecke
5b0f30e01c Add and delete aliases via srv_samr_nt. For that I added a RID allocation call
to winbindd. idmap_allocate_rid wants information about whether this will be a
user or a group, I did not export this to the winbind interface.

The reason for idmap to get that info is to keep consistent with the
algorithmic convention to alloc only even rids for users and odd rids for
groups. I'm not fully convinced that this really gains us anything. Any real
good arguments?

Volker
(This used to be commit 7f62cf933cad69799204bfdc773e08ff0dde0b20)
2004-03-14 10:24:19 +00:00
Volker Lendecke
af6225afa9 When trying to remove a user from a group, winbind should be informed
about the user and group...

Volker
(This used to be commit 87fa7904f7da5f4a80ca465c09ae4ad274e81690)
2004-03-14 07:16:05 +00:00
Volker Lendecke
0f9186a1ac When trying to remove a user from a group, winbind should be informed
about the user and group...

Volker
(This used to be commit 9fa2c4045252f07cc0518457d8ef8b81d8402327)
2004-03-14 07:15:39 +00:00
Tim Potter
badb5b4e16 Merge from 3.0
(This used to be commit c8db2f7cdbe280ad3c3d35c0640d19b0f664bd36)
2004-03-14 03:47:55 +00:00
Tim Potter
5a521453ba Use possessive in message asking for user's password.
(This used to be commit cc9765ce97b65bb7a6cd44e847a690d3fbe9d032)
2004-03-14 03:47:03 +00:00
Volker Lendecke
66445d3de4 Make alias membership maintainable via net rpc group add/delmem. Alias
creation and deletion still has to be done as well as a 'net alias' command.

Volker
(This used to be commit 975c60b997ac32610c5fa80a488e896596fa9917)
2004-03-13 17:57:24 +00:00
Volker Lendecke
26640ed9b1 Rest of my winbindd_passdb alias support
(This used to be commit d1f38cd73ed5d71ec32e52bee8a60d206fea38ae)
2004-03-13 17:38:07 +00:00
Volker Lendecke
9522e181d1 Add alias support to winbindd_passdb. Sorry, Simo, this does not leave too
much of your winbindd_passdb, users are currently not provided by that, only
aliases. Currently the code to maintain that stuff is not yet in, this will be
next, see my next posting to samba-technical.

Volker
(This used to be commit 9e0fb457ba77a55f8271b6acc91a07f0a8df3760)
2004-03-13 17:35:47 +00:00
Volker Lendecke
ebd5fe9d02 Remove the prototype for alias support in winbind again. This will be
replaced by a winbindd_passdb.c checkin soon.

Volker
(This used to be commit 4e96b46a8481bdf4f3408574ccc8c921ade7018b)
2004-03-13 16:43:25 +00:00
Volker Lendecke
146d674c2c Add find_alias, create_alias, delete_alias, get_aliasinfo, set_aliasinfo and
enum_aliases to passdb. create and delete are not yet filled, you have to do
this with net groupmap and net idmap restore.

Volker
(This used to be commit f44bf63d1143ddf6a1a2fdc15a301e0dc0840d50)
2004-03-13 16:30:39 +00:00
Jeremy Allison
a0034d3586 Ensure we don't truncate strcmps to nstring anymore...
Jeremy.
(This used to be commit d7cf64b1e4e501bcd01ddc8279babc65d894a4b3)
2004-03-13 02:47:21 +00:00
Jeremy Allison
309c0a65b7 Ensure we don't truncate strcmps to nstring anymore...
Jeremy.
(This used to be commit b3aff7f214da97925690a5d0a887ea1b336d107a)
2004-03-13 02:47:19 +00:00
Jeremy Allison
9a699d74ef Modified fix for bugid #784. Based on a patch from moriyama@miraclelinux.com (MORIYAMA Masayuki).
Don't use nstrings to hold workgroup and netbios names. The problem with them is that MB netbios
and workgroup names in unix charset (particularly utf8) may be up to 3x bigger than the name
when represented in dos charset (ie. cp932). So go back to using fstrings for these but
translate into nstrings (ie. 16 byte length values) for transport on the wire.
Jeremy.
(This used to be commit 128dec9ae68fd357550de2649d54056ca4fc65cf)
2004-03-13 02:16:26 +00:00
Jeremy Allison
6b9dbbcd24 Modified fix for bugid #784. Based on a patch from moriyama@miraclelinux.com (MORIYAMA Masayuki).
Don't use nstrings to hold workgroup and netbios names. The problem with them is that MB netbios
and workgroup names in unix charset (particularly utf8) may be up to 3x bigger than the name
when represented in dos charset (ie. cp932). So go back to using fstrings for these but
translate into nstrings (ie. 16 byte length values) for transport on the wire.
Jeremy.
(This used to be commit b4ea493599ab414f7828b83f40a5a8b43479ff64)
2004-03-13 02:16:21 +00:00
Jeremy Allison
e4a01b392c First part of patch from moriyama@miraclelinux.com (MORIYAMA Masayuki) to
fix up netbios names with mb strings. Includes reformat of libsmb/nmblib.c
so it's readable.
Jeremy.
(This used to be commit beca3829d1140bf7c2e394993a02dff1f2cf7bbd)
2004-03-13 00:28:55 +00:00
Jeremy Allison
fd2d4f87d4 First part of patch from moriyama@miraclelinux.com (MORIYAMA Masayuki) to
fix up netbios names with mb strings. Includes reformat of libsmb/nmblib.c
so it's readable.
Jeremy.
(This used to be commit 966e49a48c352563cdd7f75fe2768f2d6612ec7e)
2004-03-13 00:28:53 +00:00
Herb Lewis
220d663b74 if we are truncating to the . we need to start at the beginning in case
there are multiple "."'s in the name.

This code is protected with an #ifdef TRUNCATE_NETBIOS_NAME and this
is #define'd to 1 directly above. Should we also get rid of the #ifdef?
(This used to be commit 0375dace248eb3dc660fa2bca2808552e502b3f7)
2004-03-12 21:35:15 +00:00
Christopher R. Hertel
f17b47b7fd Bug report 1079 and fix both from Bert Driehuis.
This is an odd corner case having to do with <1C> group names (DC names).
<1C> group names are called (by MS) "Internet Special Groups", which means
that Microsoft's WINS servers will attempt to handle these names in
something approximating an RFC1001/1002 compliant manner.

The problem being reported here is this:  If an initial registration sent
by one of the group members is lost (network error, whatever) then
subsequent refreshes from that particular machine will also fail.  This
only happens if the name is already active (because of other group
members).

In most cases, we (and MS) handle refreshes as registrations if the name
is not in the database.  In this situation, we missed the corner case.

Bert's fix adds an 'else if' that catches the situation in which a refresh
for an unlisted IP of an active <1C> group name is received.  The refresh
is simply handled as a registration when this happens.

[Note: Committing in HEAD.  I am writing some tools to do registrations
       and refreshes so that I can test this.  I don't have an NT Domain
       for testing so I'm going to have to fudge.  This fix is small (I
       cleaned up some Debug messages and comments in addition to the fix)
       and if you want to test it with 3.0.x you can just copy the HEAD
       version into your 3.0.x tree and recompile.]
(This used to be commit 8e52439f4ae9de84107e2d0e9f33f0d4e3c5945a)
2004-03-12 20:27:23 +00:00
Jeremy Allison
5aee4157de Fix from Robert.Dahlem@gmx.net (Robert Dahlem) for bugid #1048
when mangled names are turned off.
Jeremy.
(This used to be commit 11487e24666c7b3dd4b37f4ef8aec8f8a5bd5a6f)
2004-03-12 20:24:07 +00:00
Jeremy Allison
95fee5e3bf Fix from Robert.Dahlem@gmx.net (Robert Dahlem) for bugid #1048
when mangled names are turned off.
Jeremy.
(This used to be commit 29909ce26ac9a0d8e631b1ed884c525674ee5606)
2004-03-12 20:24:05 +00:00
Alexander Bokovoy
6011a89e24 Fix problems with very long filenames in both smbd and smbclient.
It appears that we pass filename through resolve_wildcards() as pstring and use fstring temporary buffer there.
As result, a long filename in unix charset (UTF-8 by default) can easily expand over 255 bytes while
Windows is able to send to us such names (e.g. Japanese name of ~190 mb chars) which we unable to process through
this small fstring buffer. Tested with W2K and smbclient, Japanese and Cyrillics.
(This used to be commit 83dac6571f99b854ac607d4313cc3f742c1fae2e)
2004-03-12 14:37:37 +00:00
Alexander Bokovoy
c332ea6485 Fix problems with very long filenames in both smbd and smbclient.
It appears that we pass filename through resolve_wildcards() as pstring and use fstring temporary buffer there.
As result, a long filename in unix charset (UTF-8 by default) can easily expand over 255 bytes while
Windows is able to send to us such names (e.g. Japanese name of ~190 mb chars) which we unable to process through
this small fstring buffer. Tested with W2K and smbclient, Japanese and Cyrillics.
(This used to be commit cc70a548f3c48a9503fd54d01896cc2499f5bbcd)
2004-03-12 14:28:14 +00:00
Alexander Bokovoy
7d092f3cc4 Fix build after Jeremy -- yet another place where convert_string() wasn't updated
(This used to be commit e117ed1db84b2447793ccea4036e225c4a552e1e)
2004-03-12 12:58:49 +00:00
Alexander Bokovoy
82053806f5 Fix build after Jeremy -- yet another place where convert_string() wasn't updated
(This used to be commit 9acd46ab462cb4aee9938658dda594ef8b8ddcbd)
2004-03-12 12:57:39 +00:00
Alexander Bokovoy
02fa0a9056 Fix string overflow due to wrong size calculation
(This used to be commit cf0285f3ea017d300d94e8c7f7042ae8ccc8f960)
2004-03-12 11:29:13 +00:00
Alexander Bokovoy
938cef91ff Fix string overflow due to wrong size calculation
(This used to be commit e1d0b8fc7bbe075dd817e3816f29640cda980732)
2004-03-12 11:21:50 +00:00