1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

8094 Commits

Author SHA1 Message Date
Andrew Bartlett
02cb8d63bc Update a pile of Samba's SID lookup code to ensure:
- That we never call winbind recursivly
- That we never use an 'algorithmic' RID when we have a fixed uid or gid mapping
  in either the passdb or the group mapping db.

Also, remove restrictions that say 'this domain only'.  If we have a mapping
configured, allow it to be returned.  If we later decide certian mappings are
invalid, then we sould put that in the code that actually does the map.

Allow 'sid->name' transtations on the fixed 'well known' groups for NT, even
if they are not represented by Unix groups yet.

Andrew Bartlett
(This used to be commit d5bafb224337e393420c2ce9c0a787405314713c)
2002-07-30 09:26:44 +00:00
Andrew Bartlett
01d9beba6c Make some of the charconv code a bit easier to read and work with - when we
are dealing with utf8 we may as well specify char** for the pointer, save
otherwise casting in the caller.

Andrew Bartlett
(This used to be commit 46021f85b6da4ba1e7f73ee7408079219d555dde)
2002-07-30 09:21:57 +00:00
Tim Potter
3130577acb Some crash fixes for netshareenum returning zero shares.
(This used to be commit a5a0ff8bd7ee4a3586647d14fd750ec6df73efa8)
2002-07-30 04:32:29 +00:00
Andrew Bartlett
d91cbdac92 These pointers should be for the service we just cloned, not the new service
as it might actually not be a clone, but a 'found' service.

Previously this meant that a second session setup on the same TCP/IP connection
for a user would write '' as the home directory.  Instead, I want it to update
the share to be there current home directory (so that this can be updated
without the need to reboot the client for example).

Andrew Bartlett
(This used to be commit 84c1a5b0f046fa0375563120da117a8e76fb5b8c)
2002-07-30 04:23:59 +00:00
Andrew Bartlett
a467939380 These are not critical errors, they should not be a level 0.
Andrew Bartlett
(This used to be commit 082c0324cde38fadd70934a10849c7d40a34e3b1)
2002-07-30 04:03:40 +00:00
Andrew Bartlett
0f2ba3d513 Add quotes so we can see 0 length strings.
(This used to be commit be3470adeea01a2d0fa2f068159d2cea39b552da)
2002-07-30 04:02:47 +00:00
Tim Potter
884460c255 Reran configure.
(This used to be commit a306924c9a07ed3cedbb38852d508b30b84235a6)
2002-07-30 01:26:25 +00:00
Tim Potter
c0cd7e0ce3 Do AC_MSG_RESULT(yes) when using included popt.
(This used to be commit edd91fa854356739301604968f15e0a662986d65)
2002-07-30 01:25:59 +00:00
Tim Potter
58fa0ad55a Fixed for memory leak in connection caching code when a dc is
permanently down.   Found by Dan Coppock.
(This used to be commit 13c0cc830e3d787a0c3a1aedd47641597026541e)
2002-07-30 01:06:20 +00:00
Tim Potter
362f534fa1 Our include popt is starting to get a bit old - fixed some compile
problems here.

Also fixed some non-constant initialisers in samsync.
(This used to be commit 33bd7214736dafd5927d63af5f8510646b81e7df)
2002-07-29 23:50:54 +00:00
Gerald Carter
c17dc6c55c add another registry rpc (opnum 0x14). Have no idea what it's real name
is.  I'm calling it REG_SAVE_KEY, because 2k preps a regedt32.exe
Registry->Save Key with this call.

