ira/wip.git
14 years agoupgradeprovision: reformat + add groupType as possibly overwritten
Matthieu Patou [Tue, 12 Jan 2010 12:43:39 +0000 (15:43 +0300)]
upgradeprovision: reformat + add groupType as possibly overwritten

14 years agoupgradeprovision: improve info messages
Matthieu Patou [Tue, 12 Jan 2010 16:53:38 +0000 (19:53 +0300)]
upgradeprovision: improve info messages

14 years agoRevert "s4:upgradeprovision - fix up the script regarding linked attributes"
Matthieu Patou [Tue, 12 Jan 2010 17:13:33 +0000 (20:13 +0300)]
Revert "s4:upgradeprovision - fix up the script regarding linked attributes"

This reverts commit 2cedefabc93c8a1fcb49d65a3f78a344e814f826.

14 years agoupgradeprovision: never use xattr it's pointless in this usecase
Matthieu Patou [Mon, 18 Jan 2010 22:56:30 +0000 (01:56 +0300)]
upgradeprovision: never use xattr it's pointless in this usecase

14 years agoAdd a comment to tdb_wrap to explain why it should be used instead of directly using tdb
Matthieu Patou [Mon, 11 Jan 2010 23:23:13 +0000 (02:23 +0300)]
Add a comment to tdb_wrap to explain why it should be used instead of directly using tdb

14 years agos4: utils recreate in python setntacl and getntacl
Matthieu Patou [Sat, 24 Oct 2009 11:34:31 +0000 (15:34 +0400)]
s4: utils recreate in python setntacl and getntacl

setntacl is able to set NTACL attribute from command line
  getntacl now use getopt for parsing command line option and is also able to
  dump the acl in the SDDL format.

14 years agos4: allow python code to dump NTACL object as well
Matthieu Patou [Sun, 10 Jan 2010 23:19:22 +0000 (02:19 +0300)]
s4: allow python code to dump NTACL object as well

14 years agoprovision: use message and do not display warning if the user choosed delibarately...
Matthieu Patou [Sun, 17 Jan 2010 19:50:31 +0000 (22:50 +0300)]
provision: use message and do not display warning if the user choosed delibarately posix:eadb

14 years agoprovision: introduce use-xattr parameter for defining where to store attributes
Matthieu Patou [Fri, 8 Jan 2010 14:00:54 +0000 (17:00 +0300)]
provision: introduce use-xattr parameter for defining where to store attributes

This option allow simple user (non root) to invoke provision without facing an error
  while insuring that ACL on shared files will always be set

14 years agos4-tests: register new unit tests
Matthieu Patou [Fri, 8 Jan 2010 10:13:02 +0000 (13:13 +0300)]
s4-tests: register new unit tests

 make unit test emit a visible warning

14 years agos4-python: add unit test for ntacls manipulation in python
Matthieu Patou [Fri, 8 Jan 2010 10:12:11 +0000 (13:12 +0300)]
s4-python: add unit test for ntacls manipulation in python

14 years agos4-python: add more unit tests for xattr manipulation in python
Matthieu Patou [Fri, 8 Jan 2010 10:10:30 +0000 (13:10 +0300)]
s4-python: add more unit tests for xattr manipulation in python

14 years agos4: update setntacl and getntacl to select the adaquate backend (fs/tdb) for storing...
Matthieu Patou [Fri, 8 Jan 2010 10:06:47 +0000 (13:06 +0300)]
s4: update setntacl and getntacl to select the adaquate backend (fs/tdb) for storing xattr

14 years agos4: ntvfs, create push_xattr_blob_tdb_raw and pull_xattr_blob_tdb_raw that do not...
Matthieu Patou [Fri, 8 Jan 2010 09:57:59 +0000 (12:57 +0300)]
s4: ntvfs, create push_xattr_blob_tdb_raw and pull_xattr_blob_tdb_raw that do not depend on pvfs objects

Following a talk with tridge on IRC, this patch allow (pull|push)_xattr_blob to be called without
  having a pvfs object. It's handy for programs that wants to manipulate xattr directly.

