1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
Commit Graph

16369 Commits

Author SHA1 Message Date
Jeremy Allison
ca344a784d Change check_path_syntax() to use the new next_mb_char_size() function
to make it generic. Remove the mb-codepage "blacklist". Alexander, please
check this fix as it reverts your blacklist changes, but I'm hoping it
fixes the problem in a more generic way for all charsets. I'm not trying
to trample on your (excellent!) work here, just make things more generic
without special cases.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
5a804dbe0f Add function next_mb_char_size() that returns a size_t of the number of
bytes in the mb character at a pointer. Will be useful in fixing check_path_syntax()
to not use a "blacklist". Also re-added my (C) to reply.c. I mean, really - I've
been adding code to the file for over 10 years and I recognise many of the
fuctions as mine ! :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
d2b2a39fd2 Add function next_mb_char_size() that returns a size_t of the number of
bytes in the mb character at a pointer. Will be useful in fixing check_path_syntax()
to not use a "blacklist". Also re-added my (C) to reply.c. I mean, really - I've
been adding code to the file for over 10 years and I recognise many of the
fuctions as mine ! :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
fed98658a5 merges from 3.0 0001-01-01 00:00:00 +00:00
Gerald Carter
a7cac639c2 fix overlapping memory bug when copying username 0001-01-01 00:00:00 +00:00
Gerald Carter
e2361da91f BUG 748 - patch from jpeach@sgi.com (James Peach); relax arg parsing to sambalp script 0001-01-01 00:00:00 +00:00
Gerald Carter
a04573aeb0 BUG 768 - patch from jpeach@sgi.com (James Peach); accept profileing arg to init script 0001-01-01 00:00:00 +00:00
Gerald Carter
8f9bedaeb1 BUG 979 -- fix quota display on AIX; patch from Heinrich.Mislik@univie.ac.at (Heinrich Mislik) 0001-01-01 00:00:00 +00:00
Gerald Carter
760b63496c BUG 979 -- fix quota display on AIX; patch from Heinrich.Mislik@univie.ac.at (Heinrich Mislik) 0001-01-01 00:00:00 +00:00
Gerald Carter
d1848988d9 BUG 1182: patch from john.klinger@lmco.com (John Klinger) to reanable the -n 'no cache' option for winbindd 0001-01-01 00:00:00 +00:00
Alexander Bokovoy
c8c6633749 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.
0001-01-01 00:00:00 +00:00
Alexander Bokovoy
2c404f6ba9 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.'
'
0001-01-01 00:00:00 +00:00
Gerald Carter
b80e3553bf merging print change notify fix from HP appliance. Also might address some one the issues in BUG 1007 0001-01-01 00:00:00 +00:00
Gerald Carter
17ecea4152 merging print change notify fix from HP appliance. Also might address some one the issues in BUG 1007 0001-01-01 00:00:00 +00:00
Gerald Carter
ca971cf76e BUG 1165, 1126: Fix bug with secondary groups (security = ads) and winbind use default domain = yes 0001-01-01 00:00:00 +00:00
Gerald Carter
f2eaa14b1e BUG 1165, 1126: Fix bug with secondary groups (security = ads) and winbind use default domain = yes 0001-01-01 00:00:00 +00:00
Richard Sharpe
e522663717 Make sure we don't clobber the stack when response consists of the empty
string.
0001-01-01 00:00:00 +00:00
Jeremy Allison
7a62d6215d Avoid mb conversion overflow when sending an announcement.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
188e1daaff Avoid mb conversion overflow when sending an announcement.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
b9da3e941d 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.
0001-01-01 00:00:00 +00:00
Jeremy Allison
834d816caf 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.
0001-01-01 00:00:00 +00:00
Gerald Carter
ad1bf59a79 removing extra comma in --with-fhs 0001-01-01 00:00:00 +00:00
Gerald Carter
12f3f0268c removing extra comma in --with-fhs 0001-01-01 00:00:00 +00:00
Gerald Carter
211cead67c more fixes from 3.0 0001-01-01 00:00:00 +00:00
Gerald Carter
b1115c0fc5 include swatdir in 'make showlayout' 0001-01-01 00:00:00 +00:00
Gerald Carter
c640594c93 sync small fixes from 3.0 and fix compiler warning in priv code 0001-01-01 00:00:00 +00:00
Gerald Carter
ce49e4f2b9 fix byte ordering problem when storing the updating pid for the lpq cache; was causing an abort in process_exists() on solaris 0001-01-01 00:00:00 +00:00
Gerald Carter
26681cd2a1 fix byte ordering problem when storing the updating pid for the lpq cache; was causing an abort in process_exists() on solaris 0001-01-01 00:00:00 +00:00
Volker Lendecke
ae080f2cfa Ok, one of the latest cleanups did too much... :-)
Re-add adding the local aliases to winbindd_getgroups.

Volker
0001-01-01 00:00:00 +00:00
Volker Lendecke
66c4a6dee8 Clean up a bit :-)
Volker
0001-01-01 00:00:00 +00:00
Volker Lendecke
3acac5d626 Fix 'getent group aliasname', this did not look in pdb. 0001-01-01 00:00:00 +00:00
Volker Lendecke
7f62cf933c 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
0001-01-01 00:00:00 +00:00
Volker Lendecke
87fa7904f7 When trying to remove a user from a group, winbind should be informed
about the user and group...

Volker
0001-01-01 00:00:00 +00:00
Volker Lendecke
9fa2c40452 When trying to remove a user from a group, winbind should be informed
about the user and group...

Volker
0001-01-01 00:00:00 +00:00
Tim Potter
c8db2f7cdb Merge from 3.0 0001-01-01 00:00:00 +00:00
Tim Potter
cc9765ce97 Use possessive in message asking for user's password. 0001-01-01 00:00:00 +00:00
Volker Lendecke
975c60b997 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
0001-01-01 00:00:00 +00:00
Volker Lendecke
d1f38cd73e Rest of my winbindd_passdb alias support 0001-01-01 00:00:00 +00:00
Volker Lendecke
9e0fb457ba 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
0001-01-01 00:00:00 +00:00
Volker Lendecke
4e96b46a84 Remove the prototype for alias support in winbind again. This will be
replaced by a winbindd_passdb.c checkin soon.

Volker
0001-01-01 00:00:00 +00:00
Volker Lendecke
f44bf63d11 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
0001-01-01 00:00:00 +00:00
Jeremy Allison
d7cf64b1e4 Ensure we don't truncate strcmps to nstring anymore...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
b3aff7f214 Ensure we don't truncate strcmps to nstring anymore...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
128dec9ae6 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.
0001-01-01 00:00:00 +00:00
Jeremy Allison
b4ea493599 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.
0001-01-01 00:00:00 +00:00
Jeremy Allison
beca3829d1 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.
0001-01-01 00:00:00 +00:00
Jeremy Allison
966e49a48c 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.
0001-01-01 00:00:00 +00:00
Herb Lewis
0375dace24 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?
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
8e52439f4a 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.]
0001-01-01 00:00:00 +00:00
Jeremy Allison
11487e2466 Fix from Robert.Dahlem@gmx.net (Robert Dahlem) for bugid #1048
when mangled names are turned off.
Jeremy.
0001-01-01 00:00:00 +00:00