ira/wip.git
14 years agos4-rpc: paranoid check for auth_length
Andrew Tridgell [Tue, 16 Feb 2010 23:23:14 +0000 (10:23 +1100)]
s4-rpc: paranoid check for auth_length

This is not strictly needed as the ndr_pull_advance() checks it a few
lines further down, but I want to save Jeremy getting more grey hairs :-)

14 years agotestprogs: add rather simple device mode tests to spoolss test.
Günther Deschner [Tue, 16 Feb 2010 15:12:52 +0000 (16:12 +0100)]
testprogs: add rather simple device mode tests to spoolss test.

Guenther

14 years agos3: Fix timeout calculation if g_lock_lock is given a timeout < 60s
Volker Lendecke [Tue, 16 Feb 2010 14:21:25 +0000 (15:21 +0100)]
s3: Fix timeout calculation if g_lock_lock is given a timeout < 60s

Detected while showing this code to obnox :-)

14 years agos3: Slightly increase parallelism in g_lock
Volker Lendecke [Tue, 16 Feb 2010 11:31:58 +0000 (12:31 +0100)]
s3: Slightly increase parallelism in g_lock

There's no need to still hold the g_lock tdb-level lock while telling the
waiters to retry

14 years agos3: Avoid starving locks when many processes die at the same time
Volker Lendecke [Tue, 16 Feb 2010 11:28:53 +0000 (12:28 +0100)]
s3: Avoid starving locks when many processes die at the same time

In g_lock_unlock we have a little race between the process_exists and
messaging_send call: We only send to 5 waiters now, they all might have died
between us checking their existence and sending the message. This change makes
g_lock_lock retry at least once every minute.

14 years agos3: Avoid a thundering herd in g_lock_unlock
Volker Lendecke [Tue, 16 Feb 2010 11:22:08 +0000 (12:22 +0100)]
s3: Avoid a thundering herd in g_lock_unlock

Only notify the first 5 pending lock waiters. This avoids a thundering herd
problem that is really nasty in a cluster. It also makes acquiring a lock a bit
more FIFO, lock waiters are added to the end of the array.

14 years agos3: Optimize g_lock_lock for a heavily contended case
Volker Lendecke [Mon, 15 Feb 2010 15:57:16 +0000 (16:57 +0100)]
s3: Optimize g_lock_lock for a heavily contended case

Only check the existence of the lock owner in g_lock_parse, check the rest of
the records only when we got the lock successfully. This reduces the load on
process_exists which can involve a network roundtrip in the clustered case.

14 years agos3: Fix handling of processes that died in g_lock
Volker Lendecke [Mon, 15 Feb 2010 15:49:46 +0000 (16:49 +0100)]
s3: Fix handling of processes that died in g_lock

g_lock_parse might have thrown away entries from the locks array because the
processes were not around anymore. Don't store the orphaned entries.

14 years agos4-kcc: remove a qsort() that snuck into the new topology code
Andrew Tridgell [Tue, 16 Feb 2010 11:41:45 +0000 (22:41 +1100)]
s4-kcc: remove a qsort() that snuck into the new topology code

14 years agos4-rpc: don't use auth padding in rpc bind requests as it breaks s3
Andrew Tridgell [Tue, 16 Feb 2010 11:18:16 +0000 (22:18 +1100)]
s4-rpc: don't use auth padding in rpc bind requests as it breaks s3

The s3 RPC server returns a bind_nak if it gets a rpc bind with auth
padding. This change forces a padding length of zero to maximimise
compatibility with s3 servers.

I've left the padding code in as a #if 0 to make it easier for us to
test/fix the s3 server code, which should be changed to correctly
handle arbitrary auth padding in all rpc requests with auth trailers.

14 years agos4-dcerpc: fixed auth padding to be relative to the stub, not packet
Andrew Tridgell [Tue, 16 Feb 2010 09:21:29 +0000 (20:21 +1100)]
s4-dcerpc: fixed auth padding to be relative to the stub, not packet

The recent dcerpc padding changes made our padding relative to the
packet header, instead of the start of the stub. Surprisingly, this
broke w2k8r2 doing a dcpromo join to a s4 server. It seems that w2k8r2
is very fussy about the padding it gets in some circumstances.

