kai/samba.git
21 years agomerge from samba_3_0
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
(This used to be commit e7dd8cf903144393b1362719d75430a2ee7e5f27)

21 years agoThis moves the group mapping API into the passdb backend.
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
(This used to be commit f30095852fea19421ac8e25dfe9c5cd4b2206f84)

21 years agoI was somewhat annoyed by 'pdbedit -a vl' spitting an error message
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
(This used to be commit c4452ef22cf63c73bfb3574a55a4810af511ff20)

21 years agoFix usage message
Jelmer Vernooij [Mon, 21 Oct 2002 19:22:46 +0000 (19:22 +0000)]
Fix usage message
(This used to be commit 2e328928aa9bfafbfa00596f261dbc68bcd51e6b)

21 years agoRemove obsolete acconfig.h - we now use comments in AC_DEFINE()
Jelmer Vernooij [Mon, 21 Oct 2002 19:21:41 +0000 (19:21 +0000)]
Remove obsolete acconfig.h - we now use comments in AC_DEFINE()
(This used to be commit dc4fcb71edc22f36cd1f6d78a211d09c418f3309)

21 years agoAdd faq chapter about the samba features
Jelmer Vernooij [Mon, 21 Oct 2002 18:01:02 +0000 (18:01 +0000)]
Add faq chapter about the samba features
(This used to be commit b55fe96c1f073e81ce564d16d70cae49e1862cf5)

21 years agoDon't say we need WINS Replication documentation
Jelmer Vernooij [Mon, 21 Oct 2002 17:59:51 +0000 (17:59 +0000)]
Don't say we need WINS Replication documentation
(This used to be commit 2bbc4187e76339191aadf8c9503daf7c02ebafbc)

21 years agoRecognize FreeBSD5 correctly (not as being sysv...)
Jelmer Vernooij [Mon, 21 Oct 2002 16:28:27 +0000 (16:28 +0000)]
Recognize FreeBSD5 correctly (not as being sysv...)
(This used to be commit 66ef6b942e00dc0d7742226f24861445d3bc0eb3)

21 years agosync with SAMBA_3_0
Gerald Carter [Mon, 21 Oct 2002 15:49:26 +0000 (15:49 +0000)]
sync with SAMBA_3_0
(This used to be commit 07ac86323f71d6228a222a1680d1c7def0eb7109)

21 years agoSync with metze's CVS tree
Jelmer Vernooij [Mon, 21 Oct 2002 15:36:51 +0000 (15:36 +0000)]
Sync with metze's CVS tree
(This used to be commit 2a598d435d3eb46ca28b3591a4f7f9d856ce3c1f)

21 years agoSmall patch from metze to add 3 parameters to vfs_init, as it requires
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
(This used to be commit 4206ebb160e947c70f15e5c434dd1d4df287e665)

21 years agoAdd text doc about what work is left on the docs for 3.0
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
(This used to be commit 328c5a92a1dfe7e5bc62a1846bf4e9c7cdb2110c)

21 years agoTest both new samba.tdbpack and oldtdbutil pack/unpack routines.
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.
(This used to be commit 44dd7746ede7f7f9efcf7dabcd351b1d800e535c)

21 years agoImport old pure Python version of tdbpack/unpack, so that we can do
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.
(This used to be commit 2dc4373727f73a46cd6135413e50917fb7fa538b)

21 years agoThe libsmb module uses py_ntsec.o
Tim Potter [Mon, 21 Oct 2002 09:54:41 +0000 (09:54 +0000)]
The libsmb module uses py_ntsec.o
(This used to be commit e27d3d20e3c51fc04f37d92c24f38f91b2d1e1e4)

21 years agoFixed up tconx function. Implemented nt_create_andx, query_secdesc
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.
(This used to be commit 3fd568ef5c984f089e7799d9ff55395330716641)

21 years agoWhoops - this should be in py_smb.c
Tim Potter [Mon, 21 Oct 2002 08:23:20 +0000 (08:23 +0000)]
Whoops - this should be in py_smb.c
(This used to be commit b740c7e5050b18bc06865451bed3daf3ae09c609)