14 years agos4: Set acls correctly on all sysvol and scripts shares
Matthieu Patou [Sun, 22 Nov 2009 17:50:30 +0000 (20:50 +0300)]
s4: Set acls correctly on all sysvol and scripts shares

14 years agos4: Make unixid optional
Matthieu Patou [Sun, 22 Nov 2009 16:50:31 +0000 (19:50 +0300)]
s4: Make unixid optional

Make unixid optional, if value not supplied next id from id pool will be used.
  Create a function to get next id in id pool.

14 years agos4: regroup gpo modification in one function, set acl on files accordingly with ACL...
Matthieu Patou [Wed, 18 Nov 2009 18:07:25 +0000 (21:07 +0300)]
s4: regroup gpo modification in one function, set acl on files accordingly with ACL in LDAP

14 years agos4: Create unit tests for python "samba.xattr" module
Matthieu Patou [Mon, 7 Dec 2009 16:13:00 +0000 (19:13 +0300)]
s4: Create unit tests for python "samba.xattr" module

14 years agos4: add python bindings for wrap_(s|g)etxattr
Matthieu Patou [Mon, 9 Nov 2009 17:53:34 +0000 (20:53 +0300)]
s4: add python bindings for wrap_(s|g)etxattr

14 years agos4:selftest: add the samr-passwords-lockout test to knownfail
Michael Adam [Wed, 20 Jan 2010 15:38:00 +0000 (16:38 +0100)]
s4:selftest: add the samr-passwords-lockout test to knownfail

This is not implemented completely yet.
Needs fixing in the future.

Michael

14 years agotorture: add new test RPC-SAMR-PASSWORDS-LOCKOUT
Michael Adam [Fri, 15 Jan 2010 17:08:57 +0000 (18:08 +0100)]
torture: add new test RPC-SAMR-PASSWORDS-LOCKOUT

This tests account lockout features.
Windows 2003r2 and Windows 2008r2 survice this test.

Note: Windows does not set the ACB_AUTOLOCK account flag when it
locks out an account.
One thing that could/should be added to this test is a check of
the lockout time property.

Michael

14 years agos3-docs: Fix typos.
Karolin Seeger [Wed, 20 Jan 2010 12:34:50 +0000 (13:34 +0100)]
s3-docs: Fix typos.

Thanks to the Debian samba package maintainers
<pkg-samba-maint@lists.alioth.debian.org> for providing the patch!

Fix bug #7017 (Typos and spelling errors in manpages).

Karolin

14 years agoAdd cross option to samba_cv_linux_getgrouplist_ok
Lars Müller [Wed, 20 Jan 2010 11:41:43 +0000 (12:41 +0100)]
Add cross option to samba_cv_linux_getgrouplist_ok

"cross" as an option got removed accidentl with commit e5a95132 while
moving in direction of 3.2.

Patch proposed by Richard Sharpe <realrichardsharpe@gmail.com>.

14 years agos3: build with dnsupdate support when possible
Björn Jacke [Tue, 19 Jan 2010 23:09:38 +0000 (00:09 +0100)]
s3: build with dnsupdate support when possible

14 years agoselftest: Use SUBUNIT_FORMATTER command, if set in the environment.
Jelmer Vernooij [Tue, 19 Jan 2010 22:05:04 +0000 (11:05 +1300)]
selftest: Use SUBUNIT_FORMATTER command, if set in the environment.

14 years agoFix unintentional free of the last value when adding a new value to a key.
Wilco Baan Hofman [Tue, 19 Jan 2010 11:06:01 +0000 (12:06 +0100)]
Fix unintentional free of the last value when adding a new value to a key.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
14 years agos4-smbtorture: remove unneeded ncaclrpc dir setup from RPC-SPOOLSS-NOTIFY.
Günther Deschner [Tue, 19 Jan 2010 16:15:05 +0000 (17:15 +0100)]
s4-smbtorture: remove unneeded ncaclrpc dir setup from RPC-SPOOLSS-NOTIFY.

Guenther

14 years agos3: Fix a typo
Volker Lendecke [Tue, 19 Jan 2010 15:51:33 +0000 (16:51 +0100)]
s3: Fix a typo

