Jeremy Allison [Thu, 7 Dec 2000 19:26:04 +0000 (19:26 +0000)]
file_lines_load/file_lines_pload can now optionally convert unix_to_dos()
on read.
Jeremy.
Jeremy Allison [Thu, 7 Dec 2000 17:46:11 +0000 (17:46 +0000)]
Fixed bug with tdb_next_lock failing when reaching then end of a hashchain
and the next hashchain is empty.
Jeremy
Jeremy Allison [Thu, 7 Dec 2000 06:23:01 +0000 (06:23 +0000)]
Added better configure test for POSIX ACLs. Fixed stupid typo in sysacls.c
Jeremy.
Tim Potter [Thu, 7 Dec 2000 06:22:03 +0000 (06:22 +0000)]
First cut at a manual page for smbcacls.
Tim Potter [Thu, 7 Dec 2000 06:11:27 +0000 (06:11 +0000)]
Added smbcacls binary.
Tim Potter [Thu, 7 Dec 2000 06:05:57 +0000 (06:05 +0000)]
Added undocumented -t command for testing parsing of acl entries.
Print out hex value for ace mask if we can't decode it.
We can now parse FULL,CHANGE,READ as well as combos of RWXDPO as ace mask
values.
Clarified usage message.
Bomb out if excess args are given.
Jeremy Allison [Thu, 7 Dec 2000 05:38:01 +0000 (05:38 +0000)]
Working code to read POSIX ACLs on a Linux system using the bestbits
ACL patch from http://acl.bestbits.at/.
configure support needs more work (just assumes correct headers at
the moment). ACL writing needs adding.
Jeremy.
Jeremy Allison [Wed, 6 Dec 2000 23:24:31 +0000 (23:24 +0000)]
Cause smbd to use the new posix_acls code, not the old unix_acls code.
Currently does exactly the same thing (returns ACLs the same way). This
code is written to try and get a POSIX ACL via the abstract sys_XX interface,
then fall back to providing a UNIX based ACL if the calls fail. Seems to
work. Next step is to add a --with-posix-acls to configure.in and then
check on a POSIX ACL system that a complex ACL is returned correctly
as an NT ACL. Note that the ACL set (a more complex problem) is not
addressed yet.
Jeremy.
Gerald Carter [Wed, 6 Dec 2000 18:24:10 +0000 (18:24 +0000)]
update for new pdbedit tool (code from Simo)
--jerry
Gerald Carter [Wed, 6 Dec 2000 18:22:29 +0000 (18:22 +0000)]
updates to the tdbsam implementation.
--jerry
Gerald Carter [Wed, 6 Dec 2000 18:18:48 +0000 (18:18 +0000)]
added passdb editor (rough form with a few bugs) Should work
with all backends.
--jerry
Gerald Carter [Wed, 6 Dec 2000 18:16:29 +0000 (18:16 +0000)]
added documentation for 'private dir' parameter
Gerald Carter [Wed, 6 Dec 2000 05:19:16 +0000 (05:19 +0000)]
update to reference new documentation in Imprints
--jerry
Tim Potter [Wed, 6 Dec 2000 03:22:44 +0000 (03:22 +0000)]
Print debug if domain_client_validate() cannot fetch the trust account
password (say for example if the tdb file format has changed). (-:
Tim Potter [Wed, 6 Dec 2000 02:55:08 +0000 (02:55 +0000)]
make proto again
Tim Potter [Wed, 6 Dec 2000 02:53:36 +0000 (02:53 +0000)]
tdb_chainunlock() no longer returns a value.
Tim Potter [Wed, 6 Dec 2000 02:52:54 +0000 (02:52 +0000)]
Fixed compiler warning.
Tim Potter [Wed, 6 Dec 2000 02:51:13 +0000 (02:51 +0000)]
tdb_unlockchain() no longer returns a value
Jeremy Allison [Wed, 6 Dec 2000 02:32:48 +0000 (02:32 +0000)]
Make smbd/posix_acls.c use abstract interface.
include/smb_acls.h lib/sysacls.c: Added as interface definitions.
Jeremy.
Tim Potter [Wed, 6 Dec 2000 01:55:19 +0000 (01:55 +0000)]
Update required after changes to configure.in
Tim Potter [Wed, 6 Dec 2000 01:47:06 +0000 (01:47 +0000)]
Fixed compiler warning.
Jeremy Allison [Wed, 6 Dec 2000 01:34:16 +0000 (01:34 +0000)]
Moving to abstract API interface (sys_get_acl() etc.) to allow system
specific ACL calls to be dealt with elsewhere. This file will eventually
be able to replace the old UNIX acl interface.
Jeremy.
Jeremy Allison [Wed, 6 Dec 2000 00:37:25 +0000 (00:37 +0000)]
Sync-up with appliance-head printing code.
Jeremy.
Jeremy Allison [Wed, 6 Dec 2000 00:05:15 +0000 (00:05 +0000)]
Changed to sourceforge tdb code. This includes spinlocks (so we now have
a --with-spinlocks option to configure, this does mean the on-disk tdb
format has changed, so 2.2alphaX sites will need to re-create their
tdb's. The upside is no more tdb fragmentation and a +5% on netbench.
Swings and roundabouts....
Jeremy.
Jeremy Allison [Tue, 5 Dec 2000 03:44:30 +0000 (03:44 +0000)]
Fixed one tdb_read -> rec_free_read call.
Jeremy.
Jeremy Allison [Tue, 5 Dec 2000 03:12:57 +0000 (03:12 +0000)]
Added sorted freelist neighbour merge code to stop tdb fragmentation.
This needs TESTING !!! (It passes tdbtest of course :-).
Jeremy.
David O'Neill [Mon, 4 Dec 2000 17:16:44 +0000 (17:16 +0000)]
Remove C++ style comments
David O'Neill [Mon, 4 Dec 2000 16:57:17 +0000 (16:57 +0000)]
Changes from APPLIANCE_HEAD:
- clean up yodl doc for the -U changes, update man and html versions
(docs/yodldocs/smbclient.1.yo docs/htmldocs/smbclient.1.html
docs/manpages/smbclient.1)
Andrew Tridgell [Mon, 4 Dec 2000 07:39:22 +0000 (07:39 +0000)]
fixed a typo
Andrew Tridgell [Mon, 4 Dec 2000 07:38:06 +0000 (07:38 +0000)]
added a comment
Andrew Tridgell [Mon, 4 Dec 2000 07:27:35 +0000 (07:27 +0000)]
fixed the parsing again and got setting acls working with w2k
Andrew Tridgell [Mon, 4 Dec 2000 07:26:56 +0000 (07:26 +0000)]
pass the desired access into cli_nt_create()
Tim Potter [Mon, 4 Dec 2000 06:46:52 +0000 (06:46 +0000)]
Added some cli_errstr() calls.
Tim Potter [Mon, 4 Dec 2000 06:43:36 +0000 (06:43 +0000)]
Removed lsa lookup warnings (I'll remember).
Print an error if -M refers to a non-existent ACL.
Andrew Tridgell [Mon, 4 Dec 2000 06:39:31 +0000 (06:39 +0000)]
fixed setting ACLs on directories
Andrew Tridgell [Mon, 4 Dec 2000 06:39:14 +0000 (06:39 +0000)]
fixed indentation
Tim Potter [Mon, 4 Dec 2000 06:14:28 +0000 (06:14 +0000)]
Mask value now displayed as READ/CHANGE/FULL for standard permissions, or
RWXDPO for special permissions.
Append 0x to values printed as hex.
Spruced up the help message.
Andrew Tridgell [Mon, 4 Dec 2000 04:58:40 +0000 (04:58 +0000)]
removed SACL support (as it doesn't work with w2k if you ask for
SACLs)
Andrew Tridgell [Mon, 4 Dec 2000 04:27:53 +0000 (04:27 +0000)]
document -U change
Andrew Tridgell [Mon, 4 Dec 2000 04:26:22 +0000 (04:26 +0000)]
in cli_session_setup() accept usernames of the form DOMAIN/USER or
DOMAIN\USER
this means all our tools can now put the domain name in the -U option
Andrew Tridgell [Mon, 4 Dec 2000 03:27:02 +0000 (03:27 +0000)]
signed/unsigned warning fixed
Andrew Tridgell [Mon, 4 Dec 2000 03:01:31 +0000 (03:01 +0000)]
c++ style comments are NOT allowed
Andrew Tridgell [Mon, 4 Dec 2000 02:01:57 +0000 (02:01 +0000)]
fixed acls set bug
Andrew Tridgell [Mon, 4 Dec 2000 02:01:12 +0000 (02:01 +0000)]
new proto
Andrew Tridgell [Mon, 4 Dec 2000 01:58:22 +0000 (01:58 +0000)]
no longer pass the type to make_sec_desc(), instead the type is
derived from the other arguments
Tim Potter [Mon, 4 Dec 2000 01:52:54 +0000 (01:52 +0000)]
Reformatted to look nicer on 80-character screen.
Replaced 8-bit ascii characters with appropriate 7-bit ones.
Andrew Tridgell [Mon, 4 Dec 2000 00:35:31 +0000 (00:35 +0000)]
fixed SACL bug
Andrew Tridgell [Mon, 4 Dec 2000 00:33:08 +0000 (00:33 +0000)]
- with -D only delete first match
- fixed delete bug
Tim Potter [Mon, 4 Dec 2000 00:07:27 +0000 (00:07 +0000)]
Fixed some debugging code.
Andrew Tridgell [Sun, 3 Dec 2000 12:41:28 +0000 (12:41 +0000)]
- added help
- added add/modify/delete/set as separate operations
Andrew Tridgell [Sun, 3 Dec 2000 11:05:30 +0000 (11:05 +0000)]
new protos
Andrew Tridgell [Sun, 3 Dec 2000 11:05:11 +0000 (11:05 +0000)]
cleaner parsing and default handling
Andrew Tridgell [Sun, 3 Dec 2000 11:04:45 +0000 (11:04 +0000)]
changed an error message
Andrew Tridgell [Sun, 3 Dec 2000 08:35:11 +0000 (08:35 +0000)]
- better parsing
- started to add non-numeric support
Andrew Tridgell [Sun, 3 Dec 2000 07:36:15 +0000 (07:36 +0000)]
getting/setting acls now works. The SIDs are still numeric, the next
step is to support usernames etc
Andrew Tridgell [Sun, 3 Dec 2000 05:24:16 +0000 (05:24 +0000)]
added basic ability to dump remote file acls
Andrew Tridgell [Sun, 3 Dec 2000 05:23:46 +0000 (05:23 +0000)]
make sure we don't duplicate object files
Andrew Tridgell [Sun, 3 Dec 2000 02:20:33 +0000 (02:20 +0000)]
new proto
Andrew Tridgell [Sun, 3 Dec 2000 02:19:27 +0000 (02:19 +0000)]
a prootype program for querying/setting a security decsriptor on a
remote machine
it is by no means complete, expect more commits soon
Andrew Tridgell [Sun, 3 Dec 2000 02:18:14 +0000 (02:18 +0000)]
- added client support for nttrans calls
- added a cli_ function for querying a security descriptor on a remote file
Andrew Tridgell [Sun, 3 Dec 2000 02:15:58 +0000 (02:15 +0000)]
split the RPC_PARSE object into two pieces. The first is included as
part of LIBSMB and the latter is used by parts of samba that know
about the pwd backends
Jeremy Allison [Sat, 2 Dec 2000 01:04:11 +0000 (01:04 +0000)]
Added print_freelist command.
Jeremy.
Andrew Tridgell [Sat, 2 Dec 2000 00:53:03 +0000 (00:53 +0000)]
change the split threahold for the free list to prevent freelist
fragmentation
Andrew Tridgell [Sat, 2 Dec 2000 00:51:50 +0000 (00:51 +0000)]
fixed messaging bug - use strlen() instead of sizeof() in key length
Tim Potter [Fri, 1 Dec 2000 04:10:54 +0000 (04:10 +0000)]
Allow zero length smb.conf files.
Tim Potter [Fri, 1 Dec 2000 01:22:17 +0000 (01:22 +0000)]
Run configure script using dirname of $0. This allows configure.developer
to be run when the build directory != source directory.
Tim Potter [Fri, 1 Dec 2000 01:14:55 +0000 (01:14 +0000)]
Use lp_codepagedir() instead of CODEPAGEDIR when loading the unicode map.
Found by Joseph Cheek <joseph@cheek.com>
Jeremy Allison [Fri, 1 Dec 2000 00:32:25 +0000 (00:32 +0000)]
Code to read & return POSIX ACLs as NT ACLs. Close to test on Linux.
Jeremy.
Jeremy Allison [Thu, 30 Nov 2000 19:31:04 +0000 (19:31 +0000)]
Keep syncing up POSIX ACL work...
Jeremy.
Jeremy Allison [Thu, 30 Nov 2000 01:00:36 +0000 (01:00 +0000)]
Work in progress, doesn't compile. Adding the POSIX ACL mapping....
Jeremy.
Jean-François Micouleau [Wed, 29 Nov 2000 14:39:06 +0000 (14:39 +0000)]
alignment issues.
I hate that job ...
J.F.
David Bannon [Tue, 28 Nov 2000 23:35:03 +0000 (23:35 +0000)]
First Release of the DocBook 'source'.
Jeremy Allison [Tue, 28 Nov 2000 22:17:44 +0000 (22:17 +0000)]
include/dlinklist.h: Added '{' '}' around DLIST_PROMOTE so it can be used as a single
statement after an 'if'. Tracking this down took 4 hours from my life and ANDREW I WANT
THEM BACK !!!!! :-).
include/smb.h smbd/password.c: Fixed the bug veritas reported with realloc of the validated_users
array growing without bounds. This is now a linked list as god (Andrew) intended :-).
Jeremy.
David Bannon [Tue, 28 Nov 2000 06:18:04 +0000 (06:18 +0000)]
PDC docs, made from DocBook source, comments ?
Shirish Kalele [Tue, 28 Nov 2000 00:26:42 +0000 (00:26 +0000)]
Ran DFS on Linux and found that readlink() on Linux does not append NUL
to the link read. So add a NUL..
Jeremy Allison [Mon, 27 Nov 2000 23:59:42 +0000 (23:59 +0000)]
passdb/secrets.c passdb/smbpassfile.c smbd/server.c : Actually *use* the code
written to transition from an old DOMAIN.MACHINE.MAC file to secrets.tdb.
printing/nt_printing.c: Fix case insensitive name lookups for driver files.
John - this should fix the Win9x/WinME problem correctly.
Jeremy.
Jeremy Allison [Mon, 27 Nov 2000 21:37:07 +0000 (21:37 +0000)]
Fixed messaging so main smbd can get lib/message.c messages.
Jeremy.
Jeremy Allison [Mon, 27 Nov 2000 19:14:10 +0000 (19:14 +0000)]
Removed unnessesary init.
Jeremy.
Andrew Tridgell [Mon, 27 Nov 2000 06:35:12 +0000 (06:35 +0000)]
fixed a potential locking deadlock in tdb
Jeremy Allison [Fri, 24 Nov 2000 19:53:38 +0000 (19:53 +0000)]
This should fix Office failing to print to "FILE:".
Jeremy.
Jeremy Allison [Wed, 22 Nov 2000 23:06:29 +0000 (23:06 +0000)]
Tar fixes from Craig Barratt craig@arraycomm.com.
Jeremy.
Gerald Carter [Wed, 22 Nov 2000 19:51:41 +0000 (19:51 +0000)]
o fixed logon script problems (wrong len in reply to net_sam_logon for
a few strings). I was the one who broke it obviously.
o changed a few more defaults in the smbpasswd backend with
respect to times. Now the logon time becomes '0' and the
pass_can_change_time is set ot the same as pass_last_set_time
o change Get_Pwnam() call in local_lookup_name to sys_getpwnam()
as it did not seem necessary to try case permutations in the
username.
Tim, I think this was your code, so you might want to double
check me.
-- jerry
Jeremy Allison [Wed, 22 Nov 2000 19:42:54 +0000 (19:42 +0000)]
Free talloc'ed memory from the main smbd. Patch from Rich Bollinger, Elliott Company
Jeremy.
David O'Neill [Wed, 22 Nov 2000 16:19:07 +0000 (16:19 +0000)]
Changes from APPLIANCE_HEAD:
- Add code to test equivalence of private data in NT_DEVICEMODE
Jeremy Allison [Wed, 22 Nov 2000 01:26:09 +0000 (01:26 +0000)]
ADDPRINTERDRIVER info level 6 fix - this is dynamic depending
on a field in the struct - that's why it was so hard to find.
Jeremy.
Jeremy Allison [Tue, 21 Nov 2000 22:37:03 +0000 (22:37 +0000)]
Don't forget to convert into UNIX character set before calling
winbindd.
Jeremy.
Gerald Carter [Tue, 21 Nov 2000 06:05:08 +0000 (06:05 +0000)]
combined 2 if statments which used the same condition
-- jerry
Gerald Carter [Tue, 21 Nov 2000 06:01:53 +0000 (06:01 +0000)]
make proto
Gerald Carter [Tue, 21 Nov 2000 05:55:16 +0000 (05:55 +0000)]
Another large patch for the passdb rewrite.
o added BOOL own_memory flag in SAM_ACCOUNT so we could
use static memory for string pointer assignment or
allocate a new string
o added a reference TDB passdb backend. This is only a reference
and should not be used in production because
- RID's are generated using the same algorithm as with smbpasswd
- a TDB can only have one key (w/o getting into problems) and we
need three. Therefore the pdb_sam-getpwuid() and
pdb_getsampwrid() functions are interative searches :-(
we need transaction support, multiple indexes, and a nice open
source DBM. The Berkeley DB (from sleepycat.com seems to fit
this criteria now)
o added a new parameter "private dir" as many places in the code were
using lp_smb_passwd_file() and chopping off the filename part.
This makes more sense to me and I will docuement it in the man pages
o Ran through Insure-lite and corrected memory leaks. Need for
a public flogging this time Jeremy (-:
-- jerry
Jeremy Allison [Tue, 21 Nov 2000 02:38:22 +0000 (02:38 +0000)]
Fix for off-by-one StrnCpy.
Jeremy.
Jeremy Allison [Tue, 21 Nov 2000 00:30:15 +0000 (00:30 +0000)]
Fix for updating of print queues changed from a local box. Essentially,
this makes sure that the change messages sent to ourselves are handled
synchronously w.r.t. other smb packets incoming.
Jeremy.
Jeremy Allison [Fri, 17 Nov 2000 23:10:56 +0000 (23:10 +0000)]
Fix from John Reilly for equivalence tests.
Jeremy.
Andrew Tridgell [Fri, 17 Nov 2000 03:31:03 +0000 (03:31 +0000)]
we don't need the separate lp_status() connection records any more
Andrew Tridgell [Fri, 17 Nov 2000 03:15:18 +0000 (03:15 +0000)]
fixed the problem with messages not getting through
the problem had nothing to do with being your own pid, it was instead
a problem with IPC$ connections not being registered in the
connections database and an incorrect test for -1 in the messaging
code.
These changes also mean that IPC$ shares now show up in
smbstatus. That is probably a good thing.
Jeremy Allison [Fri, 17 Nov 2000 02:22:35 +0000 (02:22 +0000)]
Fix for memory leak when adding driver.
Jeremy.
Andrew Tridgell [Fri, 17 Nov 2000 01:20:03 +0000 (01:20 +0000)]
support smbcontrol sending messages to itself (for testing purposes)
Andrew Tridgell [Fri, 17 Nov 2000 01:05:50 +0000 (01:05 +0000)]
save and restore errno in select
Jeremy Allison [Fri, 17 Nov 2000 00:48:02 +0000 (00:48 +0000)]
Delete queue on empty.
Jeremy.
Jeremy Allison [Fri, 17 Nov 2000 00:33:06 +0000 (00:33 +0000)]
John Reillys fix for de-registering broadcast names (NT doesn't do this).
Jeremy.
Jeremy Allison [Fri, 17 Nov 2000 00:31:29 +0000 (00:31 +0000)]
Fix for incorrect break using wrong offset when updating a form.
Jeremy.