21 years agoGive better error messages for TypeError, which will arise if e.g. you
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.
(This used to be commit 6139ab3cbca3fc2969d1e578b38394b1f6aeb9c3)

21 years agoMore cleanups of validation functions.
Tim Potter [Mon, 21 Oct 2002 04:47:29 +0000 (04:47 +0000)]
More cleanups of validation functions.
(This used to be commit a4790ba42cc6ee4086dafbc64b1dba790a6c3583)

21 years agoZero some more return values.
Tim Potter [Mon, 21 Oct 2002 04:44:44 +0000 (04:44 +0000)]
Zero some more return values.
(This used to be commit 7f45bad319ace07a5bfc21465a0db919131dd608)

21 years agoadd a 'mangle prefix' option to allow people to tune the number of
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 :)
(This used to be commit 3ca3cc838e5b957c7244b21947daddc4ee4c3099)

21 years agolevel should be a uint32 in enum_ports function.
Tim Potter [Mon, 21 Oct 2002 04:17:43 +0000 (04:17 +0000)]
level should be a uint32 in enum_ports function.
(This used to be commit 121db5b6821df9c6ec05adb2d35c2dde930736f2)

21 years agoStricter validation in python->C conversion functions.
Tim Potter [Mon, 21 Oct 2002 04:16:12 +0000 (04:16 +0000)]
Stricter validation in python->C conversion functions.
(This used to be commit 672c07e2432299e3b1015af524dc5c124f61f904)

21 years agoFixed DRIVER_INFO_3 conversion function to check for dependent_files
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.
(This used to be commit 35413be0ac39ce52f009f7750f23b41728d8a35c)

21 years agoFix a silly memset typo.
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.
(This used to be commit 4663d79d3e9dcfef49f7cef1f6205efe58edbdc1)

21 years agoreverted an incorrect fix. What I was trying to do was fix a problem
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.
(This used to be commit e0065f4db4a1cfae03a3bb86e5cfea9c45dfa1c3)

21 years agoa space is a standard valid character in a filename
Andrew Tridgell [Mon, 21 Oct 2002 03:40:18 +0000 (03:40 +0000)]
a space is a standard valid character in a filename
(This used to be commit 0db79d4a379a502362c230a9019d5d71f5af8e0e)

21 years agoZero tallocated memory in decode_printer_info, decode_driver_info,
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.
(This used to be commit bf2d9dd5ba2ecc7e0e1bd17049adee6dd80d807c)

21 years agoBugfix for pidfile_create() from Kelledin.
Tim Potter [Mon, 21 Oct 2002 00:05:01 +0000 (00:05 +0000)]
Bugfix for pidfile_create() from Kelledin.
(This used to be commit 4808a95f5f4536774d41bebca76660f010069117)

21 years agoAdded stubs for query/set security descriptors on files. Not even close to
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.
(This used to be commit b7ef2e8b41bd6a7225b9f21c65c42b8ef0f82a32)

21 years agoFix full_name for info23 as well. Thanks, Andrew.
Volker Lendecke [Sat, 19 Oct 2002 08:09:28 +0000 (08:09 +0000)]
Fix full_name for info23 as well. Thanks, Andrew.

Volker
(This used to be commit 382c444225fae54ae577baae8948a64a843a2afc)

21 years agoThis fixes some bugs for NT4 usrmgr.exe
Volker Lendecke [Sat, 19 Oct 2002 07:50:48 +0000 (07:50 +0000)]
This fixes some bugs for NT4 usrmgr.exe

Volker
(This used to be commit 32d6bcf3acefc77873a7241cc0c7e26241a65301)

21 years agomust add one to the extra_data size to transfer the 0 string terminator.
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.
(This used to be commit 4125c582aaf86ee5d92b0c800266543a390aefce)

21 years agoDon't encourage people to use -P - it's obsolete
Jelmer Vernooij [Fri, 18 Oct 2002 23:27:49 +0000 (23:27 +0000)]
Don't encourage people to use -P - it's obsolete
(This used to be commit 59ecac901a231383bd4cacb326724f786e3d7244)