14 years agos4-dsdb: return LDB_ERR_CONSTRAINT_VIOLATION on num_recs != 1
Andrew Tridgell [Tue, 16 Feb 2010 05:39:49 +0000 (16:39 +1100)]
s4-dsdb: return LDB_ERR_CONSTRAINT_VIOLATION on num_recs != 1

In a single record search, LDB_ERR_CONSTRAINT_VIOLATION is more useful
than the generic LDB_ERR_OPERATIONS_ERROR

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

14 years agos4-samdb: use dsdb_search() in cracknames
Andrew Tridgell [Tue, 16 Feb 2010 05:09:07 +0000 (16:09 +1100)]
s4-samdb: use dsdb_search() in cracknames

greatly simplifies some of the cracknames code

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

14 years agos4-kcc: remove search_onelevel_with_deleted() in kcc
Andrew Tridgell [Tue, 16 Feb 2010 04:54:01 +0000 (15:54 +1100)]
s4-kcc: remove search_onelevel_with_deleted() in kcc

Use dsdb_search() instead

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

14 years agos4-dsdb: removed gendb_search_single_extended_dn()
Andrew Tridgell [Tue, 16 Feb 2010 04:49:29 +0000 (15:49 +1100)]
s4-dsdb: removed gendb_search_single_extended_dn()

Use dsdb_search_one() instead, which allows for arbitrary controls

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

14 years agos4-dsdb: added dsdb_search_one() and cleanup dsdb_find_dn_by_guid()
Andrew Tridgell [Tue, 16 Feb 2010 04:40:44 +0000 (15:40 +1100)]
s4-dsdb: added dsdb_search_one() and cleanup dsdb_find_dn_by_guid()

dsdb_find_dn_by_guid() now takes a struct GUID instead of a
guid_string. All the callers in fact wanted a struct GUID, so we now
avoid the extra conversion.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

14 years agos4-dsdb: replace dsdb_find_dn_by_guid() with a dsdb_search() call
Andrew Tridgell [Tue, 16 Feb 2010 04:15:35 +0000 (15:15 +1100)]
s4-dsdb: replace dsdb_find_dn_by_guid() with a dsdb_search() call

much simpler code by using dsdb_flags

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

14 years agos4-dsdb: change dsdb_search_dn_with_deleted() to dsdb_search_dn() with dsdb_flags
Andrew Tridgell [Tue, 16 Feb 2010 03:55:19 +0000 (14:55 +1100)]
s4-dsdb: change dsdb_search_dn_with_deleted() to dsdb_search_dn() with dsdb_flags

Allows for arbitrary controls

14 years agos4-dsdb: change samdb_replace() to dsdb_replace() and allow for dsdb_flags
Andrew Tridgell [Tue, 16 Feb 2010 03:45:16 +0000 (14:45 +1100)]
s4-dsdb: change samdb_replace() to dsdb_replace() and allow for dsdb_flags

This allows for controls to be added easily where they are needed.

14 years agos4-dsdb: replace dsdb_modify_permissive() with dsdb_modify() and dsdb_flags
Andrew Tridgell [Tue, 16 Feb 2010 03:29:07 +0000 (14:29 +1100)]
s4-dsdb: replace dsdb_modify_permissive() with dsdb_modify() and dsdb_flags

14 years agos4-dsdb: move dsdb_request_add_controls() into dsdb/common/util.c
Andrew Tridgell [Tue, 16 Feb 2010 03:23:21 +0000 (14:23 +1100)]
s4-dsdb: move dsdb_request_add_controls() into dsdb/common/util.c

This will be used to allow the flag based ldb functions to work on
both a ldb or a module, thus saving a lot of specialist functions.

14 years agos3-docs: Document 'smbclient -C'.
Volker Lendecke [Tue, 16 Feb 2010 10:00:08 +0000 (11:00 +0100)]
s3-docs: Document 'smbclient -C'.