14 years agos4-smbtorture: also configure check smbc_setOptionCaseSensitive for LIBSMBCLIENT...
Günther Deschner [Tue, 19 Jan 2010 15:22:45 +0000 (16:22 +0100)]
s4-smbtorture: also configure check smbc_setOptionCaseSensitive for LIBSMBCLIENT testsuite.

Guenther

14 years agos3 net/i18n: Update .po files
Kai Blin [Tue, 19 Jan 2010 13:48:12 +0000 (14:48 +0100)]
s3 net/i18n: Update .po files

14 years agos3 net: Fix compile warnings
Kai Blin [Tue, 19 Jan 2010 10:43:54 +0000 (11:43 +0100)]
s3 net: Fix compile warnings

14 years agos3: Remove a comment from ancient times that no longer applies
Volker Lendecke [Tue, 19 Jan 2010 13:18:53 +0000 (14:18 +0100)]
s3: Remove a comment from ancient times that no longer applies

14 years agos3-selftest: finally enable RPC-SPOOLSS-NOTIFY against s3.
Günther Deschner [Mon, 18 Jan 2010 23:31:54 +0000 (00:31 +0100)]
s3-selftest: finally enable RPC-SPOOLSS-NOTIFY against s3.

Guenther

14 years agos3-spoolss: stricter name checks when opening back-channel notify connection.
Günther Deschner [Mon, 18 Jan 2010 23:33:57 +0000 (00:33 +0100)]
s3-spoolss: stricter name checks when opening back-channel notify connection.

Make sure to always check if the name the client passed in
spoolss_RemoteFindFirstPrinterChangeNotifyEx is not one of our names.

Guenther

14 years agos3-selftest: use absolute path when setting SOCKET_WRAPPER_DIR.
Günther Deschner [Mon, 18 Jan 2010 23:55:48 +0000 (00:55 +0100)]
s3-selftest: use absolute path when setting SOCKET_WRAPPER_DIR.

Guenther

14 years agos4-smbtorture: support spoolss_ReplyClosePrinter server call in RPC-SPOOLSS-NOTIFY.
Günther Deschner [Mon, 18 Jan 2010 23:27:50 +0000 (00:27 +0100)]
s4-smbtorture: support spoolss_ReplyClosePrinter server call in RPC-SPOOLSS-NOTIFY.

A handle obtained with spoolss_ReplyOpenPrinter will be closed with
spoolss_ReplyClosePrinter when we call spoolss_ClosePrinter on the remote side.

Guenther

14 years agos4-smbtorture: restructure spoolss server implementations in RPC-SPOOLSS-NOTIFY.
Günther Deschner [Mon, 18 Jan 2010 23:22:57 +0000 (00:22 +0100)]
s4-smbtorture: restructure spoolss server implementations in RPC-SPOOLSS-NOTIFY.

Guenther

14 years agos4-smbtorture: skip ReplyOpenPrinter test in RPC-SPOOLSS-NOTIFY while testing s3.
Günther Deschner [Mon, 18 Jan 2010 23:19:47 +0000 (00:19 +0100)]
s4-smbtorture: skip ReplyOpenPrinter test in RPC-SPOOLSS-NOTIFY while testing s3.

Guenther

14 years agos4-smbtorture: strip trailing whitespace.
Günther Deschner [Tue, 19 Jan 2010 13:10:47 +0000 (14:10 +0100)]
s4-smbtorture: strip trailing whitespace.

Guenther

14 years agos3 net/i18n: update .po files
Kai Blin [Tue, 19 Jan 2010 09:06:26 +0000 (10:06 +0100)]
s3 net/i18n: update .po files

14 years agos3 net/i18n: Use only one spelling for "Usage:"
Kai Blin [Tue, 19 Jan 2010 08:23:42 +0000 (09:23 +0100)]
s3 net/i18n: Use only one spelling for "Usage:"

14 years agos3 net: Fix compile error with WITH_DNS_UPDATES
Kai Blin [Tue, 19 Jan 2010 08:36:55 +0000 (09:36 +0100)]
s3 net: Fix compile error with WITH_DNS_UPDATES

bd3c922e2bc1a163efc1d8c9cb59578bebb79616 introduced a compile-time error
when building with WITH_DNS_UPDATES.