Done in the process of tracking down a PrinterDriverData issue.
(This used to be commit 66104a361424f10cc986c597b91afa6f12b3cd8a)
2002-07-29 19:45:15 +00:00
Gerald Carter
9f7e67c6f9 couple of minor formatting fixes to help me see better.
(This used to be commit 26027ee42ae378eef59a8ae46f5e4e44bf2d4af0)
2002-07-29 18:10:59 +00:00
Gerald Carter
d6a3fd8ad4 passing -1 for the src length in rpcstr_pull results in only
converting the first character of the unicode string.,  See convert_string()
for why.  uniarray_2_dosarray() passes 0 for the src length now which works.
(This used to be commit 0793612cca3bba55d5e5e2970308f95839f208b4)
2002-07-29 18:10:18 +00:00
Gerald Carter
787cd2c1e9 hardcode printprocessor name since it is everywhere else
(This used to be commit efbfb8ca5415424827f4b01c9e79439ab8cc9b1c)
2002-07-29 18:06:22 +00:00
Gerald Carter
ea27af285a simple perl script for retreiving cvs log messages for a file
after a given date.  I use it to help update the WHATSNEW.txt for a
release.

	./cvslog.pl SAMBA_2_2 '>2002-06-18' configure.in

The output is a little messy right now, but I plan to clean that up.
(This used to be commit 8812223e2a37b0d0f143fcc74c6ba85ac8081ffb)
2002-07-29 16:22:37 +00:00
Gerald Carter
d7ad31cdea merge from SAMBA_2_2
(This used to be commit c268ae460e7e6fe25b6ac1583ea6d2f233c27d0f)
2002-07-29 13:24:56 +00:00
Andrew Tridgell
c4dbf09d9d introduced a get_file_size() macro in trans2.c to make it easier to
experiment with file size returns
(This used to be commit c529cee0b2925184376e3a14e83fa99b3636d4ce)
2002-07-29 13:10:03 +00:00
Andrew Bartlett
0ddfa38e8d We don't need this silly unix username stuff. NT username is basicly unused,
and must == unix username for sane implementation in passdb.

Andrew Bartlett
(This used to be commit 412c791980de7f88a926b2f9ed361f0f882594c8)
2002-07-29 12:52:27 +00:00
Andrew Tridgell
1ea873e0a0 an initial fix for handling sparse files in smbd
This gets my test code working, where we previously failed with files
above 20G in size.

I'm still not completely happy with this. There are just too many
fields in trans2.c that we don't fill in.
(This used to be commit 7dfdb456d4c9bcf6ecb1f7e5c5e79989f95e5627)
2002-07-29 11:14:05 +00:00
Simo Sorce
8c85675b07 as suggested by Alexander Oswald <oswald@is.haw-hamburg.de>
hide only unwriteable files and not dirs with this one.

may be a hide unwriteable dirs param will follow.
(This used to be commit 161dd6d963ea1c11891278af2483c925e508767e)
2002-07-29 09:44:29 +00:00
Tim Potter
3a99ab6aa5 Started to get samsync to insert account information in the passdb. It's
pretty half-arsed at the moment and doesn't work very well but Mr Bartlett
was interested in it.