14 years agos4-smbtorture: fix spoolss SD test against w2k8r2.
Günther Deschner [Tue, 16 Feb 2010 09:45:29 +0000 (10:45 +0100)]
s4-smbtorture: fix spoolss SD test against w2k8r2.

Guenther

14 years agos4-smbtorture: more work on test_PrinterInfo_DevMode RPC-SPOOLSS-PRINTER.
Günther Deschner [Tue, 16 Feb 2010 02:28:43 +0000 (03:28 +0100)]
s4-smbtorture: more work on test_PrinterInfo_DevMode RPC-SPOOLSS-PRINTER.

Guenther

14 years agos4-smbtorture: allow to call OpenPrinterEx with devicemode.
Günther Deschner [Tue, 16 Feb 2010 02:26:10 +0000 (03:26 +0100)]
s4-smbtorture: allow to call OpenPrinterEx with devicemode.

Guenther

14 years agotestprogs: add "samba3" and "architecture=" options to spoolss tester.
Günther Deschner [Mon, 15 Feb 2010 22:03:48 +0000 (23:03 +0100)]
testprogs: add "samba3" and "architecture=" options to spoolss tester.

Guenther

14 years agos4-drs: DsGetReplInfo() refactoring
Erick Nogueira do Nascimento [Thu, 11 Feb 2010 21:04:00 +0000 (19:04 -0200)]
s4-drs: DsGetReplInfo() refactoring

14 years agos4-drs: DsReplGetInfo() for DS_REPL_INFO_REPSTO infoType
Erick Nogueira do Nascimento [Fri, 29 Jan 2010 22:07:47 +0000 (20:07 -0200)]
s4-drs: DsReplGetInfo() for DS_REPL_INFO_REPSTO infoType

Implements the DS_REPL_INFO_REPSTO infoType of DsReplGetInfo().

14 years agos4-smbtorture: more work on SD tests for RPC-SPOOLSS.
Günther Deschner [Mon, 15 Feb 2010 21:06:42 +0000 (22:06 +0100)]
s4-smbtorture: more work on SD tests for RPC-SPOOLSS.

Guenther

14 years agos4-smbtorture: add rather simple spoolss device mode test.
Günther Deschner [Mon, 15 Feb 2010 21:16:25 +0000 (22:16 +0100)]
s4-smbtorture: add rather simple spoolss device mode test.

Guenther

14 years agos4-smbtorture: use test_SetPrinter call in spoolss security descriptor tests.
Günther Deschner [Mon, 15 Feb 2010 20:55:06 +0000 (21:55 +0100)]
s4-smbtorture: use test_SetPrinter call in spoolss security descriptor tests.

Guenther

14 years agos4-smbtorture: w2k8r2 allows to add printers w/o defining printprocessor.
Günther Deschner [Mon, 15 Feb 2010 18:23:35 +0000 (19:23 +0100)]
s4-smbtorture: w2k8r2 allows to add printers w/o defining printprocessor.

Guenther

14 years agotestprogs: fix EnumJobs debug output in spoolss test.
Günther Deschner [Mon, 15 Feb 2010 20:45:59 +0000 (21:45 +0100)]
testprogs: fix EnumJobs debug output in spoolss test.

Found by Kai, thanks!

Guenther

14 years agos3: Fix a typo
Volker Lendecke [Mon, 15 Feb 2010 15:35:06 +0000 (16:35 +0100)]
s3: Fix a typo

14 years agos4-rootdse: we don't need DSDB_FLAG_OWN_MODULE here
Andrew Tridgell [Mon, 15 Feb 2010 12:49:26 +0000 (23:49 +1100)]
s4-rootdse: we don't need DSDB_FLAG_OWN_MODULE here

14 years agos4-drs: enable the recyclebin optional feature
Eduardo Lima [Fri, 12 Feb 2010 16:18:27 +0000 (14:18 -0200)]
s4-drs: enable the recyclebin optional feature

Signed-off-by: Andrew Tridgell <tridge@samba.org>
14 years agos4-kcc: remove C++ comment
Andrew Tridgell [Mon, 15 Feb 2010 12:05:33 +0000 (23:05 +1100)]
s4-kcc: remove C++ comment