14 years agos3/net: split up some printable stings to ease i18n
Björn Jacke [Mon, 18 Jan 2010 22:39:19 +0000 (23:39 +0100)]
s3/net: split up some printable stings to ease i18n

If we put strings like "Usage:" into separate _() macros and not the whole
"Usage:..." string we can cover much more messages by only one single
translation. The drawback is that the message in the sources looks less pretty.

14 years agos3/i18n/de: improve some German translations
Björn Jacke [Mon, 18 Jan 2010 22:25:41 +0000 (23:25 +0100)]
s3/i18n/de: improve some German translations

14 years agoѕ3/i18n/de: fix typo
Björn Jacke [Mon, 18 Jan 2010 21:07:55 +0000 (22:07 +0100)]
ѕ3/i18n/de: fix typo

14 years agotestprogs: add tests for GetPrinterData{Ex} and EnumPrinterDataEx.
Günther Deschner [Fri, 15 Jan 2010 15:36:25 +0000 (16:36 +0100)]
testprogs: add tests for GetPrinterData{Ex} and EnumPrinterDataEx.

Guenther

14 years agotestprogs: add tests for GetForm.
Günther Deschner [Fri, 15 Jan 2010 15:25:20 +0000 (16:25 +0100)]
testprogs: add tests for GetForm.

Guenther

14 years agotestprogs: pass down LPPRINTER_DEFAULTS in spoolss test.
Günther Deschner [Fri, 15 Jan 2010 15:24:40 +0000 (16:24 +0100)]
testprogs: pass down LPPRINTER_DEFAULTS in spoolss test.

Guenther

14 years agoMerge branch 'master' of git://git.samba.org/samba
Lars Müller [Mon, 18 Jan 2010 10:52:33 +0000 (11:52 +0100)]
Merge branch 'master' of git://git.samba.org/samba

14 years agoWork around bad use of autoconf interna
Lars Müller [Mon, 18 Jan 2010 10:49:01 +0000 (11:49 +0100)]
Work around bad use of autoconf interna

Merge fix made by Andreas Schwab <schwab@linux-m68k.org>.  This change
had been in use by SUSE since 2008-07-03.

14 years agonet: Add German translation, specially for the command listing
André Hentschel [Thu, 14 Jan 2010 18:49:18 +0000 (19:49 +0100)]
net: Add German translation, specially for the command listing

Signed-off-by: Kai Blin <kai@samba.org>
14 years agos3-docs: Add man page for vfs_scannedonly.
Olivier Sessink [Mon, 18 Jan 2010 10:40:33 +0000 (11:40 +0100)]
s3-docs: Add man page for vfs_scannedonly.

Fix bug #7028.

14 years agos3-selftest: use testenv dc so that smbtorture4 actually uses the client configuration.
Günther Deschner [Mon, 18 Jan 2010 09:59:08 +0000 (10:59 +0100)]
s3-selftest: use testenv dc so that smbtorture4 actually uses the client configuration.

Found while trying to get RPC-SPOOLSS-NOTIFY working against s3.

Guenther

14 years agos3: Show share path in swat statuspage
Marcin Gryszkalis [Mon, 18 Jan 2010 09:15:29 +0000 (10:15 +0100)]
s3: Show share path in swat statuspage

14 years agos3: Fix the format string for smbcontrol pool-usage
Volker Lendecke [Sun, 17 Jan 2010 22:07:39 +0000 (23:07 +0100)]
s3: Fix the format string for smbcontrol pool-usage

With the dot I have seen printf to not print anything

14 years agoidl: switched to using the WSPP names for the 'neighbour' DRS options
Andrew Tridgell [Sun, 17 Jan 2010 10:59:56 +0000 (21:59 +1100)]
idl: switched to using the WSPP names for the 'neighbour' DRS options

The documentation shows that all these functions in fact use the same
flags variable type. To be consistent between functions, and to allow
easy reference to the WSPP docs, it is better for us to also use this
generic DrsOptions bitfield rather than one per operations.

14 years agos3: Protect against an invalid bcc in SMBsendtxt
Volker Lendecke [Tue, 10 Nov 2009 22:14:58 +0000 (23:14 +0100)]
s3: Protect against an invalid bcc in SMBsendtxt