21 years agoIt seems that I'm meant to be using the helper function here, not the struct
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
(This used to be commit 0abeb8725e8ea53a468d6004457bb7fa89a0f8b2)

21 years agoDocument parameters that have been added in 3.0
Jelmer Vernooij [Fri, 18 Oct 2002 22:16:08 +0000 (22:16 +0000)]
Document parameters that have been added in 3.0
(This used to be commit 1fb6353c39439220465fcce7950511c63e31ea44)

21 years agoUpdate for 3.0 (document -B, -s, -n options). Is now current
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
(This used to be commit 9f388e15b0bef1590c5605f8d7cdeac7c82cd64f)

21 years agosmb.conf.5 is completely up-to-date for 3.0 now. Say so in the VERSION section
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
(This used to be commit 28fb5f00c0683ed7af6ea05ac5e005215ad7a7c7)

21 years agoTry to put some questions from the mailinglist in
Jelmer Vernooij [Fri, 18 Oct 2002 21:01:42 +0000 (21:01 +0000)]
Try to put some questions from the mailinglist in
(This used to be commit 1bf8ca3c89b5cbbc329f34971d5d2541d3b0265c)

21 years agoAdd FAQ 'I have set 'force user' and samba still makes 'root' the owner of all the...
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!'
(This used to be commit e8d7f8eb43e299cbe7f46c91e2040e9d74d693e2)

21 years agoDocument %D. Make a difference between sub_basic and sub_advanced substitutions
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
(This used to be commit 7fe52d378d7e4ce6381be3544d865088a7659009)

21 years agoFormat objectGUIDs on ads dumps.
Jim McDonough [Fri, 18 Oct 2002 20:11:29 +0000 (20:11 +0000)]
Format objectGUIDs on ads dumps.
(This used to be commit 7eaf7e7115c75e682b1b9368c6f28c60429885e5)

21 years agoStart to merge the new ACL mapping code from Andreas Gruenbacher <agruen@suse.de>.
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.
(This used to be commit f6103f866a5e698ab55fdab1444a14e3d8da16bb)

21 years agoAdd note to HP-UX: use gcc or HP's ansi C compiler and not the freely supplied C...
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)
(This used to be commit 853558151e0d26a98bf9278b664f98987f17813e)

21 years agoNULL enum_local_groups for ads winbindd (temporary workaround).
Gerald Carter [Fri, 18 Oct 2002 17:42:41 +0000 (17:42 +0000)]
NULL enum_local_groups for ads winbindd (temporary workaround).
(This used to be commit 06eea39abdb49d9d547707dcb170c988d7276c1d)

21 years agoAdd extra parm to cli_full_connection call. Tim, you should probably look at this.
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.
(This used to be commit a9f632ed5d3d033849c25efac419b21e830c5069)

21 years agoRemove note about the howto being in 'htmldocs' - this notice has
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...
(This used to be commit 744615f13f591b334fe85d4285ffbaa11419755c)

21 years agoFix build. Extra parm was added to cli_full_connection, but not in locktest2.c.
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.
(This used to be commit 51e0f5c2dd469c59a41822dbda293e59794a7dc4)

21 years agoAdded new error codes. Fix up connection code to retry in the same way
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.
(This used to be commit b521abd86b10573ca8f9116907c81e6deb55f049)

21 years agoRevert changes
Volker Lendecke [Thu, 17 Oct 2002 08:12:20 +0000 (08:12 +0000)]
Revert changes
(This used to be commit 975fd17f8af0f03f43995deb3fdd9bd5995a1c92)

21 years agoRevert changes
Volker Lendecke [Thu, 17 Oct 2002 07:08:43 +0000 (07:08 +0000)]
Revert changes
(This used to be commit 84b62f6d96a77ccbc1b4475ab0780a4e4c9d4875)

21 years agoWhen unmarshalling a relstr, don't unmarshall the string data if the
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.
(This used to be commit e62c6bf066c2242aae605ba707c9775b37bcaca3)

21 years agoIgnore python build directory.
Tim Potter [Thu, 17 Oct 2002 05:26:06 +0000 (05:26 +0000)]
Ignore python build directory.
(This used to be commit 36681c1c2784ebfe63173a442a193ef22e25c3e3)