14 years agos4-kcc: initial code for the topology algorithm
Crístian Deives [Wed, 10 Feb 2010 05:42:28 +0000 (03:42 -0200)]
s4-kcc: initial code for the topology algorithm

this patch contains the data structures declarations and the functions to
setup the graph.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
14 years agos4-dsdb: don't change replPropertyMetaData if the value hasn't changed
Andrew Tridgell [Mon, 15 Feb 2010 11:49:35 +0000 (22:49 +1100)]
s4-dsdb: don't change replPropertyMetaData if the value hasn't changed

When updating replPropertyMetaData, check if the value being stored is
the same as the current value, and skip the update if it is.

This is based on a patch by Fernando J V da Silva <fernandojvsilva@yahoo.com.br>

14 years agos4-heimdal: Fix typos in comment.
Karolin Seeger [Mon, 15 Feb 2010 11:23:11 +0000 (12:23 +0100)]
s4-heimdal: Fix typos in comment.

Karolin

14 years agos4-test: use local ldb for urgent_replication test
Andrew Tridgell [Mon, 15 Feb 2010 10:21:55 +0000 (21:21 +1100)]
s4-test: use local ldb for urgent_replication test

This test only currently works on a local ldb, as it needs system
access.

14 years agos4-ldb: fixed permissions on urgent_replication.py
Andrew Tridgell [Mon, 15 Feb 2010 10:18:13 +0000 (21:18 +1100)]
s4-ldb: fixed permissions on urgent_replication.py

14 years agos4-test: minor fixes to urgent_replication.py
Andrew Tridgell [Mon, 15 Feb 2010 10:14:42 +0000 (21:14 +1100)]
s4-test: minor fixes to urgent_replication.py

- fix usage name
- remove unnecessary python functions
- remote unused gc ldb

14 years agos4-drs: Test situations for Urgent Replication
Fernando J V da Silva [Thu, 4 Feb 2010 19:03:41 +0000 (17:03 -0200)]
s4-drs: Test situations for Urgent Replication

Checks if the partition's uSNUrgent is updated or not, depending
on the class of the object which is created, modified or deleted.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
14 years agos4-drs: Function for accessing dsdb_load_partition_usn from Python
Fernando J V da Silva [Thu, 4 Feb 2010 18:58:31 +0000 (16:58 -0200)]
s4-drs: Function for accessing dsdb_load_partition_usn from Python

Returns both uSNHighest and uSNUrgent as a dict object in Python
from a given partition dn.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
14 years agos4-drs: Fixes bugs regarding Urgent Replication on wrong situations
Fernando J V da Silva [Thu, 4 Feb 2010 18:46:52 +0000 (16:46 -0200)]
s4-drs: Fixes bugs regarding Urgent Replication on wrong situations

It fixes the bug which causes an urgent replication to be enabled
incorrectly when an object is modified, but it should happen only
when it was created. This patch also fixes the bug that enable an
urgent replication when an object is deleted, but it should happen
only when it was modified and fixes the bug that does not enable
an urgent replication when an object is deleted and it should happen
only when it is deleted (not when it is modified).

Signed-off-by: Andrew Tridgell <tridge@samba.org>
14 years agospoolss: disable GetPrinterDriver level 101 (as called by XP).
Günther Deschner [Thu, 11 Feb 2010 11:54:57 +0000 (12:54 +0100)]
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

14 years agos4-smbtorture: add some security descriptor tests to RPC-SPOOLSS and RPC-SPOOLSS...
Günther Deschner [Sat, 13 Feb 2010 01:11:31 +0000 (02:11 +0100)]
s4-smbtorture: add some security descriptor tests to RPC-SPOOLSS and RPC-SPOOLSS-PRINTER.

Guenther

14 years agos4:provision.c - "provsion_store_self_join" - don't set the realm if it's NULL
Matthias Dieter Wallnöfer [Mon, 15 Feb 2010 09:29:47 +0000 (10:29 +0100)]
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.

14 years agos4-drs: replace manual checks with dsdb_modify_permissive()
Andrew Tridgell [Mon, 15 Feb 2010 06:39:20 +0000 (17:39 +1100)]
s4-drs: replace manual checks with dsdb_modify_permissive()

