1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

1017 Commits

Author SHA1 Message Date
Jeremy Allison
30d1059b7a Merge of Andrew Bartlett's SID limit fix from HEAD.
Jeremy.
(This used to be commit 98ed7e0cbb)
2003-03-13 00:50:04 +00:00
Jeremy Allison
52d1dd46d2 Fix const warning.
Jeremy.
(This used to be commit dedc18212a)
2003-03-03 19:56:57 +00:00
Gerald Carter
cc7f40f4b7 * always report ourselves as a Windows 2000 print server (even
without ADS support)
* add "MinorVersion" print server data key and comment on "OSVersion"
(This used to be commit e138336816)
2003-03-03 17:32:55 +00:00
Gerald Carter
d95f1e4260 * CR1868: only send a change notify message if we have something
that changed that the client is monitoring.

* couple of comments abnout how we need to validate driver names
  on SetPrinter() and AddPrinter()

* up the debug level on some overly verbose dev mode parsing messages
(This used to be commit e8939165b7)
2003-03-03 16:32:03 +00:00
Jeremy Allison
ba3ccc2928 Added limit to number of jobs enumerated. Set to 0 (means no limit).
Yes I will add the docs....
Jeremy.
(This used to be commit e1b0001c8d)
2003-03-01 02:39:12 +00:00
Gerald Carter
0d30cdf66c additional fix for CR 601
* distinguish WinXP from Win2k
  * add a 1/3 of a second delay in OpenPrinter
    in order to trigger a LAN/WAN optimization in
    2k clients.
(This used to be commit c7712fa054)
2003-02-27 21:22:36 +00:00
Gerald Carter
23b3b29eec Progress on CR 601
cache the printer_info_2 with the open printer handle.
cache is invalidated on a mod_a_printer() call **on that smbd**.

Yes, this means that the window for admins to step on each other
from different clients just got larger, but since handles a generally
short lived this is probably ok.
(This used to be commit 31272d3b6b)
2003-02-25 20:53:53 +00:00
Andrew Bartlett
e72ecdc862 Merge of server-side authentication changes to 3.0:
- user_ok() and user_in_group() now take a list of groups, instead of
   looking for the user in the members of all groups.

 - The 'server_info' returned from the authentication is now kept around
  - in future we won't copy the sesion key, username etc, we will just
    referece them directly.

 - rhosts upgraded to use the SAM if possible, otherwise fake up based on
   getpwnam().

 - auth_util code to deal with groups upgraded to deal with non-winbind domain
   members again.

Andrew Bartlett
(This used to be commit 74b5436c75)
2003-02-24 02:35:54 +00:00
Gerald Carter
01490bc0d2 s/unistr2_to_dos/unistr2_to_ascii/ to fix compile
(This used to be commit de6a2d154e)
2003-02-21 19:02:07 +00:00
Gerald Carter
380635538b couple of merges from APP_HEAD
* performance optimization in enumprinterdataex() when keyname is empty
  * fix a few typos in comments
  * reload services after addprinter_command()

dump registry data in ascii when the key is REG_SZ or REG_MULTI_SZ
(This used to be commit 3fc90ea1d9)
2003-02-21 17:04:01 +00:00
Gerald Carter
ac30e445ba set the various DsSpooler keys that are linked to PRINTER_INFO_2 fields; CR 985
(This used to be commit 9efaef4a96)
2003-02-18 03:42:34 +00:00
Gerald Carter
940fcdf095 * set PRINTER_ATTRIBUTE_RAW_ONLY; CR 1736
* never save a pointer to an automatic variable (they go away)
  implement a deep copy for SPOOLSS_NOTIFY_MSG to correct
  messages being sent that have junk for strings;
  fix in response to changes for CR 1504