21 years agoDo a SMB_ASSERT() in cli_nt_session_open() when the pipe index is out
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.
(This used to be commit b5111f47b5cf1820550e17663f983674b67bcaff)

21 years agomake proto
Tim Potter [Thu, 17 Oct 2002 04:48:08 +0000 (04:48 +0000)]
make proto
(This used to be commit 86c884c3a129d12dc77332c38484bef78c66440e)

21 years agoopen_pipe_creds() now takes a pipe index instead of a pipe name.
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.
(This used to be commit 3a0a30beda4b8be0038c98ccc6f8f01c6dae386a)

21 years agoFix for new arguments of cli_nt_session_open()
Tim Potter [Thu, 17 Oct 2002 04:40:53 +0000 (04:40 +0000)]
Fix for new arguments of cli_nt_session_open()
(This used to be commit cfb0c12eb6412c2cc84785c17ab2f6c89916aa56)

21 years agoNever do a ZERO_STRUCT on a structure in a linked list, it's dumb :-).
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.
(This used to be commit 0d989a911d742ed5eeb874f5b8350b0931f3d9db)

21 years agofix from APP_HEAD to commit a re-init'd printer to disk
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
(This used to be commit 64a159144483457887df2c6d779e6a139dfc6d1f)

21 years agoNo functional change. I'm trying to understand pdb_ldap.c and
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
(This used to be commit a085670c7e3a0ca82df749592fd5c6a86def1d53)

21 years agoCreate group mappings on the fly.
Volker Lendecke [Wed, 16 Oct 2002 09:41:42 +0000 (09:41 +0000)]
Create group mappings on the fly.

Volker
(This used to be commit e2fc1de34aaf875a7003f9d15d5f8ecf159130fb)

21 years agoSMB_ASSERT to check list terminates.
Jeremy Allison [Wed, 16 Oct 2002 01:28:11 +0000 (01:28 +0000)]
SMB_ASSERT to check list terminates.
Jeremy
(This used to be commit 25f6a9247e88a94cbacdc8fb06dc0d13c53d69bd)

21 years ago- we need to rescan the trusted domain list regularly to cope with
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()
(This used to be commit 14489ff30bb9eca2c55d36a69c0b45a2db339061)

21 years agoChange default of max_xmit to match W2K. Ensure NT negprot uses it.
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.
(This used to be commit e5fbfbcc9dc995b23eb0b46c6f59b03cfe9c02b5)

21 years agoFix spelling of background_process.
Jeremy Allison [Tue, 15 Oct 2002 21:34:40 +0000 (21:34 +0000)]
Fix spelling of background_process.
Jeremy.
(This used to be commit 94fc0ea9f99bc73486ef374a84d2c20ce895ee14)

21 years agoChange to use sys_read/sys_write.
Jeremy Allison [Tue, 15 Oct 2002 21:33:20 +0000 (21:33 +0000)]
Change to use sys_read/sys_write.
Jeremy.
(This used to be commit 042890056d5d4128eaaca346e7898ccda860dbe2)

21 years agoAdded cli_set_timeout() call.
Jeremy Allison [Tue, 15 Oct 2002 21:29:37 +0000 (21:29 +0000)]
Added cli_set_timeout() call.
Jeremy.
(This used to be commit 94a5c589945ffd4719f7509c162cf994f7914312)

21 years agoThese utilities aren't in HEAD
Jelmer Vernooij [Tue, 15 Oct 2002 20:57:33 +0000 (20:57 +0000)]
These utilities aren't in HEAD
(This used to be commit 6bfd71ec20aa8eddc3f2878eb1cac57cacc05885)

21 years agoThese utilities are not in HEAD
Jelmer Vernooij [Tue, 15 Oct 2002 20:56:37 +0000 (20:56 +0000)]
These utilities are not in HEAD
(This used to be commit aacdde1fcb02bf4982e8175f6dcc8ea8912d3efd)