Much simpler to use the permissive control instead of manually munging
the SPN list.

14 years agos4-drs: use a permissive modify in addentry
Andrew Tridgell [Mon, 15 Feb 2010 06:38:47 +0000 (17:38 +1100)]
s4-drs: use a permissive modify in addentry

It is not an error if entries already exist.

14 years agos4-dsdb: added dsdb_modify_permissive()
Andrew Tridgell [Mon, 15 Feb 2010 06:38:16 +0000 (17:38 +1100)]
s4-dsdb: added dsdb_modify_permissive()

This will be used in the drsuapi server

14 years agos3: eventlogadm.c: add -s option to use alternative config file.
Holger Hetterich [Sun, 14 Feb 2010 18:05:00 +0000 (19:05 +0100)]
s3: eventlogadm.c: add -s option to use alternative config file.

Update the manpage accordingly.

14 years agos3: Fix initgroups return check
Peter Watkins [Sun, 14 Feb 2010 11:43:13 +0000 (12:43 +0100)]
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.

14 years agos4:dcesrv_lsa.c - remove a superfluous empty line
Matthias Dieter Wallnöfer [Sun, 14 Feb 2010 09:48:13 +0000 (10:48 +0100)]
s4:dcesrv_lsa.c - remove a superfluous empty line

One empty line is enough for code part divisions.

14 years agos4-rpcserver: teach the rpc server to cope with bad sig_size estimates
Andrew Tridgell [Sun, 14 Feb 2010 06:09:55 +0000 (17:09 +1100)]
s4-rpcserver: teach the rpc server to cope with bad sig_size estimates

14 years agoa4-dcerpc: another attempt at dcerpc auth padding
Andrew Tridgell [Sun, 14 Feb 2010 00:56:28 +0000 (11:56 +1100)]
a4-dcerpc: another attempt at dcerpc auth padding

The last change broke net vampire against w2k8r2

14 years agoutil: update three other copies of our dlinklist.h macros
Andrew Tridgell [Sat, 6 Feb 2010 01:25:06 +0000 (12:25 +1100)]
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

14 years agos3: last part of TYPESAFE_QSORT() conversion
Andrew Tridgell [Sat, 13 Feb 2010 23:03:55 +0000 (10:03 +1100)]
s3: last part of TYPESAFE_QSORT() conversion

convert smbcacls, sharesec and web/

14 years agos3-smbd: convert lanman and notify code to TYPESAFE_QSORT()
Andrew Tridgell [Sat, 13 Feb 2010 23:03:12 +0000 (10:03 +1100)]
s3-smbd: convert lanman and notify code to TYPESAFE_QSORT()

14 years agos3-rpc: convert wkssvc to use TYPESAFE_QSORT()
Andrew Tridgell [Sat, 13 Feb 2010 23:02:54 +0000 (10:02 +1100)]
s3-rpc: convert wkssvc to use TYPESAFE_QSORT()

14 years agos3-locking: convert brlock to TYPESAFE_QSORT()
Andrew Tridgell [Sat, 13 Feb 2010 23:02:35 +0000 (10:02 +1100)]
s3-locking: convert brlock to TYPESAFE_QSORT()

14 years agos3: convert registry and printing code to TYPESAFE_QSORT()
Andrew Tridgell [Sat, 13 Feb 2010 23:02:19 +0000 (10:02 +1100)]
s3: convert registry and printing code to TYPESAFE_QSORT()

14 years agos3-nmbd: note TODO item for qsort
Andrew Tridgell [Sat, 13 Feb 2010 23:01:49 +0000 (10:01 +1100)]
s3-nmbd: note TODO item for qsort

This uses another char* cast hack. Left alone for now.

14 years agos3-vfs: use TYPESAFE_QSORT() in s3 VFS modules
Andrew Tridgell [Sat, 13 Feb 2010 23:01:17 +0000 (10:01 +1100)]
s3-vfs: use TYPESAFE_QSORT() in s3 VFS modules

