1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00
Commit Graph

4003 Commits

Author SHA1 Message Date
Jeremy Allison
4339e20202 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.
0001-01-01 00:00:00 +00:00
Gerald Carter
3d0ecea18d update for new pdbedit tool (code from Simo)
--jerry
0001-01-01 00:00:00 +00:00
Gerald Carter
29b3ac8634 updates to the tdbsam implementation.
--jerry
0001-01-01 00:00:00 +00:00
Gerald Carter
fc43c63f48 added passdb editor (rough form with a few bugs) Should work
with all backends.


--jerry
0001-01-01 00:00:00 +00:00
Tim Potter
447fbb38a8 Print debug if domain_client_validate() cannot fetch the trust account
password (say for example if the tdb file format has changed).  (-:
0001-01-01 00:00:00 +00:00
Tim Potter
746e03dce8 make proto again 0001-01-01 00:00:00 +00:00
Tim Potter
2c9704c3db tdb_chainunlock() no longer returns a value. 0001-01-01 00:00:00 +00:00
Tim Potter
6553f1d027 Fixed compiler warning. 0001-01-01 00:00:00 +00:00
Tim Potter
aee52c7acf tdb_unlockchain() no longer returns a value 0001-01-01 00:00:00 +00:00
Jeremy Allison
8359375bba Make smbd/posix_acls.c use abstract interface.
include/smb_acls.h lib/sysacls.c: Added as interface definitions.
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
644aa834e5 Update required after changes to configure.in 0001-01-01 00:00:00 +00:00
Tim Potter
5e81151e53 Fixed compiler warning. 0001-01-01 00:00:00 +00:00
Jeremy Allison
b27cac7762 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.
0001-01-01 00:00:00 +00:00
Jeremy Allison
fe730614d7 Sync-up with appliance-head printing code.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
9dea7b7c25 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.
0001-01-01 00:00:00 +00:00
Jeremy Allison
c9884e16fc Fixed one tdb_read -> rec_free_read call.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
7ae54a93e7 Added sorted freelist neighbour merge code to stop tdb fragmentation.
This needs TESTING !!! (It passes tdbtest of course :-).
Jeremy.
0001-01-01 00:00:00 +00:00
David O'Neill
80c192244f Remove C++ style comments 0001-01-01 00:00:00 +00:00
Andrew Tridgell
c9e4dea1cb fixed a typo 0001-01-01 00:00:00 +00:00
Andrew Tridgell
032442802f added a comment 0001-01-01 00:00:00 +00:00
Andrew Tridgell
374d08be64 fixed the parsing again and got setting acls working with w2k 0001-01-01 00:00:00 +00:00
Andrew Tridgell
a2d07994e0 pass the desired access into cli_nt_create() 0001-01-01 00:00:00 +00:00
Tim Potter
faaa71a032 Added some cli_errstr() calls. 0001-01-01 00:00:00 +00:00
Tim Potter
ee6f5a9672 Removed lsa lookup warnings (I'll remember).
Print an error if -M refers to a non-existent ACL.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
117956ecb1 fixed setting ACLs on directories 0001-01-01 00:00:00 +00:00
Andrew Tridgell
b7a1c00bed fixed indentation 0001-01-01 00:00:00 +00:00
Tim Potter
8a20318c56 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.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
52b27d75e1 removed SACL support (as it doesn't work with w2k if you ask for
SACLs)
0001-01-01 00:00:00 +00:00
Andrew Tridgell
bac1c76f03 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
0001-01-01 00:00:00 +00:00
Andrew Tridgell
71adecd163 signed/unsigned warning fixed 0001-01-01 00:00:00 +00:00
Andrew Tridgell
8b3c1f4455 c++ style comments are NOT allowed 0001-01-01 00:00:00 +00:00
Andrew Tridgell
44524958ed fixed acls set bug 0001-01-01 00:00:00 +00:00
Andrew Tridgell
27c676cb3b new proto 0001-01-01 00:00:00 +00:00
Andrew Tridgell
9ec4b1fa48 no longer pass the type to make_sec_desc(), instead the type is
derived from the other arguments
0001-01-01 00:00:00 +00:00
Andrew Tridgell
077ee4a7ac fixed SACL bug 0001-01-01 00:00:00 +00:00
Andrew Tridgell
1e0d5f0695 - with -D only delete first match
- fixed delete bug
0001-01-01 00:00:00 +00:00
Andrew Tridgell
cb324b53c6 - added help
- added add/modify/delete/set as separate operations
0001-01-01 00:00:00 +00:00
Andrew Tridgell
0a990f02d0 new protos 0001-01-01 00:00:00 +00:00
Andrew Tridgell
f8dbd2b799 cleaner parsing and default handling 0001-01-01 00:00:00 +00:00
Andrew Tridgell
f9f14a4293 changed an error message 0001-01-01 00:00:00 +00:00
Andrew Tridgell
fd4c03aef6 - better parsing
- started to add non-numeric support
0001-01-01 00:00:00 +00:00
Andrew Tridgell
6cea1647fc getting/setting acls now works. The SIDs are still numeric, the next
step is to support usernames etc
0001-01-01 00:00:00 +00:00
Andrew Tridgell
c6c90dc8e1 added basic ability to dump remote file acls 0001-01-01 00:00:00 +00:00
Andrew Tridgell
976b9f6264 make sure we don't duplicate object files 0001-01-01 00:00:00 +00:00
Andrew Tridgell
2f21a0b100 new proto 0001-01-01 00:00:00 +00:00
Andrew Tridgell
f2f9859b70 a prootype program for querying/setting a security decsriptor on a
remote machine

it is by no means complete, expect more commits soon
0001-01-01 00:00:00 +00:00
Andrew Tridgell
e21994ff9d - added client support for nttrans calls
- added a cli_ function for querying a security descriptor on a remote file
0001-01-01 00:00:00 +00:00
Andrew Tridgell
3420b52da5 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
0001-01-01 00:00:00 +00:00
Jeremy Allison
ee89ca9e68 Added print_freelist command.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
b64e1ae693 change the split threahold for the free list to prevent freelist
fragmentation
0001-01-01 00:00:00 +00:00
Andrew Tridgell
1d63160c75 fixed messaging bug - use strlen() instead of sizeof() in key length 0001-01-01 00:00:00 +00:00
Tim Potter
46007a541c Allow zero length smb.conf files. 0001-01-01 00:00:00 +00:00
Tim Potter
697e8e6de5 Run configure script using dirname of $0. This allows configure.developer
to be run when the build directory != source directory.
0001-01-01 00:00:00 +00:00
Tim Potter
ec74fdc631 Use lp_codepagedir() instead of CODEPAGEDIR when loading the unicode map.
Found by Joseph Cheek <joseph@cheek.com>
0001-01-01 00:00:00 +00:00
Jeremy Allison
52e9311bc2 Code to read & return POSIX ACLs as NT ACLs. Close to test on Linux.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
8f0062b873 Keep syncing up POSIX ACL work...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
bcac4ede76 Work in progress, doesn't compile. Adding the POSIX ACL mapping....
Jeremy.
0001-01-01 00:00:00 +00:00
Jean-François Micouleau
97e3b29356 alignment issues.
I hate that job ...

	J.F.
0001-01-01 00:00:00 +00:00
Jeremy Allison
346f2f9206 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.
0001-01-01 00:00:00 +00:00
Shirish Kalele
04ebcf954c Ran DFS on Linux and found that readlink() on Linux does not append NUL
to the link read. So add a NUL..
0001-01-01 00:00:00 +00:00
Jeremy Allison
8f3332a9ac 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.
0001-01-01 00:00:00 +00:00
Jeremy Allison
349d58fb57 Fixed messaging so main smbd can get lib/message.c messages.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
2a797f9aa2 Removed unnessesary init.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
03453e2ae5 fixed a potential locking deadlock in tdb 0001-01-01 00:00:00 +00:00
Jeremy Allison
a08b08f778 This should fix Office failing to print to "FILE:".
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
cf05709ec3 Tar fixes from Craig Barratt craig@arraycomm.com.
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
37a665002c 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
0001-01-01 00:00:00 +00:00
Jeremy Allison
e041b144b2 Free talloc'ed memory from the main smbd. Patch from Rich Bollinger, Elliott Company
Jeremy.
0001-01-01 00:00:00 +00:00
David O'Neill
684981851f Changes from APPLIANCE_HEAD:
- Add code to test equivalence of private data in NT_DEVICEMODE
0001-01-01 00:00:00 +00:00
Jeremy Allison
0ab6eb01b0 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.
0001-01-01 00:00:00 +00:00
Jeremy Allison
00cd72c385 Don't forget to convert into UNIX character set before calling
winbindd.
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
445fd1dbd8 combined 2 if statments which used the same condition
-- jerry
0001-01-01 00:00:00 +00:00
Gerald Carter
e0a02249d3 make proto 0001-01-01 00:00:00 +00:00
Gerald Carter
4792029a29 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
0001-01-01 00:00:00 +00:00
Jeremy Allison
63cafb34b3 Fix for off-by-one StrnCpy.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
78a1307445 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.
0001-01-01 00:00:00 +00:00
Jeremy Allison
b456274a7b Fix from John Reilly for equivalence tests.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
209e20365e we don't need the separate lp_status() connection records any more 0001-01-01 00:00:00 +00:00
Andrew Tridgell
3575ad1098 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.
0001-01-01 00:00:00 +00:00
Jeremy Allison
eeab4e0290 Fix for memory leak when adding driver.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
5dfae86dab support smbcontrol sending messages to itself (for testing purposes) 0001-01-01 00:00:00 +00:00
Andrew Tridgell
34f0379096 save and restore errno in select 0001-01-01 00:00:00 +00:00
Jeremy Allison
6e18a2aa58 Delete queue on empty.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
245907f2af John Reillys fix for de-registering broadcast names (NT doesn't do this).
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
365c76e39d Fix for incorrect break using wrong offset when updating a form.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
64d38c2410 the duplicate checking code will cause unaligned accesses on non-intel
processors. Fixed.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
30048cff12 use process_exists() not kill(pid, 0) 0001-01-01 00:00:00 +00:00
Jeremy Allison
3aa7995660 Fix for a problem with the new messaging system. If a sender is using the
messaging system as a notification mechanism, and the speed of notification
greatly exceeds the speed of message recovery, then you get a massively (>75Mb)
growing tdb. If the message is a simple notification, then the message is
static, and you only need one of them in transit to a target process at
any one time.
This patch adds a BOOL "allow_duplicates" to the message_send_XX primitives.
If set to False, then before sending a message the sender checks the existing
message queue for a target pid for a duplicate of this message, and doesn't
add to it if one already exists.
Also added code into msgtest.c to test this.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
b8753b92fb Fix for plaintext passwords from Pat Sandfort @ HP.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
f571e1efd0 Fix from Jim McDonough @ IBM for OS/2 clients.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
213cd0b519 Ok - fixed a bug in our levelII oplock code. We need to break a level II on
a byte range lock (write lock only, but Win2k breaks on read lock also so I
do the same) - if you think about why, this is obvious. Also fixed our client
code to do level II oplocks, if requested, and fixed the code where we would
assume the client wanted level II if it advertised itself as being level II
capable - it may not want that.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
b2b59b93ff Uninitialized memory read fixes.
open_file_shared takes a DOS pathname, not a UNIX one.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
d43405bc47 Tuyrn debug timestamps on by default.
Add Tim's lpq race fix.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
cdbd2e9977 Merge from appliance head of JR's changes for driver versioning.
Jeremy.
0001-01-01 00:00:00 +00:00
David O'Neill
92ff07132b - fix "declaration of 'time' shadows global declaration" warning. 0001-01-01 00:00:00 +00:00
David O'Neill
fbcf83140d Changes from APPLIANCE_HEAD:
- merged Tim's vlp (virtual lp) test program.  Enable it with
      -DDEVELOPER or by using ./configure.developer
	  (source/include/smb.h source/configure.developer
	   source/printing/lpq_parse.c source/param/loadparm.c
	   testsuite/printing/.cvsignore testsuite/printing/Makefile.vlp
	   testsuite/printing/vlp.c)
0001-01-01 00:00:00 +00:00
Jeremy Allison
06e71c9f8b printing/nt_printing.c: After long soul searching and making both Andrew and my
life a misery, here is the only possible null driver fix we have found.
		This *SUCKS*.
rpc_server/srv_spoolss_nt.c: Correct printername search. Correct portname reply
						Correct attributes reply. Removal of unused temp variable.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
55c6acce26 Fixed the cut-n-paste bugs in the new passdb backend code that leaked memory.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
38e04c43cc Tims fixes for non-local lookup.
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
0b92d0838e Large commit which restructures the local password storage API.
Currently the only backend which works is smbpasswd (tdb, LDAP, and NIS+)
are broken, but they were somewhat broken before. :)

The following functions implement the storage manipulation interface

/*The following definitions come from  passdb/pdb_smbpasswd.c  */

BOOL pdb_setsampwent (BOOL update);
void pdb_endsampwent (void);
SAM_ACCOUNT* pdb_getsampwent (void);
SAM_ACCOUNT* pdb_getsampwnam (char *username);
SAM_ACCOUNT* pdb_getsampwuid (uid_t uid);
SAM_ACCOUNT* pdb_getsampwrid (uint32 rid);
BOOL pdb_add_sam_account (SAM_ACCOUNT *sampass);
BOOL pdb_update_sam_account (SAM_ACCOUNT *sampass, BOOL override);
BOOL pdb_delete_sam_account (char* username);

There is also a host of pdb_set..() and pdb_get..() functions for
manipulating SAM_ACCOUNT struct members.  Note that the struct
passdb_ops {} has gone away.  Also notice that struct smb_passwd
(formally in smb.h) has been moved to passdb/pdb_smbpasswd.c
and is not accessed outisde of static internal functions in this
file.  All local password searches should make use of the the SAM_ACCOUNT
struct and the previously mentioned functions.

I'll write some documentation for this later.  The next step is to fix
the TDB passdb backend, then work on spliting the backends out into
share libraries, and finally get the LDAP backend going.

What works and may not:

	o domain logons from Win9x 	works
	o domain logons from WinNT 4	works
	o user and group enumeration
		as implemented by Tim	works
	o file and print access		works
	o changing password from
		Win9x & NT		ummm...i'll fix this tonight :)

If I broke anything else, just yell and I'll fix it.  I think it
should be fairly quite.





-- jerry
0001-01-01 00:00:00 +00:00
Tim Potter
600eb0eb00 Fetch authentication info before actually using it. 0001-01-01 00:00:00 +00:00
Jeremy Allison
3be056c71a Merge of Herb's profiling code.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
24d76c5fbd Merge in Herb's changes from 2.2.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
f25b5798b8 Added Tim's changes to lock DB during update.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
98764c5df9 rpc_parse/parse_spoolss.c: Updated comment for old version of W2K.
tdb/tdbutil.c: With varargs uint16 is cast to (int).
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
b17e23a8ff printing/nt_printing.c: use getpwuid not smbgetpwuid. Canonicalize printernames.
printing/printing.c: Insure fix for malloc of zero.
rpc_parse/parse_misc.c: Enusre UNISTR's are zero filled.
rpc_parse/parse_spoolss.c: Correct INFO_6 - differs between pre-releases of W2K and shipping build.
rpc_server/srv_spoolss_nt.c: Canonicalize printernames.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
4d25a53c36 Fix from John E. Malmberg <wb8tyw@qsl.net> for -1 return in interfaces scan.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
c4bb9c598c an attempt to get the handling of fields in printer info structures
consistent. Still working with Jeremy on this, there is probably more
to be done
0001-01-01 00:00:00 +00:00
Tim Potter
87775074b2 Merge fest!!! 0001-01-01 00:00:00 +00:00
Tim Potter
88a2d224f1 make proto 0001-01-01 00:00:00 +00:00
Tim Potter
18fa724a79 More merging of printing stuff from appliance. 0001-01-01 00:00:00 +00:00
Tim Potter
8fe17fd594 Merge of latest round of printing fixes from appliance branch. 0001-01-01 00:00:00 +00:00
Tim Potter
6ced1bb8b9 make proto 0001-01-01 00:00:00 +00:00
Tim Potter
ae087bdf31 Merge of printer security descriptor, info level and printerdata
comparison changes from appliance branch.
0001-01-01 00:00:00 +00:00
Jeremy Allison
9a5471b3e8 64 bit fix from Uros Prestor <uros@turbolinux.com>.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
7a698c1f23 Fix to the "known/unknown user" difference patch from "Ron Alexander" <rcalex@home.com>.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
d0fbb4f5d9 Added a VFS version return to init call. Allows smbd to fail an init if
versions don't match.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
a33c395c98 Merge from Tim - don't reinsert UNIX job if already exists.
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
852de9226d Fix some compiler warnings. 0001-01-01 00:00:00 +00:00
Tim Potter
8e163eac33 Merge of printing improvements/fixes from appliance branch. 0001-01-01 00:00:00 +00:00
Jeremy Allison
f0dcc39d34 Fix for admin user being ignored.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
6b94273fc6 Sync up with Tim's changes in applience-head for SACLs.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
9698f74685 Remove CGI logging code. Make username/password lookups take
the same time.
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
644c78d64a Added a authentication hook to smbwrapper which allows a (username,
workgroup, password) tuple to be provided by another function.
0001-01-01 00:00:00 +00:00
Tim Potter
3ff75e92ad Added smbsh to list of ignored files. 0001-01-01 00:00:00 +00:00
Tim Potter
7712421910 Merge of comment repair. 0001-01-01 00:00:00 +00:00
Jeremy Allison
3d68257850 Only use prs_uint8s on marshalling as we know we're little endian. On
unmarshalling use prs_uint16s. Yes this sucks :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
c96a77957b Fixed double btyte-swap problems with bigendian architectures.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
d5be2334d4 Call standard_sub_advanced() after lp_logon_XX() calls.
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
63e4f62916 proto.h was out of date. 0001-01-01 00:00:00 +00:00
Jeremy Allison
0eb7f2d514 Patches from John Reilly @ HP for print job time bugs.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
06f5da5d4b Another patch to fix cli_reestablish_connection from Kenichi Okuyama@Tokyo Research Lab. IBM-Japan. Co. Jp.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
b809a2d0c8 David Lee's utmp patch (finally). Thanks David !
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
9c2272e056 Fixed silly bug in dup2 code found by Kenichi Okuyama@Tokyo Research Lab. IBM-Japan. Co. Jp.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
4f66eda11e Rolled back find NetBIOS name of PDC/BDC code as a temp fix. This
code works :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
f81a2a03bf Added John Reillys patch for error code returns from clean_up_printer_driver_strunct()
calls.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
521f09829f Sorry JF - no billable hours :-). I fixed the "stream of events" problem
with PCL drivers. The problem was we were updating the changeid on every
SETPRINTERDATA/DELETEPRINTERDATA call. We should not do this, we should
just update the 'setprinter' called count. We update the changeid on calls
to SETPRINTER/ADDPRINTER/ADDPRINTEREX etc. Also fixed the correct returning
of the create time on printers.
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
0435af4417 TDB password backend support written by Simo Sorce <simo.sorce@polimi.it>
Marked as an experimental compile time option (defaults to off) for now.





jerry
0001-01-01 00:00:00 +00:00
Jeremy Allison
4ffda462b9 Even when looking up a users groups via winbindd even if the lookup for
the list of groups a user is in succeeds via winbind, we must allow the
lookup of the group name -> gid we are checking if the user is a member
of to go via winbind or /etc/group - as it may be a group on the local
box we are checking against. This is a subtle one.....
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
c3e4ac9a2d We already have a perfectly good next_token() function we should be using
instead of strtok - this fixes a bug with NT users with spaces in their
names when using winbindd. Needs to be added to the other parse_lpXX functions
(currently only added to lprng parsing code).
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
0fc1a46150 Fix for uidtoname not returning DOMAIN\name but just name. This caused
printer_access_check to break in a domain environment.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
fd17374e6d John Reilly @ HP (who is a wonderful human being and *definately* needs
CVS commit access :-) has written a simple routine that peeks inside the
MS PE printer driver file format and can tell if a driver is W2K or NT4.x.
So we can now correctly return the driver version number. Hurrah !
JF - this is the code you always wanted ..... :-) :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
30bb3f2df9 Removed erroneous +1's on length of unicode domain names for various
functions in the \\lsarpc pipe.
0001-01-01 00:00:00 +00:00
Jeremy Allison
4f5bbc38ce Yeah - not setting getwd_cache to True as default, that'd do it for a 5x
performance hit..... :-) :-).
Jeremy.
PS. Yes this was my fault for everyone who wants to throw rotten fruit...
0001-01-01 00:00:00 +00:00
Jeremy Allison
70cecfefc8 Fixes from David Lee for utmp handling.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
979aa01e01 Fix for vfs_fstat() crash with new stat code.
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
6d39df7cf8 Merge from appliance-head 0001-01-01 00:00:00 +00:00
Tim Potter
9328bc7b8a Fixed missing bracket on debug statement. 0001-01-01 00:00:00 +00:00
Jeremy Allison
66a5c05ec4 Ok - this is a big patch - and it may break smbd a bit (although
I hope not). If you encounter strange file-serving behavior after this
patch then back it out. I analysed our stat() usage and realised we
were doing approx. 3 stat calls per open, and 2 per getattr/setattr.
This patch should fix all that. It causes the stat struct returned
from unix_convert() (which now *must* be passed a valid SMB_STRUCT_STAT
pointer) to be passed through into the open code. This should prevent
the multiple stats that were being done so as not to violate layer
encapsulation in the API's.

Herb - if you could run a NetBench test with this code and do a
padc/par syscall test and also run with the current 2.2.0 code
and test the padc/par syscalls I'd appreciate it - you should
find the number of stat calls reduced - not sure by how much.

The patch depends on unix_convert() actually finding the file
and returning a stat struct, or returning a zero'd out stat
struct if the file didn't exist. I believe we can guarentee this
to be the case - I just wasn't confident enough to make this
an assertion before.

Ok ok - I did write this whilst at the Miami conference.....
sometimes you get a little free time at these things :-).

Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
e40a0e2f52 Removed null user checks to enable lanman print queue pausing and print job
deleting.
0001-01-01 00:00:00 +00:00