21 years agomake_smbcodepage and make_unicodemap are gone in HEAD
Jelmer Vernooij [Tue, 15 Oct 2002 20:53:27 +0000 (20:53 +0000)]
make_smbcodepage and make_unicodemap are gone in HEAD
(This used to be commit ef40bde4344a19fcc61d6d1719c1c87970445139)

21 years agoAdd info on chpass on *BSD systems (thanks Krzysztof Kowalik <kkowalik@uci.agh.edu...
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>)
(This used to be commit 5a81ac79dbf40eee3c506cd11d473a1fcfd38df0)

21 years agomake html
Jelmer Vernooij [Tue, 15 Oct 2002 18:14:31 +0000 (18:14 +0000)]
make html
(This used to be commit 39034207567c363a257f0aebd8ef22f15d98f451)

21 years agoConvert BROWSING-Config.txt to SGML
Jelmer Vernooij [Tue, 15 Oct 2002 18:02:23 +0000 (18:02 +0000)]
Convert BROWSING-Config.txt to SGML
(This used to be commit 0b34832e33fbd81cec88730d671ca91abe6cc382)

21 years agofixed a crash bug on 64 bit systems. Thanks to Anton Blanchard for
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.
(This used to be commit 4ba8608020123a52432e5afaa914e290e4ce8cbf)

21 years agomerge from app_head to use GMT in job submission notification
Gerald Carter [Tue, 15 Oct 2002 00:28:04 +0000 (00:28 +0000)]
merge from app_head to use GMT in job submission notification
(This used to be commit b130c681d2e8e6dcabe8cfd85dd718a294b04233)

21 years agoTidyup of file specific access mask bits.
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.
(This used to be commit edbd942a8d0edcb5e7cc3086c3d98c6ff1d6cd80)

21 years agoDon't use SAM FLAGS from smb.h since they're gone - patch from metze
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
(This used to be commit 82a0abf4c84ddd0672b3c5ea4ba9759abd6778c6)

21 years agoIn my test, sync_context simply has to be incremented. Can
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
(This used to be commit f6a9180a5ff62932de0d4f890092b0d8281e9d6e)

21 years agoNice *big* patch from metze.
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
(This used to be commit 7f237bde212eb188df84a5d8adb598a93fba8155)

21 years agoWe already set LDAPv3 at connect time, no need to set it again.
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.
(This used to be commit c8e32d485bf205b6965579f94063effd86777f3f)

21 years agoTurns out with Win9x, we could occasionally return from unix_convert() given
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.
(This used to be commit e23210e4732163e7f005b320235c20c814b41972)

21 years agoAdded "unknown info level".
Jeremy Allison [Wed, 9 Oct 2002 22:50:10 +0000 (22:50 +0000)]
Added "unknown info level".
Jeremy.
(This used to be commit afecd1aa52b98f123b226ff172d5ef5768cbb44f)

21 years agoUse memmove when copies can overlap. Spotted by SUGIOKA Toshinobu <sugioka@itonet...
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.
(This used to be commit 71768c488e9b498e8cc77a1cfce0fab873e36068)

21 years agoprint job properties fix from APP_HEAD. a null devmode is not a failure.
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.
(This used to be commit b507dba452ecbd96ec95242f761501d0c5e0d7b5)

21 years agoremoved stat() call in lp_add_home()
Gerald Carter [Wed, 9 Oct 2002 17:44:02 +0000 (17:44 +0000)]
removed stat() call in  lp_add_home()
(This used to be commit 07c7048aa4ef37f1b7af228ede391ab16503d9a1)

21 years agoadd_printer_hook() fix from APP_HEAD
Gerald Carter [Wed, 9 Oct 2002 17:00:04 +0000 (17:00 +0000)]
add_printer_hook() fix from APP_HEAD
(This used to be commit 94201672a5c3cffd145e9f04a3ddd0d17a57e73b)

21 years agoDistclean should remove scripts/findsmb (patch from metze)
Jelmer Vernooij [Wed, 9 Oct 2002 12:01:24 +0000 (12:01 +0000)]
Distclean should remove scripts/findsmb (patch from metze)
(This used to be commit e2f9ac5032895f9087707cd9e690fcaf9647562a)