14 years agos3-lib: use TYPESAFE_QSORT() in remaining s3 library code
Andrew Tridgell [Sat, 13 Feb 2010 23:00:49 +0000 (10:00 +1100)]
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.

14 years agos3-libsmb: use TYPESAFE_QSORT() in namequery code
Andrew Tridgell [Sat, 13 Feb 2010 22:59:26 +0000 (09:59 +1100)]
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.

14 years agos3-lib: use TYPESAFE_QSORT() in s3 interfaces code
Andrew Tridgell [Sat, 13 Feb 2010 22:58:33 +0000 (09:58 +1100)]
s3-lib: use TYPESAFE_QSORT() in s3 interfaces code

14 years agolib: use TYPESAFE_QSORT() in lib/ and libcli/
Andrew Tridgell [Sat, 13 Feb 2010 22:58:13 +0000 (09:58 +1100)]
lib: use TYPESAFE_QSORT() in lib/ and libcli/

14 years agos3-includes: enable TYPESAFE_QSORT() in s3
Andrew Tridgell [Sat, 13 Feb 2010 22:57:36 +0000 (09:57 +1100)]
s3-includes: enable TYPESAFE_QSORT() in s3

14 years agos4-ldb: use TYPESAFE_QSORT() in the rest of the ldb code
Andrew Tridgell [Sat, 13 Feb 2010 23:37:20 +0000 (10:37 +1100)]
s4-ldb: use TYPESAFE_QSORT() in the rest of the ldb code

14 years agos4:loadparm.c - prevent memory leaks
Matthias Dieter Wallnöfer [Sat, 13 Feb 2010 19:05:22 +0000 (20:05 +0100)]
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.

14 years agos4:loadparm.c - the logfile parameter value needs to be duplicated
Matthias Dieter Wallnöfer [Sat, 13 Feb 2010 18:41:43 +0000 (19:41 +0100)]
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.

14 years agos4:popt_common.c - fix intendation
Matthias Dieter Wallnöfer [Sat, 13 Feb 2010 18:19:02 +0000 (19:19 +0100)]
s4:popt_common.c - fix intendation

14 years agos4:util.c - Corrected the location of the "Directory Service" object
Matthias Dieter Wallnöfer [Sat, 13 Feb 2010 17:20:54 +0000 (18:20 +0100)]
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.

14 years agos4:server.c - use always "return" instead of "exit" in the "binary_smbd_main" function
Matthias Dieter Wallnöfer [Sat, 13 Feb 2010 17:03:08 +0000 (18:03 +0100)]
s4:server.c - use always "return" instead of "exit" in the "binary_smbd_main" function

Just to be consistent - no functional change

14 years agolibwbclient: Fix s4 build failure by fixing up includes.
Kai Blin [Sat, 13 Feb 2010 16:54:27 +0000 (17:54 +0100)]
libwbclient: Fix s4 build failure by fixing up includes.

Sorry about this, folks.

14 years agos3: Fix Coverity ID 629: DEADCODE
Volker Lendecke [Sat, 13 Feb 2010 16:42:24 +0000 (17:42 +0100)]
s3: Fix Coverity ID 629: DEADCODE

We have already returned if (argc < 1) above

14 years agos3: Fix bug 5198 -- parse chfn(1)-change gecos field
Volker Lendecke [Sat, 6 Feb 2010 12:26:06 +0000 (13:26 +0100)]
s3: Fix bug 5198 -- parse chfn(1)-change gecos field

14 years agos3: Fix typo found by jhell <jhell@DataIX.net>
Volker Lendecke [Sat, 13 Feb 2010 15:38:25 +0000 (16:38 +0100)]
s3: Fix typo found by jhell <jhell@DataIX.net>

14 years agolibwbclient: Separate out the async functions
Kai Blin [Sat, 13 Feb 2010 12:42:56 +0000 (13:42 +0100)]
libwbclient: Separate out the async functions

14 years agos3: Remove unused comparison fn from "struct sorted_tree"
Volker Lendecke [Sun, 7 Feb 2010 14:49:13 +0000 (15:49 +0100)]
s3: Remove unused comparison fn from "struct sorted_tree"