Also started playing around with the more interesting bits of popt.  The
auto-generated usage information is pretty neat.
(This used to be commit b3e51bfe6c13f1d20e599f675332f0489d8462e7)
2002-07-29 09:32:25 +00:00
Tim Potter
c47d973ff2 Added extern for popt_common_debug.
(This used to be commit 4c664a0de89676cfb2b14a93d4e30aed04e29fe9)
2002-07-29 09:28:16 +00:00
Tim Potter
8f0b2c5f5a Add lib/popt_common.o
(This used to be commit a29a86f5b55669c615cdc659d1b8a231b16b3273)
2002-07-29 09:26:38 +00:00
Tim Potter
11785c7bc8 Use common popt definition for -d option.
(This used to be commit 8c17904848a6206ab35652625ff5f3afcf6bcb0d)
2002-07-29 09:25:23 +00:00
Tim Potter
6eaa06ac53 A place to store common popt routines.
(This used to be commit b5b64a4e90792000fc377a032cd5c7cb9918261b)
2002-07-29 09:23:01 +00:00
Simo Sorce
9b031d8378 people should be happier now.
changed strtof with sscanf to make things working on all platforms.
changed auto-made bubble sort for more efficient and clean qsort()
(This used to be commit 61294d74b20741d683b8955d75d44eef00f94a0e)
2002-07-29 07:57:48 +00:00
Tim Potter
0872bc4486 Skeleton for a libsmb python wrapper.
(This used to be commit 36cc488c4d99198d346103b0e44776a7de145428)
2002-07-29 03:50:35 +00:00
Tim Potter
c74a8d72f9 Merge from APPLIANCE_HEAD:
>When creating an automatically generated prototype make sure the
>destination directory exists.
(This used to be commit 9ffca4824c9fa76ab288f59b4b57a3cdc99a93b8)
2002-07-29 03:26:31 +00:00
Tim Potter
db789e9467 Updated patch.
(This used to be commit b7bd0bf95380f5fae385bfd353999f40f72e3d06)
2002-07-29 03:07:49 +00:00
Simo Sorce
a4ec4acd61 found nasty bug in intl/lang_tdb.c tdb structure was not tested to not be null before close
this one fixes swat not working with browsers that set more then one language.

along the way implemented language priority in web/neg_lang.c with bubble sort

also changet str_list_make to be able to use a different separator string

Simo.
(This used to be commit 69765e4faa8aaae74c97afc917891fc72d80703d)
2002-07-28 18:10:39 +00:00
Andrew Bartlett
551d50c4e2 This patch does two things:
The first is to add sensible quotes to various default paramaters, and the
second is to ensure that we don't remove to many " characters from paramaters.

(Both from the debian patches to Samba).

Andrew Bartlett
(This used to be commit 03892bcfbb566f866fa8943dc42b844d833690f4)
2002-07-28 08:14:17 +00:00
Andrew Tridgell
24d71da71d minor portability fix
samba-patches 820
(This used to be commit ea0a12fb60791553109f732079d971987538abd6)
2002-07-28 08:04:31 +00:00
Andrew Tridgell
80c39a9c1f fix for smbtar filename matching
samba-patches 852
(This used to be commit e2558baa32657a71fd7e0958446f72e373cfadc9)
2002-07-28 07:53:14 +00:00
Andrew Tridgell
c76ab193dc this is an interim fix for nmbd not registering DOMAIN#1b with WINS
when a PDC. The fix does not iterate over all WINS tags, which it
should do, but after having looked at doing that it gets *very* messy
to do with our current code base.
(This used to be commit 434e5124db28134ebfc9840cf0839d77987db65e)
2002-07-28 07:15:42 +00:00
Andrew Bartlett
5b5208a0b8 Add the ability to set account policies too.
Andrew Bartlett
(This used to be commit 2bf6edf78b64335bf10c10c893d6e8fa0fac708b)
2002-07-28 06:43:03 +00:00
Andrew Tridgell
4b68935a51 make sure async dns nmbd child dies
samba-patches 898
(This used to be commit a954f72fe315ec59bfeb4bd407179bc54689440f)
2002-07-28 06:26:41 +00:00
Andrew Tridgell
ed9a219c87 fix minor nits in nmbd from adtam@cup.hp.com
samba-patches 959
(This used to be commit ef04261e2510b658322336ce841b01f1c903eee2)
2002-07-28 06:19:14 +00:00
Andrew Tridgell
c4fcf56380 good security patch from Timothy.Sell@unisys.com
we could generate short passwords!
samba-patches 880
(This used to be commit 1466acba7e18f5ce733b376d031f1596a1a674d8)
2002-07-28 06:08:30 +00:00
Andrew Tridgell
a5216d2340 partial apply of samba-patches 960
(This used to be commit a302e31519e0935f820dfe3555ec6d3473d89694)
2002-07-28 06:04:32 +00:00
Andrew Tridgell
03e9a50305 fixed man install
samba-patches 961
(This used to be commit 935996e1c7e742da5961e0eaaf4b3cf5a40b9547)
2002-07-28 05:57:23 +00:00
Andrew Tridgell
e95e731fee fixed logfile location to honor configure
samba-patches 966
(This used to be commit 06d8549196ff1482be94c08c7a742896ae35fd88)
2002-07-28 05:50:57 +00:00
Andrew Bartlett
86b7abe54c Fix a missing 'no memory' return in last night's svrsvc code, and use
sys_dup2() in a couple more places.

