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

4441 Commits

Author SHA1 Message Date
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
Gerald Carter
4f76f17a2c added some clarifications.
jerry
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
Tim Potter
7c3518c55e Small change to process of joining a domain with samedit. 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
Tim Potter
9998518a69 Renamed WPrintQueuePurge to WPrintQueueCtrl as this function can purge, pause
or resume a print queue.
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
e2ce5ce0fd Bug report that on some systems extended characters are being returned as
negative values from the mygetc() function.  I've modified the return
line so that it should return values in the 0..255 range for legitimate
characters.

This change should probably be copied into SAMBA_2_2 but I haven't checked
that tree out yet.

Chris -)-----
0001-01-01 00:00:00 +00:00
Tim Potter
c8d88713d9 Merge of rpc parse buffer underflow debug code. 0001-01-01 00:00:00 +00:00
Tim Potter
1b86b9139e Fixes for io_q_setprinter rpc parsing. 0001-01-01 00:00:00 +00:00
Tim Potter
c76dfab559 Added documentation for winbind enum users and winbind enum groups
configuration parameters.
0001-01-01 00:00:00 +00:00
Herb Lewis
192b088a46 get rid of $Revision string - sync with 2.2 branch 0001-01-01 00:00:00 +00:00
Jeremy Allison
d712b5b071 Fixes to get ms-dfs code to compile with the new changes.
Jeremy
0001-01-01 00:00:00 +00:00
Jeremy Allison
e222057140 Added David O'Neills fix to HEAD (hmmm. how did this compile... :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Jean-François Micouleau
d8bf81553c last part of W2K support.
the trust domain list reply on netlogon pipe was wrong, interim hack until
we have full trust relationships.

changed some unistr2 to parse the ending NULL char.

added a prs_align_needed() function. much like a prs_align but with a
condition. needed for the unistr2 parsing.

	J.F.
0001-01-01 00:00:00 +00:00
Tim Potter
7b8c03de1f Fixed merging mess. 0001-01-01 00:00:00 +00:00
Jeremy Allison
5b0038a2af Fix to allow smbd to call winbindd if it is running for all group enumeration,
falling back to the UNIX calls on error. This should fix all problems with
smbd enumerating all users in all groups in all trusted domains via winbindd.
Also changed GETDC to query 1C name rather than 1b name as only the PDC
registers 1b.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
54a1ae815b Fix to allow smbd to call winbindd if it is running for all group enumeration,
falling back to the UNIX calls on error. This should fix all problems with
smbd enumerating all users in all groups in all trusted domains via winbindd.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
580e2e044c Ignore SIGUSR2. Terminate nmbd if we have no interfaces.
Jeremy.
0001-01-01 00:00:00 +00:00
Herb Lewis
f365950e7d allow "master" smbd to call message_init so it is not killed by messages
sent to it's PID

Jeremy or Andrew please check this out for other possible side effects.
0001-01-01 00:00:00 +00:00
Herb Lewis
1ddfec3256 update man page for program changes 0001-01-01 00:00:00 +00:00
Herb Lewis
cda8c04391 lib/messages.c add debug print for receipt of PING and
REQ_DEBUGLEVEL messages
utils/smbcontrol.c      allow "q" to exit interactive mode. Exit on error
                        from message_init.
0001-01-01 00:00:00 +00:00
Herb Lewis
cae5eeb16e use macros for incrementing profile counters 0001-01-01 00:00:00 +00:00
Herb Lewis
45632bb813 print source PID in PONG and debuglevel message. Allow request debuglevel
message to go to any dest. Put timeout for commands that expect a reply.

sync with 2.2 branch
0001-01-01 00:00:00 +00:00
Jeremy Allison
b1cb7bec51 Turns out we do need the pwnam check as on many systems the users
primary group is not listed in the groups file...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
448ff58fd5 Fixed %d printf with unsigned long arg.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
c7c90c8337 Use sys_setgroups - systems with broken getgroups need this.
Jeremy.
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
f09cb41ad8 Simple cleanup, but I also changed the value of the dlevel parameter passed
to open_socket_in() from within the open_sockets() function.  This has some
effect on the way port numbers are assigned.  Basically, if we use the -r
switch we are saying 'use port 137'.  If we can't do that, there should
be an error message and a failure.  If we don't use -r then we simply select
the first available port.  The way it was working, if we selected -r and
port 137 was in use, wierd things would happen as open_socket_in() tried to
find another port.
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
56be7c2a49 Converted to call lib/wins_srv.c:wins_srv_ip() instead of lp_wins_server()
when looking up the WINS server address.

Please *don't* use lp_wins_server() any more!

The wins_srv_ip() function has the following features:

- If the WINS server was entered as a DNS name then the translation to an
  IP address will already have taken place.  We used to do this every time
  a call to the WINS server was made.  Ick.

- The return value of wins_srv_ip() is a struct in_addr.  Ready to go.

- When WINS failover is fully implemented, you'll be able to enter a colon-
  separated list of WINS servers via the WINS SERVER parameter.  Using
  lp_wins_server() directly will fail if this syntax is used.

Chris -)-----
0001-01-01 00:00:00 +00:00
Herb Lewis
8ad653f9eb Try this again on the right machine. Adding files for PCP samba pmda 0001-01-01 00:00:00 +00:00