14 years agos3: For "smbcontrol <pid> pool-usage", print the first 50 bytes of a string
Volker Lendecke [Sun, 17 Jan 2010 13:57:54 +0000 (14:57 +0100)]
s3: For "smbcontrol <pid> pool-usage", print the first 50 bytes of a string

14 years agos3: Fix some nonempty blank lines
Volker Lendecke [Sun, 17 Jan 2010 12:52:53 +0000 (13:52 +0100)]
s3: Fix some nonempty blank lines

14 years agoModification of fix for bug 6876 - Delete of an object whose parent folder does not...
Jeremy Allison [Sun, 17 Jan 2010 01:03:06 +0000 (17:03 -0800)]
Modification of fix for bug 6876 - Delete of an object whose parent folder does not have delete rights fails even if the delete right is set on the object

Suggested by Volker. Reduce the surface area of the
become_root() unbecome_root() code to reduce the chance
of errors.

Jeremy.

14 years agos4-drs: allow for security bypass for DsReplicaGetInfo
Andrew Tridgell [Sat, 16 Jan 2010 19:52:14 +0000 (06:52 +1100)]
s4-drs: allow for security bypass for DsReplicaGetInfo

Use --option=drs:disable_sec_check=true until the group membership bug
with the PAC is fixed.

14 years agos4-dsdb: isGlobalCatalogReady should be shown by default
Andrew Tridgell [Sat, 16 Jan 2010 19:48:09 +0000 (06:48 +1100)]
s4-dsdb: isGlobalCatalogReady should be shown by default

This caused repadmin.exe to crash. Thanks to Hongwei for tracking this
down for us.

14 years agoldap: Fix test failure that seemed to go unreported previously.
Jelmer Vernooij [Sat, 16 Jan 2010 23:35:26 +0000 (12:35 +1300)]
ldap: Fix test failure that seemed to go unreported previously.

14 years agoldap.py: Remove unused imports.
Jelmer Vernooij [Sat, 16 Jan 2010 23:26:53 +0000 (12:26 +1300)]
ldap.py: Remove unused imports.

14 years agos3: Fix a crash in libsmbclient used against the OpenSolaris CIFS server
Volker Lendecke [Sat, 16 Jan 2010 12:31:44 +0000 (13:31 +0100)]
s3: Fix a crash in libsmbclient used against the OpenSolaris CIFS server

A user has sent me a sniff where the OpenSolaris CIFS server returns "32" in
totalentries, but the array in ctr only contains 15 entries. Look at the right
delimiter for walking the array.

14 years agos4 selftest: Fix and reenable WINBIND-STRUCT.NETBIOS_NAME test
Kai Blin [Sat, 16 Jan 2010 11:37:30 +0000 (12:37 +0100)]
s4 selftest: Fix and reenable WINBIND-STRUCT.NETBIOS_NAME test

14 years agos4-kerberos: raise the general kerberos debug level to 3
Andrew Tridgell [Sat, 16 Jan 2010 06:57:17 +0000 (17:57 +1100)]
s4-kerberos: raise the general kerberos debug level to 3

level 2 for every krb request is a bit much

14 years agosubunit/testtools: Include newer version.
Jelmer Vernooij [Sat, 16 Jan 2010 06:56:21 +0000 (19:56 +1300)]
subunit/testtools: Include newer version.

14 years agoImport testtools as well, required for subunit.
Jelmer Vernooij [Fri, 8 Jan 2010 01:09:20 +0000 (02:09 +0100)]
Import testtools as well, required for subunit.

14 years agosubunit: Import new version.
Jelmer Vernooij [Thu, 31 Dec 2009 17:48:41 +0000 (18:48 +0100)]
subunit: Import new version.

14 years agoAdd README about subunit.
Jelmer Vernooij [Thu, 31 Dec 2009 17:32:17 +0000 (18:32 +0100)]
Add README about subunit.

14 years agoAdd script for updating the copy of subunit.
Jelmer Vernooij [Thu, 31 Dec 2009 17:31:23 +0000 (18:31 +0100)]
Add script for updating the copy of subunit.