21 years agomerge from APP_HEAD
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
(This used to be commit 764b58e2c0b3179cffe157c0ab58761b156b8423)

21 years agoEnsure we register the 1c name on the unicast subnet.
Jeremy Allison [Tue, 8 Oct 2002 18:24:12 +0000 (18:24 +0000)]
Ensure we register the 1c name on the unicast subnet.
Jeremy.
(This used to be commit ca6146c2d345902446665ebfa88f78a06eb58831)

21 years agoThird part of my fix for usrmgr. Assuming automagic mapping
Volker Lendecke [Tue, 8 Oct 2002 15:29:13 +0000 (15:29 +0000)]
Third part of my fix for usrmgr. Assuming automagic mapping
only in parts of srv_samr_nt is not good.

This is soo broken. :-)

Volker
(This used to be commit 74e4a3479f380b320daa0d46c0ba4daa9f98c18f)

21 years agoFix based on Jim McDonough's code for ACL inheritance problem.
Jeremy Allison [Tue, 8 Oct 2002 00:19:56 +0000 (00:19 +0000)]
Fix based on Jim McDonough's code for ACL inheritance problem.
Jeremy.
(This used to be commit a6b3acfc7b98066de6f4b0b6044772a4d56795cd)

21 years agoFix John's little typo ...
Richard Sharpe [Mon, 7 Oct 2002 21:37:37 +0000 (21:37 +0000)]
Fix John's little typo ...
(This used to be commit 0c8e8a162092aa20a70cadf570f14183ac83c175)

21 years agoFix ability to locate if we are a WINS client.
John Terpstra [Mon, 7 Oct 2002 18:48:57 +0000 (18:48 +0000)]
Fix ability to locate if we are a WINS client.
(This used to be commit f896232cffb398ff4fef0b39966b55a049173c60)

21 years agoFix from Andreas Gruenbacher <agruen@suse.de> to prevent ACL set on read-only
Jeremy Allison [Mon, 7 Oct 2002 18:06:17 +0000 (18:06 +0000)]
Fix from Andreas Gruenbacher <agruen@suse.de> to prevent ACL set on read-only
share.
Jeremy.
(This used to be commit 80d30dbfec03d1d1e82c9e177ff66aa44b4ea993)

21 years agoforgot some bits from previous rpc_secdesc.h rework patch
Simo Sorce [Mon, 7 Oct 2002 15:51:21 +0000 (15:51 +0000)]
forgot some bits from previous rpc_secdesc.h rework patch
(This used to be commit 738b9237eda8fdb8adb534ab1a84070923f352f1)

21 years agotry to put every security descriptors related definitions in the same file.
Simo Sorce [Sun, 6 Oct 2002 23:53:34 +0000 (23:53 +0000)]
try to put every security descriptors related definitions in the same file.
also try to uniform names to a clean scheme.

first part.
(This used to be commit a123e05877caf90c28980be2d84b1d0b46e4fd21)

21 years agoFix a small mistake.
Richard Sharpe [Sat, 5 Oct 2002 20:29:59 +0000 (20:29 +0000)]
Fix a small mistake.
(This used to be commit 12c49861fd21fb57ba38537c73a6576ca034913a)

21 years agoUpdate popt help message and use popt-common
Jelmer Vernooij [Sat, 5 Oct 2002 16:45:54 +0000 (16:45 +0000)]
Update popt help message and use popt-common
(This used to be commit 821b27037b991e143b87f0f1c7186c9a403376f0)

21 years agoDon't use usage function, but use popt for usage and help info
Jelmer Vernooij [Sat, 5 Oct 2002 16:10:36 +0000 (16:10 +0000)]
Don't use usage function, but use popt for usage and help info
(This used to be commit a0e0f3b293a71ee6a7bb0edb626c5e16cb803830)

21 years agomissing prs_align()'s
Gerald Carter [Sat, 5 Oct 2002 13:20:06 +0000 (13:20 +0000)]
missing prs_align()'s
(This used to be commit f149a5a54722fe05c8e30cb217cc72cec6f34e18)