Günther Deschner
ddbda92f87
spoolss: disable GetPrinterDriver level 101 (as called by XP).
...
We still dont get the marshalling right, disable and XP will just fall back to
level 6.
Guenther
2010-02-15 11:17:29 +01:00
Günther Deschner
72f250ac16
s4-smbtorture: add some security descriptor tests to RPC-SPOOLSS and RPC-SPOOLSS-PRINTER.
...
Guenther
2010-02-15 11:08:16 +01:00
Matthias Dieter Wallnöfer
28bd9719e5
s4:provision.c - "provsion_store_self_join" - don't set the realm if it's NULL
...
The realm can be NULL when this function is called by "libnet_Join_primary_domain".
This seems to be a valid value since "libnet_JoinDomain" is allowed to return an
empty realm if we are not in a ADS domain.
2010-02-15 10:33:35 +01:00
Andrew Tridgell
05425fcf14
s4-drs: replace manual checks with dsdb_modify_permissive()
...
Much simpler to use the permissive control instead of manually munging
the SPN list.
2010-02-15 18:58:40 +11:00
Andrew Tridgell
2908f21c65
s4-drs: use a permissive modify in addentry
...
It is not an error if entries already exist.
2010-02-15 18:58:40 +11:00
Andrew Tridgell
4694b4677a
s4-dsdb: added dsdb_modify_permissive()
...
This will be used in the drsuapi server
2010-02-15 18:58:40 +11:00
Holger Hetterich
6ec6fa0ac4
s3: eventlogadm.c: add -s option to use alternative config file.
...
Update the manpage accordingly.
2010-02-15 08:31:44 +01:00
Peter Watkins
d3a42946cc
s3: Fix initgroups return check
...
A return code of 1 from initgroups() is OK since apparently it means
the gid has already been set. The man page doesn't mention this.
2010-02-14 12:45:04 +01:00
Matthias Dieter Wallnöfer
05b6e3f4f4
s4:dcesrv_lsa.c - remove a superfluous empty line
...
One empty line is enough for code part divisions.
2010-02-14 10:48:13 +01:00
Andrew Tridgell
eb5fc899b0
s4-rpcserver: teach the rpc server to cope with bad sig_size estimates
2010-02-14 18:44:21 +11:00
Andrew Tridgell
259129e8f4
a4-dcerpc: another attempt at dcerpc auth padding
...
The last change broke net vampire against w2k8r2
2010-02-14 18:44:21 +11:00
Andrew Tridgell
ccfa40fdc3
util: update three other copies of our dlinklist.h macros
...
ldb and tevent have their own copies of these macros. This brings them
in sync with the master copy of dlinklist.h
2010-02-14 18:44:21 +11:00
Andrew Tridgell
862a17e9ba
s3: last part of TYPESAFE_QSORT() conversion
...
convert smbcacls, sharesec and web/
2010-02-14 18:44:21 +11:00
Andrew Tridgell
3f0898a9f5
s3-smbd: convert lanman and notify code to TYPESAFE_QSORT()
2010-02-14 18:44:21 +11:00
Andrew Tridgell
bc5d203eeb
s3-rpc: convert wkssvc to use TYPESAFE_QSORT()
2010-02-14 18:44:21 +11:00
Andrew Tridgell
93a3359729
s3-locking: convert brlock to TYPESAFE_QSORT()
2010-02-14 18:44:21 +11:00
Andrew Tridgell
7cff685c7e
s3: convert registry and printing code to TYPESAFE_QSORT()
2010-02-14 18:44:21 +11:00
Andrew Tridgell
c804102d0f
s3-nmbd: note TODO item for qsort
...
This uses another char* cast hack. Left alone for now.
2010-02-14 18:44:21 +11:00
Andrew Tridgell
95e26884a8
s3-vfs: use TYPESAFE_QSORT() in s3 VFS modules
2010-02-14 18:44:20 +11:00
Andrew Tridgell
8120bc2ba9
s3-lib: use TYPESAFE_QSORT() in remaining s3 library code
...
the sort_query_replies() in nmblib.c is a TODO. It uses a hack that
treats a char* as a structure. I've left that one alone for now.
2010-02-14 18:44:20 +11:00
Andrew Tridgell
7347ca359d
s3-libsmb: use TYPESAFE_QSORT() in namequery code
...
This one was a bit trickier. I'd appreciate it if someone else can
look over this.
2010-02-14 18:44:20 +11:00
Andrew Tridgell
007f24f29d
s3-lib: use TYPESAFE_QSORT() in s3 interfaces code
2010-02-14 18:44:20 +11:00
Andrew Tridgell
76a7382346
lib: use TYPESAFE_QSORT() in lib/ and libcli/
2010-02-14 18:44:20 +11:00
Andrew Tridgell
cebbc9a6f1
s3-includes: enable TYPESAFE_QSORT() in s3
2010-02-14 18:44:20 +11:00
Andrew Tridgell
282cc79454
s4-ldb: use TYPESAFE_QSORT() in the rest of the ldb code
2010-02-14 18:44:20 +11:00
Matthias Dieter Wallnöfer
0c39fbc94e
s4:loadparm.c - prevent memory leaks
...
If a "logfile" was already set, free the content up before setting a new
location. This can happen on a loadparm reload.
2010-02-13 20:05:22 +01:00
Matthias Dieter Wallnöfer
195bda569e
s4:loadparm.c - the logfile parameter value needs to be duplicated
...
Otherwise the "logfile" pointer tracks all changes of "pszParmValue" which
content is only temporal. This was the cause of bug #6212 .
2010-02-13 19:41:43 +01:00
Matthias Dieter Wallnöfer
3598409951
s4:popt_common.c - fix intendation
2010-02-13 19:19:02 +01:00
Matthias Dieter Wallnöfer
415c615dbf
s4:util.c - Corrected the location of the "Directory Service" object
...
I wonder why nobody noticed this since for sure this "tombstone" functionality
was broken till now.
2010-02-13 18:24:45 +01:00
Matthias Dieter Wallnöfer
eed65ed337
s4:server.c - use always "return" instead of "exit" in the "binary_smbd_main" function
...
Just to be consistent - no functional change
2010-02-13 18:24:07 +01:00
Kai Blin
9848086aa8
libwbclient: Fix s4 build failure by fixing up includes.
...
Sorry about this, folks.
2010-02-13 17:55:01 +01:00
Volker Lendecke
b00d223f87
s3: Fix Coverity ID 629: DEADCODE
...
We have already returned if (argc < 1) above
2010-02-13 17:47:43 +01:00
Volker Lendecke
2ea2d2a81e
s3: Fix bug 5198 -- parse chfn(1)-change gecos field
2010-02-13 17:23:43 +01:00
Volker Lendecke
271a4c60db
s3: Fix typo found by jhell <jhell@DataIX.net>
2010-02-13 16:39:08 +01:00
Kai Blin
b99d9f86e4
libwbclient: Separate out the async functions
2010-02-13 14:30:36 +01:00
Volker Lendecke
613777e6dc
s3: Remove unused comparison fn from "struct sorted_tree"
2010-02-13 13:26:11 +01:00
Volker Lendecke
3ab78e31f0
s3: Make adt_tree data definitions private to adt_tree.c
2010-02-13 13:26:11 +01:00
Volker Lendecke
2260732084
s3: SORTED_TREE -> struct sorted_tree
2010-02-13 13:26:11 +01:00
Volker Lendecke
ceebed6ce1
s3: TREE_NODE -> struct tree_node
2010-02-13 13:26:10 +01:00
Volker Lendecke
65b26ba985
s3: Fix some nonempty blank lines
2010-02-13 13:26:10 +01:00
Volker Lendecke
e371317686
use ZERO_STRUCT
2010-02-13 13:25:32 +01:00
Volker Lendecke
95ca53f3e0
Use ZERO_STRUCTP
2010-02-13 13:25:17 +01:00
Volker Lendecke
1a995ab51e
s3: Fix a typo
2010-02-13 13:25:03 +01:00
Volker Lendecke
ece99c763a
s3: Fix a C++ warning
2010-02-13 13:24:59 +01:00
Andrew Tridgell
f69135e0e9
s4-smbd: fix crash in notify code on client termination
...
We need to free the lp_ctx after we free the event context, otherwise
the teardown code in the notify backend dies when it tries to use the
iconv_convenience ptr
Fixes bug 7053
2010-02-13 23:12:29 +11:00
Andrew Tridgell
da86f08605
s4-rpc: be more careful about DCERPC auth padding
...
Cope with a wider range of auth padding in dcerpc bind_ack and
alter_context packets. We now use a helper function that calculates
the right auth padding.
2010-02-13 23:12:29 +11:00
Andrew Tridgell
3ae75a4248
s4: use LDB_TYPESAFE_QSORT() instead of ldb_qsort()
2010-02-13 22:36:12 +11:00
Andrew Tridgell
46dfa9dfbd
s4-ldb: added LDB_TYPESAFE_QSORT()
...
Like TYPESAFE_QSORT() but for the ldb_qsort() function
2010-02-13 22:36:12 +11:00
Andrew Tridgell
1da87fc988
s4-wrepl: use TYPESAFE_QSORT() in wins repl code
2010-02-13 22:36:12 +11:00
Andrew Tridgell
700f464951
s4-torture: use TYPESAFE_QSORT() in smbtorture
2010-02-13 22:36:12 +11:00