14 years agoFix permissions - net subcommand modules don't need to be executable.
Jelmer Vernooij [Thu, 31 Dec 2009 17:17:23 +0000 (18:17 +0100)]
Fix permissions - net subcommand modules don't need to be executable.

14 years agos4-torture: fixed DsReplicaGetInfo elements
Andrew Tridgell [Sat, 16 Jan 2010 03:44:24 +0000 (14:44 +1100)]
s4-torture: fixed DsReplicaGetInfo elements

14 years agos4-kcc: added DsReplicaGetInfo pending ops call
Andrew Tridgell [Sat, 16 Jan 2010 02:40:51 +0000 (13:40 +1100)]
s4-kcc: added DsReplicaGetInfo pending ops call

Just return 0 pending ops for now

14 years agos4-provision: added w2k8r2 ldap capabilities
Andrew Tridgell [Sat, 16 Jan 2010 02:20:46 +0000 (13:20 +1100)]
s4-provision: added w2k8r2 ldap capabilities

14 years agos4-devel: added rebuild_zone.sh
Andrew Tridgell [Sat, 16 Jan 2010 02:20:24 +0000 (13:20 +1100)]
s4-devel: added rebuild_zone.sh

This rebuilds a DNS zone file, including all DCs from sam.ldb

14 years agos4-provision: added "check-names ignore;" to allow for _msdcs A records
Andrew Tridgell [Sat, 16 Jan 2010 02:19:50 +0000 (13:19 +1100)]
s4-provision: added "check-names ignore;" to allow for _msdcs A records

14 years agos4-kcc: added DsReplicaGetInfo CURSORS2 level
Andrew Tridgell [Sat, 16 Jan 2010 01:10:40 +0000 (12:10 +1100)]
s4-kcc: added DsReplicaGetInfo CURSORS2 level

14 years agos4-idl: in DsReplicaGetInfo unknown2 is actually an enumeration_context
Andrew Tridgell [Sat, 16 Jan 2010 01:03:01 +0000 (12:03 +1100)]
s4-idl: in DsReplicaGetInfo unknown2 is actually an enumeration_context

14 years agos4-kcc: added support for CURSORS info level in DsReplicaGetInfo
Andrew Tridgell [Sat, 16 Jan 2010 00:49:39 +0000 (11:49 +1100)]
s4-kcc: added support for CURSORS info level in DsReplicaGetInfo

14 years agos4-dsdb: take advantage of local cursor and sort
Andrew Tridgell [Sat, 16 Jan 2010 00:49:09 +0000 (11:49 +1100)]
s4-dsdb: take advantage of local cursor and sort

in getncchanges and repl task we don't need the extra load and sort
any more.

14 years agos4-dsdb: add our local cursor and sort in dsdb_load_udv_*()
Andrew Tridgell [Sat, 16 Jan 2010 00:48:25 +0000 (11:48 +1100)]
s4-dsdb: add our local cursor and sort in dsdb_load_udv_*()

This makes things much simpler for the callers

14 years agos4-drs: use dsdb_load_udv_v2() in getncchanges code
Andrew Tridgell [Sat, 16 Jan 2010 00:08:59 +0000 (11:08 +1100)]
s4-drs: use dsdb_load_udv_v2() in getncchanges code

14 years agos4-dsdb: use dsdb_load_udv_v2() in repl task
Andrew Tridgell [Sat, 16 Jan 2010 00:08:44 +0000 (11:08 +1100)]
s4-dsdb: use dsdb_load_udv_v2() in repl task

14 years agos4-dsdb: added dsdb_load_udv_v2() and dsdb_load_udv_v1()
Andrew Tridgell [Sat, 16 Jan 2010 00:08:15 +0000 (11:08 +1100)]
s4-dsdb: added dsdb_load_udv_v2() and dsdb_load_udv_v1()

14 years agos4-kcc: simplify the ReplicaGetInfo implementation a bit
Andrew Tridgell [Fri, 15 Jan 2010 23:37:26 +0000 (10:37 +1100)]
s4-kcc: simplify the ReplicaGetInfo implementation a bit