14 years agos3: Make adt_tree data definitions private to adt_tree.c
Volker Lendecke [Sun, 7 Feb 2010 14:47:07 +0000 (15:47 +0100)]
s3: Make adt_tree data definitions private to adt_tree.c

14 years agos3: SORTED_TREE -> struct sorted_tree
Volker Lendecke [Sun, 7 Feb 2010 14:45:42 +0000 (15:45 +0100)]
s3: SORTED_TREE -> struct sorted_tree

14 years agos3: TREE_NODE -> struct tree_node
Volker Lendecke [Sun, 7 Feb 2010 14:42:26 +0000 (15:42 +0100)]
s3: TREE_NODE -> struct tree_node

14 years agos3: Fix some nonempty blank lines
Volker Lendecke [Sun, 7 Feb 2010 14:01:57 +0000 (15:01 +0100)]
s3: Fix some nonempty blank lines

14 years agouse ZERO_STRUCT
Volker Lendecke [Sun, 7 Feb 2010 16:57:56 +0000 (17:57 +0100)]
use ZERO_STRUCT

14 years agoUse ZERO_STRUCTP
Volker Lendecke [Sun, 7 Feb 2010 16:59:51 +0000 (17:59 +0100)]
Use ZERO_STRUCTP

14 years agos3: Fix a typo
Volker Lendecke [Sun, 7 Feb 2010 16:53:29 +0000 (17:53 +0100)]
s3: Fix a typo

14 years agos3: Fix a C++ warning
Volker Lendecke [Sat, 13 Feb 2010 12:02:15 +0000 (13:02 +0100)]
s3: Fix a C++ warning

14 years agos4-smbd: fix crash in notify code on client termination
Andrew Tridgell [Sat, 13 Feb 2010 12:09:59 +0000 (23:09 +1100)]
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

14 years agos4-rpc: be more careful about DCERPC auth padding
Andrew Tridgell [Sat, 13 Feb 2010 04:32:23 +0000 (15:32 +1100)]
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.

14 years agos4: use LDB_TYPESAFE_QSORT() instead of ldb_qsort()
Andrew Tridgell [Sat, 13 Feb 2010 02:26:51 +0000 (13:26 +1100)]
s4: use LDB_TYPESAFE_QSORT() instead of ldb_qsort()

14 years agos4-ldb: added LDB_TYPESAFE_QSORT()
Andrew Tridgell [Sat, 13 Feb 2010 02:26:16 +0000 (13:26 +1100)]
s4-ldb: added LDB_TYPESAFE_QSORT()

Like TYPESAFE_QSORT() but for the ldb_qsort() function

14 years agos4-wrepl: use TYPESAFE_QSORT() in wins repl code
Andrew Tridgell [Sat, 13 Feb 2010 02:01:22 +0000 (13:01 +1100)]
s4-wrepl: use TYPESAFE_QSORT() in wins repl code

14 years agos4-torture: use TYPESAFE_QSORT() in smbtorture
Andrew Tridgell [Sat, 13 Feb 2010 02:01:08 +0000 (13:01 +1100)]
s4-torture: use TYPESAFE_QSORT() in smbtorture

14 years agos4-rpcserver: use TYPESAFE_QSORT() in rpc servers
Andrew Tridgell [Sat, 13 Feb 2010 02:00:55 +0000 (13:00 +1100)]
s4-rpcserver: use TYPESAFE_QSORT() in rpc servers

14 years agos4-ntvfs: use TYPESAFE_QSORT() in notify code
Andrew Tridgell [Sat, 13 Feb 2010 02:00:41 +0000 (13:00 +1100)]
s4-ntvfs: use TYPESAFE_QSORT() in notify code

14 years agos4-socket: use TYPESAFE_QSORT() in netif code
Andrew Tridgell [Sat, 13 Feb 2010 02:00:22 +0000 (13:00 +1100)]
s4-socket: use TYPESAFE_QSORT() in netif code

14 years agos4-auth: use TYPESAFE_QSORT() in gensec
Andrew Tridgell [Sat, 13 Feb 2010 02:00:03 +0000 (13:00 +1100)]
s4-auth: use TYPESAFE_QSORT() in gensec