(This used to be commit ffda9e2480)
2003-02-15 23:33:30 +00:00
Jeremy Allison
8fc1f1aead Ensure that only parse_prs.c access internal members of the prs_struct.
Needed to move to disk based i/o later.
Jeremy.
(This used to be commit a823fee5b4)
2003-02-14 22:55:46 +00:00
Jim McDonough
49d3f7bc81 merge from HEAD - enable dynamic RPC modules
(This used to be commit d9c485b010)
2003-02-14 00:48:28 +00:00
Jeremy Allison
02da4c7944 Removed unused variable.
Jeremy.
(This used to be commit a29f1aa85f)
2003-02-13 19:49:28 +00:00
Jeremy Allison
0ab1705cbc Merge JohnR's patch.
Removed extra copy of server name in the printername field (it was
mangling the the name to be \\server\\\server\printer ... yes, there
were 3 backslashes) reported by get & enum jobs level 2.
Jeremy.
(This used to be commit 2d63f3a13d)
2003-02-13 06:51:51 +00:00
Jeremy Allison
7d854ebcc6 Fixed type.
Jeremy.
(This used to be commit 76c3ccf6ed)
2003-02-05 22:09:06 +00:00
Andrew Bartlett
3719bfd1a0 Merge from HEAD: Send the session key to the client, allowing it to perform SMB
signing.

Andrew Bartlett
(This used to be commit 9bcdb869e5)
2003-02-02 05:22:37 +00:00
Gerald Carter
2d12fa4294 don't free() auto variables; fixes segfault when looking up RefusePasswordChange registry value
(This used to be commit b3fc458e9e)
2003-01-21 03:42:26 +00:00
Gerald Carter
dd99a6a816 strip any trailing \'s from reg key names in an open
(This used to be commit d13f727c4b)
2003-01-19 05:04:03 +00:00
Gerald Carter
d7478da11d removing extra debug statement
(This used to be commit 1244ef3dbe)
2003-01-18 01:40:29 +00:00
Jeremy Allison
2b79854f06 Fix reference count bug where smbd's would not terminate with no
open resources.
Jeremy.
(This used to be commit b7e5a2c547)
2003-01-17 06:34:22 +00:00
Gerald Carter
99cdb46208 *lots of small merges form HEAD
*sync up configure.in
*don't build torture tools in make all
*make sure to remove torture tools as part of make clean
(This used to be commit 0fb724b321)
2003-01-15 18:57:41 +00:00
Gerald Carter
4242eda183 merging some rpcclient and net functionality from HEAD
(This used to be commit 7a4c874842)
2003-01-15 17:22:48 +00:00
Andrew Bartlett
27b7e51a3c Merge from HEAD:
- fstring/pstring mixups
 - the detection code that found them (disabled)
 - a bit of whitespace
 - a static

Andrew Bartlett
(This used to be commit 9b70fa868e)
2003-01-14 08:53:59 +00:00
Gerald Carter
071af8f007 [merge] make sure to update print queue cache during timeout_processing() to send notify events; CR 1491
(This used to be commit f8a915b14d)
2003-01-11 02:38:36 +00:00
Gerald Carter
d221b11bc6 a 0 length printer data value is not a memory allocation error; fix CR601
(This used to be commit 47c1709425)
2003-01-09 19:49:14 +00:00
Andrew Bartlett
4eb59f56f1 The last of the merge of idra's shutdown changes from head...
Andrew Bartlett
(This used to be commit 3b24da8f99)
2003-01-04 14:00:17 +00:00
Andrew Bartlett
302bffc08f Merge from HEAD - we already have one function for converting a unistr2 to a
static 'unix' string, so we don't need a second pdb specific version.

Andrew Bartlett
(This used to be commit 91ca4771c6)
2003-01-04 08:57:51 +00:00
Andrew Bartlett
3bc3fabee2 Merge from HEAD - extract user's list of SIDs from their NT_TOKEN and return
this as thier list of groups, rather than do a seperate lookup.  This NT_TOKEN
is originally initgroups() (or equiv) based.

We currently send all sids in our domain, perhaps this should be further
restricted, but this works for now.

Andrew Bartlett
(This used to be commit f5850928a0)
2003-01-04 08:54:43 +00:00
Andrew Bartlett
e3ed8eaa2f Merge from HEAD - move user password changes into the NTSTATUS era, and add
suppport for the 'min password age' and 'min passwd len' concepts.
(This used to be commit d9417b08d1)
2003-01-04 08:45:17 +00:00
Andrew Bartlett
5714c1e0b0 Fix another pstring/fstring typo
(This used to be commit 42e1af2008)
2003-01-04 06:15:24 +00:00
Andrew Bartlett
634c54310c Merge from HEAD - make Samba compile with -Wwrite-strings without additional
warnings.  (Adds a lot of const).