14 years agos4-kcc: squash a warning
Andrew Tridgell [Fri, 15 Jan 2010 23:36:56 +0000 (10:36 +1100)]
s4-kcc: squash a warning

14 years agos4-drs: better debug info when security checks fail
Andrew Tridgell [Fri, 15 Jan 2010 23:36:40 +0000 (10:36 +1100)]
s4-drs: better debug info when security checks fail

show the security token of the user at debug level 2

14 years agos4-dsdb: require admin access for DsReplicaGetInfo
Andrew Tridgell [Fri, 15 Jan 2010 23:36:06 +0000 (10:36 +1100)]
s4-dsdb: require admin access for DsReplicaGetInfo

14 years agos4-drs: framework for DsGetReplInfo(), includes the DS_REPL_INFO_NEIGHBORS infoType.
Andrew Tridgell [Fri, 15 Jan 2010 08:36:16 +0000 (19:36 +1100)]
s4-drs: framework for DsGetReplInfo(), includes the DS_REPL_INFO_NEIGHBORS infoType.

This patch includes the framework for the implementation of all infoTypes of
the DsGetReplInfo() call, and includes the implementation for the first one,
the DS_REPL_INFO_NEIGHBORS.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
14 years agos4-drs: give better debug info on unsupported DRS calls
Andrew Tridgell [Fri, 15 Jan 2010 08:34:32 +0000 (19:34 +1100)]
s4-drs: give better debug info on unsupported DRS calls

14 years agos4-drs: torture test for DsGetReplInfo() (RPC-DSGETINFO test).
Erick Nogueira do Nascimento [Wed, 23 Dec 2009 19:54:30 +0000 (17:54 -0200)]
s4-drs: torture test for DsGetReplInfo() (RPC-DSGETINFO test).

Signed-off-by: Andrew Tridgell <tridge@samba.org>
14 years agos4-dsdb: added isGlobalCatalogReady
Andrew Tridgell [Fri, 15 Jan 2010 08:13:26 +0000 (19:13 +1100)]
s4-dsdb: added isGlobalCatalogReady

needed for dcdiag.exe

14 years agoSecond part of bug 7045 - Bad (non memory copying) interfaces in smbc_setXXXX calls.
Jeremy Allison [Sat, 16 Jan 2010 01:33:24 +0000 (17:33 -0800)]
Second part of bug 7045 - Bad (non memory copying) interfaces in smbc_setXXXX calls.

Protect against SMB_STRDUP of null...

Jeremy.

14 years agoFix bug 7045 - Bad (non memory copying) interfaces in smbc_setXXXX calls.
Jeremy Allison [Sat, 16 Jan 2010 01:22:35 +0000 (17:22 -0800)]
Fix bug 7045 - Bad (non memory copying) interfaces in smbc_setXXXX calls.

In smbc_free_context libsmbclient just called free() on the string options
so it assumes the callers have malloced them before setting them via smbc_set
calls.

Change to corretly malloc/free string options to the library.

Jeremy

14 years agos4-ldb: cope with bad ptr alignment in ldb_index.c
Andrew Tridgell [Fri, 15 Jan 2010 21:58:27 +0000 (08:58 +1100)]
s4-ldb: cope with bad ptr alignment in ldb_index.c

We can't assume that a rec_ptr will come back from a tdb traverse with
alignment sufficient for a pointer.

14 years agos4 selftest: Ignore more winbind test known to fail
Kai Blin [Fri, 15 Jan 2010 01:08:35 +0000 (02:08 +0100)]
s4 selftest: Ignore more winbind test known to fail

14 years agos4-smbtorture: add setup_schannel_netlogon_pipe() function.
Günther Deschner [Thu, 14 Jan 2010 23:25:06 +0000 (00:25 +0100)]
s4-smbtorture: add setup_schannel_netlogon_pipe() function.

Guenther

14 years agoFix bug #7036 - net rpc getsid fails in hardened windows environments.
Jeremy Allison [Thu, 14 Jan 2010 23:39:30 +0000 (15:39 -0800)]
Fix bug #7036 - net rpc getsid fails in hardened windows environments.

Fix suggested by Dave.Daugherty@Centrify.com.