Andrew Bartlett
(This used to be commit e69b476626c802b1e1920f241733d0dd6d06a06e)
2002-07-28 03:41:50 +00:00
Andrew Bartlett
e39b6dbff3 Another item off my long-term todo list:
Remove the n^2 search for valid 'tty' names from the sesion code when we
don't actually need it.  Its main value is in getting 'well behaved'
numbers for use with utmp, so when we are not doing utmp we don't need
this to get in the way.

Andrew Bartlett
(This used to be commit 50507e131dac19485a2561f3448da7334e357f50)
2002-07-28 02:23:22 +00:00
Andrew Bartlett
74d235ff1a It seems I didn't need to write a dup2() wrapper - as we already use it a
lot.  But as thats done, we might as well use it anyway.

Andrew Bartlett
(This used to be commit d78cce806d967d0442b153242ba2061f1b14b6b6)
2002-07-28 02:20:15 +00:00
Andrew Bartlett
9423ac9b4f Clean this code up a little. If it's alrady asprintf()ed, I see no
need for a manual strdup() too...
(This used to be commit 71452365c8d9aa3d06b64716636a32bfebd3d4f8)
2002-07-28 02:17:57 +00:00
Andrew Bartlett
7ce66f79ea A very long time ago (actually 6 months ago) I promised to commit this code
to the Samba tree.

Originally written by Nigel Williams" <nigel@veritas.com>, I've been
trying to keep it in some form of shape for the last 6 months.  In particular
I think some of the code got committed a few months ago, and others have made
changes to the CVS version over time.

anyway, its finally in - and doesn't appear to have broken anything.

Now to try the client-side patches :-)

Andrew Bartlett
(This used to be commit f9bac7c5c2c4ddf0bf39d596a7b922fbb17c6b16)
2002-07-27 11:48:55 +00:00
Andrew Bartlett
8e04b2d4bb Update the rebind code in pdb_ldap.
I've still not tested this, but I didn't test the last lot and I'm pretty
sure I stuffed it up - but at least this rebind procedure matches the
function prototype.

It should also be fine on OpenLDAP 2.1 if I'm lucky.

Andrew Bartlett
(This used to be commit 064f269508d05cc833cf7bfd5613e4fe389f32dc)
2002-07-27 06:07:53 +00:00
Andrew Bartlett
e0c57e6ab5 This should fix a nastly little bug where if a user had already done one
session setup, it would not correctly pick up the [homes] share on a subsequent
session setup.

The new rules are:  If you want to connect to [homes], then it must have been
available at session setup time, or you must be in security=share.  At each
session setup, the user's copy of [homes] is updated to ensure it has the right
path etc.

Andrew Bartlett
(This used to be commit 5d2c7816a3ea02a67c5b501626d91d43557e9dd9)
2002-07-27 02:54:39 +00:00
Simo Sorce
31b4cfd820 nice day today
add also hide unwriteable as per user request
(This used to be commit e6b38a881b67af5365f84e52f9cd6dcfec82bf2f)
2002-07-27 02:33:49 +00:00
Simo Sorce
2ff0939301 as per user request added windbind start/stop/restart in swat
almost working, seem it does not yet properly detect if windbind is running or not in all situations testing is welcome.
(This used to be commit e0988e918667e3bc7b7cfb19ae81bf8c05fe582a)
2002-07-27 01:37:33 +00:00