Jeremy Allison [Wed, 23 Oct 2002 22:23:39 +0000 (22:23 +0000)]
Reverted a fix from Volker (sorry). We need to move this fix to the correct
place.
Jeremy.
Jelmer Vernooij [Wed, 23 Oct 2002 15:29:35 +0000 (15:29 +0000)]
Move OID documents to web module
Andrew Tridgell [Wed, 23 Oct 2002 03:37:51 +0000 (03:37 +0000)]
much simpler code to choose a DC to contact in winbindd. We now always
choose the server that has the most bits in common in its IP with one
of our interfaces.
Jeremy Allison [Wed, 23 Oct 2002 01:55:40 +0000 (01:55 +0000)]
Debug level 12 is a typo.
Jeremy.
Jeremy Allison [Wed, 23 Oct 2002 01:22:45 +0000 (01:22 +0000)]
First cut of new ACL mapping code from Andreas Gruenbacher <agruen@suse.de>.
This is not 100% the same as what SuSE shipped in their Samba, there is
a crash bug fix, a race condition fix, and a few logic changes I'd like to
discuss with Andreas. Added Andreas to (C) notices for posix_acls.c
Jeremy.
Andrew Tridgell [Wed, 23 Oct 2002 00:23:30 +0000 (00:23 +0000)]
if trusted domains are disabled then we should not try to connect to
them in winbindd
Andrew Tridgell [Wed, 23 Oct 2002 00:02:26 +0000 (00:02 +0000)]
fixed a possible segv when dealing with a blank password
Jeremy Allison [Tue, 22 Oct 2002 22:17:06 +0000 (22:17 +0000)]
Fix for systems that allow more than 65536 open files per process.
Jeremy.
Simo Sorce [Tue, 22 Oct 2002 16:10:45 +0000 (16:10 +0000)]
Some was asking to look at this code, so better it stay there until we decide what to do with it.
Last updates are support for the right way to support privileges.
Simo.
Tim Potter [Mon, 21 Oct 2002 21:21:33 +0000 (21:21 +0000)]
Fixed bug in session setup kwlist.
Added some basic error handling. Just throw a RuntimeError exception
on error.
Volker Lendecke [Mon, 21 Oct 2002 20:33:00 +0000 (20:33 +0000)]
Same segfault as in add_groupmem.
Volker
Volker Lendecke [Mon, 21 Oct 2002 20:31:59 +0000 (20:31 +0000)]
pdb_unix.c did not really expect group RIDs dictated by a PDC and looking
like user RIDs.
Volker
Gerald Carter [Mon, 21 Oct 2002 20:28:11 +0000 (20:28 +0000)]
merge from samba_3_0
removed the following parameters
* postscript
* printer driver
* printer driver location
* printer driver file
also removed the get_a_printer_driver_9x_compatible() function
Volker Lendecke [Mon, 21 Oct 2002 19:28:56 +0000 (19:28 +0000)]
This moves the group mapping API into the passdb backend.
Currently this calls back to mapping.c, but we have the framework
to get the information into LDAP and the passdb.tdb (should we? I
think so..).
This has received moderate testing with net rpc vampire and
usrmgr. I found the add_groupmem segfault in add_aliasmem as
well, but that will be another checkin.
Volker
Volker Lendecke [Mon, 21 Oct 2002 19:25:04 +0000 (19:25 +0000)]
I was somewhat annoyed by 'pdbedit -a vl' spitting an error message
at me :-)
Volker
Jelmer Vernooij [Mon, 21 Oct 2002 19:22:46 +0000 (19:22 +0000)]
Fix usage message
Jelmer Vernooij [Mon, 21 Oct 2002 19:21:41 +0000 (19:21 +0000)]
Remove obsolete acconfig.h - we now use comments in AC_DEFINE()
Jelmer Vernooij [Mon, 21 Oct 2002 18:01:02 +0000 (18:01 +0000)]
Add faq chapter about the samba features
Jelmer Vernooij [Mon, 21 Oct 2002 17:59:51 +0000 (17:59 +0000)]
Don't say we need WINS Replication documentation
Jelmer Vernooij [Mon, 21 Oct 2002 16:28:27 +0000 (16:28 +0000)]
Recognize FreeBSD5 correctly (not as being sysv...)
Gerald Carter [Mon, 21 Oct 2002 15:49:26 +0000 (15:49 +0000)]
sync with SAMBA_3_0
Jelmer Vernooij [Mon, 21 Oct 2002 15:36:51 +0000 (15:36 +0000)]
Sync with metze's CVS tree
Jelmer Vernooij [Mon, 21 Oct 2002 13:41:34 +0000 (13:41 +0000)]
Small patch from metze to add 3 parameters to vfs_init, as it requires
Jelmer Vernooij [Mon, 21 Oct 2002 13:31:32 +0000 (13:31 +0000)]
Add text doc about what work is left on the docs for 3.0
Martin Pool [Mon, 21 Oct 2002 11:44:26 +0000 (11:44 +0000)]
Test both new samba.tdbpack and oldtdbutil pack/unpack routines.
This makes the test suite fail because at the moment they are in fact
not behaving the same way.
Martin Pool [Mon, 21 Oct 2002 11:13:53 +0000 (11:13 +0000)]
Import old pure Python version of tdbpack/unpack, so that we can do
compatibility testing against the shiny new C version.
This version is slightly modified to not call codepage conversion
routines, and renamed tdbutil->oldtdbutil.
Tim Potter [Mon, 21 Oct 2002 09:54:41 +0000 (09:54 +0000)]
The libsmb module uses py_ntsec.o
Tim Potter [Mon, 21 Oct 2002 09:53:31 +0000 (09:53 +0000)]
Fixed up tconx function. Implemented nt_create_andx, query_secdesc
and set_secdesc functions.
Tim Potter [Mon, 21 Oct 2002 08:23:20 +0000 (08:23 +0000)]
Whoops - this should be in py_smb.c
Martin Pool [Mon, 21 Oct 2002 07:41:08 +0000 (07:41 +0000)]
Give better error messages for TypeError, which will arise if e.g. you
try to pack an Int using a string tdbpack format.
Tim Potter [Mon, 21 Oct 2002 04:47:29 +0000 (04:47 +0000)]
More cleanups of validation functions.
Tim Potter [Mon, 21 Oct 2002 04:44:44 +0000 (04:44 +0000)]
Zero some more return values.
Andrew Tridgell [Mon, 21 Oct 2002 04:30:51 +0000 (04:30 +0000)]
add a 'mangle prefix' option to allow people to tune the number of
characters used in the prefix for 8.3 names in the hash2
algorithm. The longer the prefix the more readable the 8.3 names will
be, but the weaker the hash.
this was added because of someone complaining that the new hashing
algorithm was unreadable but the old one was broken :)
Tim Potter [Mon, 21 Oct 2002 04:17:43 +0000 (04:17 +0000)]
level should be a uint32 in enum_ports function.
Tim Potter [Mon, 21 Oct 2002 04:16:12 +0000 (04:16 +0000)]
Stricter validation in python->C conversion functions.
Tim Potter [Mon, 21 Oct 2002 04:12:47 +0000 (04:12 +0000)]
Fixed DRIVER_INFO_3 conversion function to check for dependent_files
key.
Tim Potter [Mon, 21 Oct 2002 04:03:49 +0000 (04:03 +0000)]
Fix a silly memset typo.
Change a int* to a uint32* in the cli_spoolss_enum_ports() function.
Andrew Tridgell [Mon, 21 Oct 2002 03:47:51 +0000 (03:47 +0000)]
reverted an incorrect fix. What I was trying to do was fix a problem
with filenames with spaces in mangle_hash.c but the real problem is
that mangle_hash.c assumes that the set of valid characters for 8.3
names is the same as the set of valid characters for long names. Thats
an invalid assumption, with space being the obvious example.
Andrew Tridgell [Mon, 21 Oct 2002 03:40:18 +0000 (03:40 +0000)]
a space is a standard valid character in a filename
Tim Potter [Mon, 21 Oct 2002 02:48:55 +0000 (02:48 +0000)]
Zero tallocated memory in decode_printer_info, decode_driver_info,
decode_port_info and decode_printerdriver functions.
Tim Potter [Mon, 21 Oct 2002 00:05:01 +0000 (00:05 +0000)]
Bugfix for pidfile_create() from Kelledin.
Tim Potter [Sun, 20 Oct 2002 20:43:26 +0000 (20:43 +0000)]
Added stubs for query/set security descriptors on files. Not even close to
working yet.
Volker Lendecke [Sat, 19 Oct 2002 08:09:28 +0000 (08:09 +0000)]
Fix full_name for info23 as well. Thanks, Andrew.
Volker
Volker Lendecke [Sat, 19 Oct 2002 07:50:48 +0000 (07:50 +0000)]
This fixes some bugs for NT4 usrmgr.exe
Volker
Herb Lewis [Fri, 18 Oct 2002 23:52:05 +0000 (23:52 +0000)]
must add one to the extra_data size to transfer the 0 string terminator.
This was causing "wbinfo --sequence" to access past the end of malloced
memory.
Jelmer Vernooij [Fri, 18 Oct 2002 23:27:49 +0000 (23:27 +0000)]
Don't encourage people to use -P - it's obsolete
Andrew Bartlett [Fri, 18 Oct 2002 22:27:55 +0000 (22:27 +0000)]
It seems that I'm meant to be using the helper function here, not the struct
directly...
Andrew Bartlett
Jelmer Vernooij [Fri, 18 Oct 2002 22:16:08 +0000 (22:16 +0000)]
Document parameters that have been added in 3.0
Jelmer Vernooij [Fri, 18 Oct 2002 21:43:31 +0000 (21:43 +0000)]
Update for 3.0 (document -B, -s, -n options). Is now current
Jelmer Vernooij [Fri, 18 Oct 2002 21:14:55 +0000 (21:14 +0000)]
smb.conf.5 is completely up-to-date for 3.0 now. Say so in the VERSION section
Jelmer Vernooij [Fri, 18 Oct 2002 21:01:42 +0000 (21:01 +0000)]
Try to put some questions from the mailinglist in
Jelmer Vernooij [Fri, 18 Oct 2002 20:36:43 +0000 (20:36 +0000)]
Add FAQ 'I have set 'force user' and samba still makes 'root' the owner of all the files I touch!'
Jelmer Vernooij [Fri, 18 Oct 2002 20:31:13 +0000 (20:31 +0000)]
Document %D. Make a difference between sub_basic and sub_advanced substitutions
Jim McDonough [Fri, 18 Oct 2002 20:11:29 +0000 (20:11 +0000)]
Format objectGUIDs on ads dumps.
Jeremy Allison [Fri, 18 Oct 2002 19:46:28 +0000 (19:46 +0000)]
Start to merge the new ACL mapping code from Andreas Gruenbacher <agruen@suse.de>.
Jeremy.
Jelmer Vernooij [Fri, 18 Oct 2002 18:30:49 +0000 (18:30 +0000)]
Add note to HP-UX: use gcc or HP's ansi C compiler and not the freely supplied C compiler
(which isn't ansi C compatible)
Gerald Carter [Fri, 18 Oct 2002 17:42:41 +0000 (17:42 +0000)]
NULL enum_local_groups for ads winbindd (temporary workaround).
Jim McDonough [Fri, 18 Oct 2002 17:29:20 +0000 (17:29 +0000)]
Add extra parm to cli_full_connection call. Tim, you should probably look at this.
Jelmer Vernooij [Fri, 18 Oct 2002 15:54:02 +0000 (15:54 +0000)]
Remove note about the howto being in 'htmldocs' - this notice has
been in since 2.2 so people should know by now...
Jim McDonough [Fri, 18 Oct 2002 15:09:17 +0000 (15:09 +0000)]
Fix build. Extra parm was added to cli_full_connection, but not in locktest2.c.
Jeremy Allison [Thu, 17 Oct 2002 17:10:29 +0000 (17:10 +0000)]
Added new error codes. Fix up connection code to retry in the same way
that app-head does.
Jeremy.
Volker Lendecke [Thu, 17 Oct 2002 08:12:20 +0000 (08:12 +0000)]
Revert changes
Volker Lendecke [Thu, 17 Oct 2002 07:08:43 +0000 (07:08 +0000)]
Revert changes
Tim Potter [Thu, 17 Oct 2002 06:39:44 +0000 (06:39 +0000)]
When unmarshalling a relstr, don't unmarshall the string data if the
offset is zero. Previously we were jumping to the start of the
parse buffer (i.e offset zero) and reading string data until we hit
a terminating NULL.
Test case: in a PRINTER_INFO_0 structure, the servername field may be
NULL when doing an enumprinters with flags = PRINTER_ENUM_LOCAL.
Tim Potter [Thu, 17 Oct 2002 05:26:06 +0000 (05:26 +0000)]
Ignore python build directory.
Tim Potter [Thu, 17 Oct 2002 05:08:34 +0000 (05:08 +0000)]
Do a SMB_ASSERT() in cli_nt_session_open() when the pipe index is out
of range instead of silently failing.
Tim Potter [Thu, 17 Oct 2002 04:48:08 +0000 (04:48 +0000)]
make proto
Tim Potter [Thu, 17 Oct 2002 04:45:25 +0000 (04:45 +0000)]
open_pipe_creds() now takes a pipe index instead of a pipe name.
Tim Potter [Thu, 17 Oct 2002 04:40:53 +0000 (04:40 +0000)]
Fix for new arguments of cli_nt_session_open()
Jeremy Allison [Wed, 16 Oct 2002 20:09:22 +0000 (20:09 +0000)]
Never do a ZERO_STRUCT on a structure in a linked list, it's dumb :-).
Jeremy.
Gerald Carter [Wed, 16 Oct 2002 18:21:55 +0000 (18:21 +0000)]
fix from APP_HEAD to commit a re-init'd printer to disk
Volker Lendecke [Wed, 16 Oct 2002 15:49:58 +0000 (15:49 +0000)]
No functional change. I'm trying to understand pdb_ldap.c and
found an unecessary parameter to ldapsam_search_one_user.
Volker
Volker Lendecke [Wed, 16 Oct 2002 09:41:42 +0000 (09:41 +0000)]
Create group mappings on the fly.
Volker
Jeremy Allison [Wed, 16 Oct 2002 01:28:11 +0000 (01:28 +0000)]
SMB_ASSERT to check list terminates.
Jeremy
Andrew Tridgell [Tue, 15 Oct 2002 23:44:15 +0000 (23:44 +0000)]
- we need to rescan the trusted domain list regularly to cope with
transitive trusts, and trusts that are added while winbindd is running
- removed an unnecessary call to time()
Jeremy Allison [Tue, 15 Oct 2002 21:35:41 +0000 (21:35 +0000)]
Change default of max_xmit to match W2K. Ensure NT negprot uses it.
Jeremy.
Jeremy Allison [Tue, 15 Oct 2002 21:34:40 +0000 (21:34 +0000)]
Fix spelling of background_process.
Jeremy.
Jeremy Allison [Tue, 15 Oct 2002 21:33:20 +0000 (21:33 +0000)]
Change to use sys_read/sys_write.
Jeremy.
Jeremy Allison [Tue, 15 Oct 2002 21:29:37 +0000 (21:29 +0000)]
Added cli_set_timeout() call.
Jeremy.
Jelmer Vernooij [Tue, 15 Oct 2002 20:57:33 +0000 (20:57 +0000)]
These utilities aren't in HEAD
Jelmer Vernooij [Tue, 15 Oct 2002 20:56:37 +0000 (20:56 +0000)]
These utilities are not in HEAD
Jelmer Vernooij [Tue, 15 Oct 2002 20:53:27 +0000 (20:53 +0000)]
make_smbcodepage and make_unicodemap are gone in HEAD
Jelmer Vernooij [Tue, 15 Oct 2002 20:13:43 +0000 (20:13 +0000)]
Add info on chpass on *BSD systems (thanks Krzysztof Kowalik <kkowalik@uci.agh.edu.pl>)
Jelmer Vernooij [Tue, 15 Oct 2002 18:14:31 +0000 (18:14 +0000)]
make html
Jelmer Vernooij [Tue, 15 Oct 2002 18:02:23 +0000 (18:02 +0000)]
Convert BROWSING-Config.txt to SGML
Andrew Tridgell [Tue, 15 Oct 2002 05:40:24 +0000 (05:40 +0000)]
fixed a crash bug on 64 bit systems. Thanks to Anton Blanchard for
finding this.
Gerald Carter [Tue, 15 Oct 2002 00:28:04 +0000 (00:28 +0000)]
merge from app_head to use GMT in job submission notification
Tim Potter [Mon, 14 Oct 2002 22:57:59 +0000 (22:57 +0000)]
Tidyup of file specific access mask bits.
Added directory specific access mask bits.
Jelmer Vernooij [Mon, 14 Oct 2002 21:40:45 +0000 (21:40 +0000)]
Don't use SAM FLAGS from smb.h since they're gone - patch from metze
Volker Lendecke [Mon, 14 Oct 2002 12:09:13 +0000 (12:09 +0000)]
In my test, sync_context simply has to be incremented. Can
somebody with a large domain do a net rpc samdump to verify this?
Without this change, I don't get everything from a NT4 SP1 and SP6
PDC.
Volker
Andrew Bartlett [Sat, 12 Oct 2002 03:38:07 +0000 (03:38 +0000)]
Nice *big* patch from metze.
The actual design change is relitivly small however:
It all goes back to jerry's 'BOOL store', added to many of the elements in a
SAM_ACCOUNT. This ensured that smb.conf defaults did not get 'fixed' into
ldap. This was a great win for admins, and this patch follows in the same way.
This patch extends the concept - we don't store values back into LDAP unless
they have been changed. So if we read a value, but don't update it, or we
read a value, find it's not there and use a default, we will not update
ldap with that value. This reduced clutter in our LDAP DB, and makes it
easier to change defaults later on.
Metze's particular problem was that when we 'write back' an unchanged value,
we would clear any muliple values in that feild. Now he can still have his
mulitivalued 'uid' feild, without Samba changing it for *every* other
operation.
This also applies to many other attributes, and helps to eliminate a nasty
race condition. (Time between get and set)
This patch is big, and needs more testing, but metze has tested usrmgr, and
I've fixed some pdbedit bugs, and tested domain joins, so it isn't compleatly
flawed ;-).
The same system will be introduced into the SAM code shortly, but this fixes
bugs that people were coming across in production uses of Samba 3.0/HEAD, hence
it's inclusion here.
Andrew Bartlett
Andrew Bartlett [Sat, 12 Oct 2002 00:59:21 +0000 (00:59 +0000)]
We already set LDAPv3 at connect time, no need to set it again.
Jeremy Allison [Fri, 11 Oct 2002 01:17:41 +0000 (01:17 +0000)]
Turns out with Win9x, we could occasionally return from unix_convert() given
a mangled name without a valid stat struct if the file existed. This would
then cause open_file_shared1() to erroneously think the file open was new,
thus not check for oplock break, thus causing a spurious EAGAIN reply to
the open on a file we already had kernel oplocked.... (phew - that was fun
to track down :-).
Jeremy.
Jeremy Allison [Wed, 9 Oct 2002 22:50:10 +0000 (22:50 +0000)]
Added "unknown info level".
Jeremy.
Jeremy Allison [Wed, 9 Oct 2002 19:46:19 +0000 (19:46 +0000)]
Use memmove when copies can overlap. Spotted by SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
Jeremy.
Gerald Carter [Wed, 9 Oct 2002 18:54:20 +0000 (18:54 +0000)]
print job properties fix from APP_HEAD. a null devmode is not a failure.
Gerald Carter [Wed, 9 Oct 2002 17:44:02 +0000 (17:44 +0000)]
removed stat() call in lp_add_home()
Gerald Carter [Wed, 9 Oct 2002 17:00:04 +0000 (17:00 +0000)]
add_printer_hook() fix from APP_HEAD
Jelmer Vernooij [Wed, 9 Oct 2002 12:01:24 +0000 (12:01 +0000)]
Distclean should remove scripts/findsmb (patch from metze)
Gerald Carter [Tue, 8 Oct 2002 18:29:57 +0000 (18:29 +0000)]
merge from APP_HEAD
* s/driverlocation/comment
* detect native mode domain and enumerate local groups
Also
* Added sendfile stats from SAMBA_2_2