Andrew Bartlett
(This used to be commit 3a7458f947)
2003-01-03 08:28:12 +00:00
Jeremy Allison
ef8bd7c4f7 Forward port the change to talloc_init() to make all talloc contexts
named. Ensure we can query them.
Jeremy.
(This used to be commit 09a218a9f6)
2002-12-20 20:21:31 +00:00
Tim Potter
4ae77aa17c Whitespace syncup.
(This used to be commit 7a4a2cb8e8)
2002-12-20 01:29:08 +00:00
Gerald Carter
1c318819cc * fix memory leak when constructing an driver_level_6 structure
and no dependent files (working on smbd memory leak).  No CR# yet.
(This used to be commit 416fd947da)
2002-12-17 21:36:31 +00:00
Jim McDonough
f201af1925 Store printer guid in the dsspooler registry key so we don't have to
query the directory server every time someone asks
(This used to be commit dd81003bdd)
2002-12-13 21:56:34 +00:00
Jim McDonough
81a2a30739 More printer publishing code.
- Add published attribute to info2, needed for win clients to work properly
- Return proper info on getprinter 7

This means you can now look at the sharing tab of a printer and get correct
info about whether it is published or not, and change it.
(This used to be commit d57bddc9b2)
2002-12-13 19:01:27 +00:00
Jim McDonough
dae62a3d2e Automatic printer publishing when using APW or choosing 'list in the directory' in printer settings. Currently very little is published, and you cannot unpublish because of a bug in win2k clients.
(This used to be commit ca6360e8db)
2002-12-04 17:40:50 +00:00
Gerald Carter
a850e90080 [merge from app_head]
XP sends GetPrinterData("ChangeId"). So we now respond accordingly.
Possible fix for CR 1147.
(This used to be commit 9424a3b1d1)
2002-12-04 01:15:50 +00:00
Tim Potter
f3e3a56ea9 Merge a bunch of trivial changes from HEAD. The difference remaining
should actual functional differences between HEAD and 3.0.

 - Mostly reformatting
 - Removal of unecessary #include "smb.h"
 - Merge of dyn_DRIVERFILE removal
 - Silly bug fix for python code
(This used to be commit d3998307ad)
2002-11-29 02:58:59 +00:00
Andrew Tridgell
91b7ac9fb9 merged the %U changes to 3.0
(This used to be commit 58fa6bfee8)
2002-11-20 00:53:24 +00:00
Jeremy Allison
2f194322d4 Removed global_myworkgroup, global_myname, global_myscope. Added liberal
dashes of const. This is a rather large check-in, some things may break.
It does compile though :-).
Jeremy.
(This used to be commit f755711df8)
2002-11-12 23:20:50 +00:00
Gerald Carter
9b62172031 fix for CR 601. Only call addprinter command when the port, driver, comment, or location field changed
(This used to be commit 62a19247d3)
2002-11-11 22:05:32 +00:00
Jeremy Allison
fc2dc328e1 First cut of fix for changenotify on a print server handle. Use the connections tdb
with an snum of -1 and a special printername.
Jeremy.
(This used to be commit 06b0438007)
2002-11-10 22:24:00 +00:00
Gerald Carter
cda79e5d36 deldriver fix
(This used to be commit 78ff2cc34a)
2002-11-09 14:49:26 +00:00
Gerald Carter
2d08c914d7 re-enable ffpcn on print server handle
(This used to be commit 47a0c68fa9)
2002-11-09 05:42:37 +00:00
Andrew Bartlett
c19598f2a6 Merge from HEAD:
- change auth_sam to use the initialisation flags to determine if
	 the password attributes are set

 - add const to secrets.c, cliconnect.c

 - passdb:  fix spelling in pdb_ldap, add group mapping back to smbpasswd

 - SAMR: add debugs to show what fails for group enum.

Andrew Bartlett
(This used to be commit 4e74d00b36)
2002-11-08 23:08:59 +00:00
Jeremy Allison
9304248788 Merge of scalable printing code fix... Needs testing.
Jeremy.
(This used to be commit d030df7643)
2002-11-07 02:15:35 +00:00
Simo Sorce
d12baf7bf7 port sec_desc headers reordering from HEAD.
Thanks to Andrew Brtlet for the diff :-)
(This used to be commit cf67981e73)
2002-11-02 12:53:13 +00:00