[SCM] Samba Shared Repository - branch v4-0-test updated

Andrew Bartlett abartlet at samba.org
Mon Jul 2 19:53:51 MDT 2012


The branch, v4-0-test has been updated
       via  a656789 VERSION: Mark as the beta3 release
       via  d4bc370 WHATSNEW: Mention Exchange 2010 support
       via  d6bba7b WHATSNEW: Update with fix for smbd-fileserver.conf.pid startup failures
       via  d31f55b s4-dns: Remove refernece to BIND 9.7 supporting GSS-TSIG
       via  d0460d9 s4-bind: Remove patches now incorporated into bind9
       via  5de841f s4-dns: Remove dynamic DNS instructions for bind 9.7
       via  eba8799 auth: Remove .get_challenge (only used for security=server)
       via  ab80b99 auth/gensec: Remove unused gensec_security parameter
       via  3c57fce selftest: Give Samba4 processes a little longer to clean up
       via  603a9bc file_server: add [globals] to generated smb.conf
       via  993e809 s3-libpidfile: fix check for running process.
       via  a440df9 s3-libpidfile: some more debug output
       via  2105400 s4-torture: more printf removal from samlogon torture test.
       via  0ff2fc3 WHATSNEW: mention initial support for SMB3
       via  8d80875 WHATSNEW: Mention SMB 2.1 support (reauthentication/mulit-credit) and config default
       via  86336de WHATSNEW: prepare for 4.0 beta3
       via  3f30b02 Disable selections of USE_LINUX_THREAD_CREDENTIALS until we have specific 32-bit and 64-bit versions.
       via  8150f69 ccan: make it a grouping library.
       via  5679ba1 Don't allow asynchronous creates to be canceled in SMB2.
       via  6617c2c Make schedule_deferred_open_message_smb() return an indication of success.
       via  0d2f6ca Make schedule_deferred_open_message_smb2() return an indication of success.
       via  b004121 Allow for async opens.
       via  d1e1aa5 Add new bool field async_open to struct deferred_open_record. Not used yet.
       via  0362dcb Fix defer_open() fuction in the open code path to cope with a NULL lck parameter.
       via  34bb743 Add uint64_t mid field to the files_struct.
       via  84f29b8 s3:waf add sendfile support for Tru64, which is the same as HP-UX's
       via  13aaa94 s3: add sendfile support for Tru64, which is the same as HP-UX's
       via  f81fd1c Try and fix the autoconf build on Solaris/Nexenta/etc.
       via  d91bf0d Fix typo in configure.in check for USE_LINUX_THREAD_CREDENTIALS.
       via  7d13955 s3:smbd: make use of smbXsrv_open for smb1/2/3
       via  f7762e2 s3:smbd: add smbXsrv_open* infrastructure
       via  9c8e2b5 s3:smbXsrv.idl: add smbXsrv_open* structures
       via  86d586d s3:configure: fix numerous compile warnings about implicit declaration of 'exit'
       via  143b711 s3: fix the logic in bsd_statvfs
       via  ec737d9 s3:cclean avoid segfault in case of ctdb missbehaviour
       via  fef4195 s3:cclean: fix memory allocation
       via  9e53a02 packaging(RHEL-CTDB): package cclean tool
       via  250ebe7 packaging(RHEL-CTDB): make makespec.sh aware of new location of version.h
       via  01863df s3_dbrwap_ctdb: improve a comment in db_ctdb_can_use_local_record()
       via  b46977e s3:dbwrap_ctdb: fix a comment in db_ctdb_fetch()
       via  92808a6 s3:dbwrap_ctdb: expand the comment for the db_ctdb_can_use_local_copy() function
       via  0a5f363 s3:dbwrap_ctdb: rename db_ctdb_own_record() -> db_ctdb_can_use_local_copy()
       via  d6abf79 s3:dbrwap_ctdb: remove commented out legacy code
       via  9d11277 s3:dbwrap_ctdb: fix fetch/fetch_locked when samba is built against old ctdb
       via  19941a9 lib/ccan: readd execinfo dependency to failtest
       via  cbf44e8 libcli/smb: add SMB2_CAP_DIRECTORY_LEASING to SMB2_CAP_ALL
       via  3c3ed70 lib/util: fix fd leak in anonymous_shared_allocate() if MAP_ANON is not available
       via  1a622fe s3:smb2_server: remove max_charge check in smbd_smb2_request_verify_creditcharge()
       via  f4a1893 s3:build: tell linker to use corefoundation on all darwin releases
       via  b526a0d s3: merge bsd_statvfs and darwin_statvfs
       via  f3862b9 ccan: we're subsystems, not a library.
       via  485787f Move back to using per-thread credentials on Linux. Fixes the glibc native AIO lost wakeup problem.
       via  821bd95 Replace all uses of setXX[ug]id() and setgroups with samba_setXX[ug]id() calls.
       via  7630fe5 Add missing setresgid() wrapper.
       via  ded2cb8 docs-xml: document "server max protocol" "SMB2" selects PROTOCOL_SMB2_10
       via  dc66e63 s3:param: change "server max protocol" to "SMB2" (SMB2_10)
       via  a5b62a6 lib/param: let "SMB2" select PROTOCOL_SMB2_10
       via  34a9892 s3:smb2_server: make the logic in smbd_smb2_request_verify_creditcharge() simpler
       via  967f2c4 s3:smb2_server: simplify smbd_smb2_request_verify_creditcharge() a bit.
       via  5b7f5d0 s3:smb2_negprot: support SMB2_CAP_LARGE_MTU on everything but port 139
       via  1db83d2 s3:smb2_server: grant extra credits for multi-credit requests
       via  648b959 s3:smb2_server: implement credit granting similar to windows
       via  82dc0b3 s3:smb2_server: make sure sequence numbers don't wrap at UINT64_MAX
       via  ee8ae45 s3:smb2_server: make sure we don't grant more credits than we allow
       via  4fe41c0 s3:smb2_server: check the credit_charge against the already granted credits
       via  984fdaf s3:smb2_server: split out a smb2_validate_sequence_number() function
       via  d6e7a76 s3:smb2_server: clear sequence window if we got the lowest sequence id
       via  bd6d415 s3:smb2_server: fix calculation of the next bitmap_offset
       via  d1ee774 s3:smb2_server: remove unused and confusing DEFAULT_SMB2_MAX_CREDIT_BITMAP_FACTOR
       via  925994e s3:smb2_server: call smbd_smb2_request_validate() also in smbd_smb2_first_negprot()
       via  0b8eac9 s3:smb2_server: start the connection with one credit granted to the client
       via  7560b1c s3: fine tune and clean up statvfs tests
       via  f6ac6b8 docs-xml: fix typos and format in smb.conf server max protocol man
       via  11fc75f packaging(RHEL-CTDB): fix build dependencies
       via  a29bf4a selftest: run pdbtest against s3dc as well
       via  30fd88e selftest: use a loop rather than declare tests for both dc and s3dc
       via  15b9198 librpc/ndr: Initilaise the remainder of struct dom_sid after a pull
       via  7468ce6 s4-torture: fix typo in samlogon test.
       via  4aaeed2 s4-torture: use torture context for printing debug output.
       via  572701f s3: Fix compilation of pthreadpool_sync.c on platforms without pthread.h
       via  d6939c3 s3:smbd: change nt_open_pipe() to uint16_t pnum/fnum
       via  d7d1bb9 s3:smb2_create: add usefull DEBUG() message
       via  66fa891 s3:smbd/files: fsp->fnum is uint64_t not int!
       via  bbad8f6 s3:brlock: s/int/uint64_t for fnum
       via  c5f1ab9 s3:brlock: add some const to print_lock_struct()
       via  a38d691 s3:wscript: use LOCKING subsystem for smbtorture3
       via  f80e399 source4/smbd/pidfile: don't panic if pid file is corrupt.
       via  0a1aaca replace: define INT64_MAX when not defined
       via  666dba3 s3-param: Rename loadparm_s3_context -> loadparm_s3_helpers
       via  7e8ed7d s3-pdb_samba4: Remove dupliate profilePath handling
       via  471a6b3 s4-selftest: expand passdb testing
       via  0b57d36 s3-pdbtest: Initialise more elements for testing
       via  cb01f6c s3-pdb_samba4: Add support for lastLogon and lastLogoff
       via  f7c3727 s3-pdb_samba4: Fix time handling, use nt_time_to_unix()
       via  46db466 lib/ldb: Print trace messages for modify correctly
       via  2079844 s4-selftest: Test login with a password expired user
       via  6f71878 s4-dsdb when setting DSDB_CONTROL_PASSWORD_BYPASS_LAST_SET_OID make it non-critical
       via  165521a s4-dsdb: Remove hooks for non-directory password handling
       via  4f587ff selftest: allow NSS_WRAPPER_* vars to be exported to the environment
       via  df899ae selftest: Add extra users to nss_wrapper
       via  6acd2f2 s3-pdbtest: show mis-matching times
       via  dba03a6 s3:registry: change reg_import.c according to coding guidelines.
       via  7bc1172 s3:registry: use TALLOC_CTX * instead of const void * in reg_import_adapter()
       via  c4be17f s3: add a tool "cclean" to cleanup orphaned entries from connections.tdb
       via  088e505 s3:conn_tdb: add a function connections_fetch_entry_ext() that also takes the cnum
       via  c71062f s3:lib:dbwrap: fix return value of db_ctdb_traverse[_read] for non-persistent dbs
       via  082b906 s3-printing: fix broken print_job_get_name() return
       via  efa73ba s3:test_net_registry_check.sh: grep -E isn't portable, use egrep
       via  94afad2 tests: make test_ldb portable, eliminate "local" keyword
       via  ac4899e s3:net registry import: implement dry-run with "--test"
       via  3705119 s3:net registry import: add an assert
       via  8bf0850 s3:net registry import: reduce indentation
       via  d5ab328 s3:net registry import: fix the return code when transaction commit fails
       via  a3ed47a s3:net registry import: improve regdb_open/close layering
       via  c55a6da s3:net registry import: untangle nested function calls
       via  20e5e8e s3:net registry import: reduce indentation and untangle assignment from check
       via  f9ff84b s3:net registry import: move precheck-and-import code to its own function
       via  e28b4b1 s3:net registry: fix violation of coding conventions
       via  0fb847b s3:net registry import: add option --precheck
       via  e78d647 s3:registry: add function registry_value_cmp()
       via  69add7e s3:net registry import: check return values + codecleanup
       via  cc052d0 s3:net registry: fix output of dwords with sign bit set
       via  55ce9e1 s3:registry: fix possible double free in import
       via  619f0c0 s3:registry: improve debug output in reg_parse
       via  e10ea2b s3:registry: add functions to conveniently create registry_values
       via  35eccd0 s3:registry: silence net_deletekey_recursive
       via  fb706c7 s3:registry: make reg_delete_path() delete the path recursively.
       via  353f614 s3:registry: compile reg_create_path() & reg_delete_path()
       via  a6c5376 Merge suggested fix from bug 7511 and enhance it
       via  8ee76b1 s3:test_registry_upgrade: make more portable and eliminate "local" keyword
       via  98ec5e9 s3-torture: Use static printer for smbd spooler test
       via  e01ef8a s3-printing: use euid for vlp job tracking
       via  1c2f154 s3-printing: fill print_generic sysjob id on job submission
       via  c29773d s3-printing: pass lpq command to job_submit
       via  91cd9a4 s3-printing: remove unused print_job_fname()
       via  9a296ef s3-printing: pass a talloc ctx to unpack_pjob
       via  2f85c1f s3-printing: return talloced print jobs
       via  e1ddf8f s3-printing: clean up print_job_pause/resume interface
       via  9707358 s3-printing: fix potential print db refcount leak
       via  1cd2433 s3-spoolss: remove duplicate "." in smbd spooler path
       via  4e33424 s3-printing: remove print_parse_jobid()
       via  fb2579e s3-printing: remove redundant variable set
       via  5eaa47c s3-printing: remove print_parse_jobid() calls from printing.c
       via  dbca645 s3-printing: rename queue->job sysjob
       via  a66618f s3-printing: remove print_parse_jobid() from print_cups.c
       via  a2d880d s3-printing: store print jobid as part of struct printjob
       via  33f0890 torture: add test for smbd print job spooling
       via  290e7de s3-pdbtest: Fix pdbtest to compare the same fields
       via  43555d6 s4-samldb: do not talloc_steal() the elements of the original request
       via  a7f26d5 s3-pdbtest: Report and handle errors in pdb->getsampwnam()
       via  ff4d8fc s3-pdb_samba4: Allocate and free a talloc_stackframe() in pdb_samba4_replace_by_sam()
       via  5df1fda s3: Restore async i/o with the "native" AIO interface
       via  93399c1 s3:smbXsrv_tcon: pass max_tcons explicitly for smbXsrv_tcon_table_init()
       via  9c36781 s3:smbXsrv_session: pass max_sessions explicitly for smbXsrv_session_table_init()
       via  66f59f0 tdb: finish weaning off err.h.
       via  d1aeb2d s3:test_net_registry_check: eliminate "local" keyword in shell
       via  b2ba94b s3:Makefile: use our "$MAKE" instead of "make" in our own Makefile
       via  5c31e5d s3:selftest: run SMB2-SESSION-RECONNECT
       via  fbad41b selftest/known: samba3.smb2.session.*reconnect passes now
       via  45cd2bc s3:smb2_sesssetup: make use of smb2srv_session_close_previous_send/recv
       via  299b63f s3:smbXsrv_session: react on MSG_SMBXSRV_SESSION_CLOSE
       via  8acf6c9 s3:smbXsrv_session: add smb2srv_session_close_previous_send/recv
       via  9f2c89c s3:smbXsrv.idl: add smbXsrv_session_close*
       via  da40aa0 s3:messaging.idl: define MSG_SMBXSRV_SESSION_CLOSE
       via  ed75069 s3:smb2_sesssetup: inline gensec_session_info() call
       via  1b8bcae s3:smb2_sesssetup: make use of gensec_update_send/recv
       via  f32e99a s3:smb2_sesssetup: inline most of smbd_smb2_session_setup()
       via  ed96b39 s3:selftest: run raw.session
       via  c0b9fa8 s3:selftest: run rpc.samba3.smb-reauth1 and rpc.samba3.smb-reauth2
       via  e770002 s3:smbd/sesssetup: implement dynamic re-authentication and expire session if client supports it
       via  842f1c8 s3:selftest: run smbtorture3 SMB2-SESSION-REAUTH
       via  ce22037 s3:selftest: run smb2.session as ntlm and krb5
       via  500e646 selftest/knownfail: only reauth5 still fails
       via  d2e1058 s3:smb2_sesssetup: implement dynamic re-authentication and expire sessions
       via  f3c606b docs-xml: document "server max protocol" SMB3 and SMB3_00
       via  6aec0ce docs-xml: fix reference from "server min protocol" to "server max protocol"
       via  9146e56 selftest/Samba3: 'server max protocol = SMB3'
       via  9798149 lib/param: add "SMB3" as alias for PROTOCOL_SMB3_00
       via  9854ed6 s3:smbd: remove now unused invalidate_all_vuids()
       via  77d1173 s3:smbd: remove now unused conn_close_all()
       via  d693ff5 s3:smbd: use smbXsrv_session_logoff_all() and smb1srv_tcon_disconnect_all() in exit_server_common()
       via  a129e27 s3:smbd: make use of smbXsrv_session for smb1
       via  faa8edc s3:smbd: make use of smbXsrv_tcon for smb1
       via  463b308 s3:smbd: make use of smbXsrv_tcon and smbXsrv_session for smb2
       via  ef408e5 s3:smb2_sesssetup: add support for SMB 2.24/3.00 signing
       via  02d206e s3:smb2_sesssetup: make use of the smbXsrv_session infrastructure
       via  1fffd35 s3:smbXsrv_session: init and disconnect smbXsrv_tcon for SMB2/3
       via  c36bd67 s3:smbd: add smbXsrv_tcon infrastructure
       via  80f9abf s3:smbXsrv.idl: add smbXsrv_tcon* structures
       via  f3dce4c sq smbXsrv_session_global_store no connection
       via  85f8c14 s3:smbd: add smbXsrv_session infrastructure
       via  5b3c07f s3:smbXsrv.idl: add smbXsrv_session* structures
       via  130436f s3:smbd: add smbXsrv_version_* infrastructure
       via  e098060 s3:librpc/idl/smbXsrv.idl: add smbXsrv_version_* structures
       via  47ddfe2 s3:librpc: add smbXsrv.idl
       via  cf244a1 s3:test: make shell code more porable by elimnating "local" keyword
       via  754b925 s3: Fix a typo
       via  c093666 s3: Avoid a call to server_event_context()
       via  c983ea8 s4-join: Setup correct DNS configuration
       via  02cbc3f s4-samba_upgradedns: Do not set DNS account for internal server
       via  01f5223 s4-join: Import DNS zones in AD DC join
       via  0eab44c selftest: Test unix.whoami with kerberos on plugin_s4_dc
       via  f199c5d s4-classicupgrade: Allow DNS backend to be specified
       via  73a33be s4-drepl: Ensure that the op->source does not get deallocated too early
       via  763f9e8 selftest: schema is not automatically reloaded now so if you modify it you have to reload it
       via  c00485b s4-dsdb: operational handle modifyTimeStamp on the CN=aggregate DN
       via  2f3adc0 s4-schema: improve the documentation of the dsdb_schema structure
       via  718ed84 s4-dsdb: Check for key SCHEMA_SEQ_NUM in metadata.tdb updates
       via  6f3a8b4 s4-dsdb: Add/Update SCHEMA_SEQ_NUM key in the metadata.tdb after schemaUpdateNow
       via  9f1213d s4-drs: if schema has changed during replication notify other process that they have to reload the schema
       via  f2deb05 s4-dsdb: move schema_load at the top of module stack
       via  283af38 s4-extended: do not try to fix if there is no schema
       via  9374ee1 s4-schema: keep track of the timestamp of the most recently changed/created object
       via  2d20a91 s4-schema: generalized time use its own syntax now
       via  1c850b2 ldb: lay foundation for proper utc/generalized time handling
       via  884d66d s4-drsuapi: Fix a const warning
       via  392e83f s4-drsuapi: rework the crackname implementation of functionnal names
       via  f421aa8 s4-dsdb-linkedattributes: register the VERIFY_NAME control, handle it when we are a GC
       via  f110f2d s4-ldap: handle VERIFY_NAME control encoding/decoding
       via  9ebb081 ldb: add the VERIFY_NAME control
       via  d7aa7e8 s4-dsdb: support otherWellKnownObjects
       via  6edd940 s4-dsdb: Try to avoid much of the time a db search for msDS-IntID
       via  1521bb9 dsdb-schema: do not reload more often than schema_reload_interval
       via  f8fd615 s4-dsdb: fix a warning about unused variable
       via  8558e32 s3: Correct documentation of case sensitive
       via  e7b5814 s3-vfs_gpfs: Fix bug #9003, posix acl on gpfs
       via  b9a15f1 s3: Give machine password changes 10 minutes of time
       via  51b30c6 s3:torture:smb2: pass smb2-session-reconnect test (add generosity in error case)
       via  4676e7f dbwrap: don't ignore the result of dbwrap_parse_record in dbwrap_fetch_int32()
       via  0f25bd7 dbwrap: intialize state.status in dbwrap_fetch_int32()
       via  d7b9e0d dbwrap: Convert fetch_int32 to dbwrap_parse_record
       via  770d9af s3: Remove reduce_windows_lock_ref_count, used only once
       via  89b2eb1 s3: Make reduce_windows_lock_ref_count static
       via  6658a2f s3: Use dbwrap_util for windows_lock_ref_count
       via  e0abd19 dbwrap: Add dbwrap_fetch_int32
       via  ce7b0b9 dbwrap: Add dbwrap_change_int32_atomic
       via  688cda1 script/autobuild: fix path to random-sleep.sh
       via  ea74131 selftest/knownfail: mark ^samba4.raw.session.expire1 as knownfail
       via  9c44f40 s4:torture/raw: add raw.session.expire1
       via  b40fa94 s3:smbd: fix warning in smbd_tevent_trace_callback() without profile support
       via  ad82c52 s3:serverid: don't ignore the result of dbwrap_parse_record()
       via  31ad4d7 s4:torture/smb2: run smb2.session.reauth5 in a subdirectory
       via  3c4263e tdb: don't use err.h in tests.
       via  1783fe3 tdb: make TDB_NOSYNC merely disable sync.
       via  945473a dbwrap: dbwrap_hash_size().
       via  e92cb55 dbwrap: dbwrap_name().
       via  41f799d dbwrap: dbwrap_transaction_start_nonblock().
       via  f6eb187 dbwrap: dbwrap_fetch_locked_timeout().
       via  431667b dbwrap: add dbwrap_check() function.
       via  9d97bf3 dbwrap: dbwrap_local_open()
       via  1acf548 dbwrap: remove get_flags().
       via  fc9b298 util_tdb: move timeout chainlock variants from source3/lib/util/util_tdb.c
       via  02bacf1 util: util_ntdb ntdb_fetch_int32/ntdb_store_int32 and ntdb_add_int32_atomic
       via  348159d util: util_ntdb.c gets NTDB_ERROR => NTSTATUS map.
       via  88ad365 util: util_ntdb.c gains bystring functions.
       via  8113d53 util: ntdb_new() supports NTDB_CLEAR_IF_FIRST.
       via  735290f util: util_ntdb.c
       via  7c1d9fb ntdb: take advantage of direct access across expand.
       via  4c51ee1 ntdb: test arbitrary operations during ntdb_parse_record().
       via  01ec4a7 ntdb: make database read-only during ntdb_parse() callback.
       via  bd5c061 ntdb: allow direct access for NTDB_INTERNAL dbs during expansion.
       via  0a34f34 ntdb: enhancement to allow direct access to the ntdb map during expansion.
       via  66d151d ntdb: don't munmap the database on every close.
       via  406bd2d ntdb: hand correct error code when alloc_read allocation fails.
       via  f7f6992c autobuild: always set TDB_NO_FSYNC.
       via  0265837 ntdb: respect TDB_NO_FSYNC flag for 'make test'
       via  0c54e7c s4:torture/smb2: add smb2.durable-open.lock-oplock
       via  ff36ce7 selftest: samba3.smb2.durable-open.lock => samba3.smb2.durable-open.lock-lease
       via  7d8db45 s4:torture/smb2: rename smb2.durable-open.lock to smb2.durable-open.lock-lease
       via  732f28b autobuild: run "samba3-ctdb" by default
       via  80921de autobuild: run "samba-ctdb" by default to catch dbwrap_ctdb regressions
       via  a0f6014 autobuild: add a target "samba3-ctdb" that builds samba3 (autoconf) with cluster support
       via  18ce23b autobuild: add a target "samba-ctdb" that builds samba (waf) with cluster support
       via  f9b722d autobuild: rename the "samba4-libs" target to "samba-libs"
       via  a24d78d autobuild: rename the "samba4" target to "samba"
       via  a518648 Add current headers from ctdb master.
       via  cea3bdb wintest: enable dns forwarding for internal dns
       via  1318b5b wintest: get original nameserver for forwarding on a more general place
       via  5305570 wintest: extend get_is_dc function with additional expectations
       via  884e28f6 wintest: check netcats exitstatus instead of output
       via  ed3ded1 wintest: set recursive queries for internal dns
       via  b45d4be wintest: add option to select the dns backend
       via  09bee25 wintest: set nameserver on a more general place
       via  226dbc1 wintest: add option to use ntvfs instead of s3fs
       via  9fcd4a8 wintest: add working bbaumbach.conf file for use with VirtualBox
       via  dd763d6 Fix bug #8974 - Kernel oplocks are broken when uid(file) != uid(process).
       via  7b43053 Add --disable-ntdb option for building.
       via  cbd660d samdb: Accept a list of member variables rather than a comma-separated string.
       via  3c74117 s3:idmap_cache: also store negative entries for unknown sids
       via  a65173a s3:winbindd: do not expose negative cache idmap entries as valid mappings (bug #9002)
       via  2481158 s3:winbindd: discard the expired gid cache if we're online (bug #9002)
       via  a7f4c2b s3: Remove an unnecessary ()
       via  7a2daf3 s3: Use string_term_tdb_data where appropriate
       via  c6aa36c s3: Fix const warnings
       via  33ff033 s4-provision: Give better clues on what Samba needs for s3fs ACL support
       via  9e116e8 s3-rpcclient: support all known netr_LogonControl2 variants properly
       via  9089d48 s4:torture/smb2: add smb2.durable-open.delete_on_close1
       via  b240406 s3:move serverid_equal() to serverid.c
       via  73b2000 s3:util: rename procid_equal() to serverid_equal()
       via  0159344 s3:util: remove (now) unused cluster_id_equal()
       via  1eacf3a s3:smbstatus: use procid_equal() instead of equivalent cluster_id_equal()
       via  53cfde7 s3: Remove a user of procid_is_me
       via  ca9a734 s3: Remove a user of procid_is_me
       via  6289fcf s3:util: reformat procid_equal() to adhere to coding guidelines
       via  3bdad95 s3:util: also compare the unique_id in procid_equal().
       via  e27d56c script: really sleep in "random-sleep.sh"
       via  17ad62b samba-tool: gpo: Fix creation of filesystem ACL from directory ACL
       via  0c29804 s4-pysmb: Parse security info as an unsigned integer
       via  bc9e121 s4-torture: Expand whoami test to confirm the user token.
       via  0624351 s4-torture: Change the unix.whoami test to use torture_assert()
       via  5ec4305 ntdb: fix occasional abort in testing.
       via  ab96359 script/autobuild: delay start of small projects by 60 to 600 seconds
       via  c30e6b5 script/autobuild: don't use 'make -j 4' for bin/smbtorture4
       via  fba51c8 script/autobuild: don't use make -j for small projects
       via  cd26039 s3:smbd: fix the build with the --with-profiling-data option
       via  0d1f3c1 s3:include: add START/END_PROFILE_STAMP()
       via  b70164b wafsamba/irixcc: next try to inject '-c99' the the build
       via  a94bed3 Revert "wafsamba/irixcc: add '-c99' option to cc"
       via  db9180c idmap-hash: Attempt to fix Coverity ID 709116 Overflowed array index write
       via  963666a idmap-hash: Fix Coverity ID 709117 Dereference before null check
       via  cb614cd idmap-hash: Fix Coverity 709118 Dereference before null check
       via  0f65745 idmap-hash: Adapt mapfile_read_line to README.Coding
       via  7c0f125 idmap-hash: Fix Coverity ID 709119 Unused pointer value
       via  f0072d3 VERSION: Move on to beta3!
      from  59fdc48 VERSION: Mark as the beta2 release

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test


- Log -----------------------------------------------------------------
-----------------------------------------------------------------------

Summary of changes:
 VERSION                                            |    2 +-
 WHATSNEW.txt                                       |   58 +-
 auth/common_auth.h                                 |    4 -
 auth/gensec/spnego.c                               |    9 +-
 auth/ntlmssp/ntlmssp_server.c                      |    7 -
 buildtools/wafsamba/irixcc.py                      |    8 +-
 ctdb/include/ctdb.h                                | 1186 +++++++++++++++
 ctdb/include/ctdb_client.h                         |  630 ++++++++
 ctdb/include/ctdb_private.h                        | 1502 +++++++++++++++++++
 ctdb/include/ctdb_protocol.h                       |  741 ++++++++++
 ctdb/include/ctdb_typesafe_cb.h                    |  177 +++
 docs-xml/manpages-3/net.8.xml                      |   32 +-
 docs-xml/smbdotconf/filename/casesensitive.xml     |    2 +-
 docs-xml/smbdotconf/misc/ncalrpcdir.xml            |   10 +-
 docs-xml/smbdotconf/misc/usersharepath.xml         |    5 +-
 docs-xml/smbdotconf/protocol/servermaxprotocol.xml |   37 +-
 docs-xml/smbdotconf/protocol/serverminprotocol.xml |    2 +-
 docs-xml/smbdotconf/vfs/getquotacommand.xml        |    2 +-
 ...-the-question-section-in-update-responses.patch |   29 -
 ...t-a-valgrind-uninitialised-memory-warning.patch |   34 -
 .../0003-don-t-compress-TSIG-names.patch           |   58 -
 ...api-initialisation-fails-then-heck-for-th.patch |   94 --
 ...sn-t-return-valid-GSSAPI-sequence-numbers.patch |   30 -
 examples/bind9-patches/README                      |   11 -
 file_server/file_server.c                          |    1 +
 lib/ccan/wscript                                   |   50 +-
 lib/dbwrap/dbwrap.c                                |   71 +-
 lib/dbwrap/dbwrap.h                                |   32 +-
 lib/dbwrap/dbwrap_cache.c                          |   10 +-
 lib/dbwrap/dbwrap_file.c                           |    2 +
 lib/dbwrap/dbwrap_local_open.c                     |   70 +
 lib/dbwrap/dbwrap_private.h                        |    9 +-
 lib/dbwrap/dbwrap_rbt.c                            |    2 +
 lib/dbwrap/dbwrap_tdb.c                            |   50 +-
 lib/dbwrap/dbwrap_util.c                           |   69 +-
 lib/dbwrap/wscript_build                           |    1 +
 lib/ldb/common/attrib_handlers.c                   |   28 +
 lib/ldb/common/ldb.c                               |    2 +-
 lib/ldb/common/ldb_controls.c                      |   53 +
 lib/ldb/common/ldb_msg.c                           |   18 +-
 lib/ldb/include/ldb.h                              |   16 +
 lib/ldb/wscript                                    |    5 +-
 lib/ntdb/doc/TDB_porting.txt                       |   91 +-
 lib/ntdb/free.c                                    |    3 -
 lib/ntdb/hash.c                                    |   48 +-
 lib/ntdb/io.c                                      |  119 ++-
 lib/ntdb/lock.c                                    |   11 +-
 lib/ntdb/ntdb.c                                    |   23 +-
 lib/ntdb/ntdb.h                                    |    9 +-
 lib/ntdb/open.c                                    |   29 +-
 lib/ntdb/private.h                                 |   19 +-
 lib/ntdb/test/api-12-store.c                       |    4 +-
 lib/ntdb/test/api-13-delete.c                      |    6 +-
 lib/ntdb/test/api-14-exists.c                      |    2 +-
 lib/ntdb/test/api-16-wipe_all.c                    |    2 +-
 lib/ntdb/test/api-20-alloc-attr.c                  |    2 +-
 lib/ntdb/test/api-21-parse_record.c                |    5 +-
 lib/ntdb/test/api-55-transaction.c                 |    5 +-
 lib/ntdb/test/api-80-tdb_fd.c                      |    2 +-
 lib/ntdb/test/api-81-seqnum.c                      |    5 +-
 lib/ntdb/test/api-82-lockattr.c                    |   16 +-
 lib/ntdb/test/api-83-openhook.c                    |    8 +-
 lib/ntdb/test/api-91-get-stats.c                   |    4 +-
 lib/ntdb/test/api-92-get-set-readonly.c            |   10 +-
 lib/ntdb/test/api-93-repack.c                      |    5 +-
 lib/ntdb/test/api-94-expand-during-parse.c         |   89 ++
 lib/ntdb/test/api-95-read-only-during-parse.c      |   94 ++
 lib/ntdb/test/api-add-remove-flags.c               |    5 +-
 lib/ntdb/test/api-check-callback.c                 |    5 +-
 lib/ntdb/test/api-firstkey-nextkey.c               |    7 +-
 lib/ntdb/test/api-fork-test.c                      |    5 +-
 lib/ntdb/test/api-locktimeout.c                    |    5 +-
 lib/ntdb/test/api-missing-entries.c                |    2 +-
 lib/ntdb/test/api-open-multiple-times.c            |   20 +-
 lib/ntdb/test/api-record-expand.c                  |    5 +-
 lib/ntdb/test/api-simple-delete.c                  |    5 +-
 lib/ntdb/test/api-summary.c                        |    4 +-
 lib/ntdb/test/external-agent.c                     |    4 +-
 lib/ntdb/test/no-fsync.h                           |    6 +
 lib/ntdb/test/run-01-new_database.c                |    4 +-
 lib/ntdb/test/run-02-expand.c                      |    4 +-
 lib/ntdb/test/run-03-coalesce.c                    |   20 +-
 lib/ntdb/test/run-04-basichash.c                   |    4 +-
 lib/ntdb/test/run-05-readonly-open.c               |   12 +-
 lib/ntdb/test/run-10-simple-store.c                |    5 +-
 lib/ntdb/test/run-11-simple-fetch.c                |    5 +-
 lib/ntdb/test/run-12-check.c                       |    4 +-
 lib/ntdb/test/run-15-append.c                      |   12 +-
 lib/ntdb/test/run-25-hashoverload.c                |    5 +-
 lib/ntdb/test/run-30-exhaust-before-expand.c       |    5 +-
 lib/ntdb/test/run-35-convert.c                     |   14 +-
 lib/ntdb/test/run-56-open-during-transaction.c     |    4 +-
 lib/ntdb/test/run-57-die-during-transaction.c      |    4 +-
 lib/ntdb/test/run-64-bit-tdb.c                     |    4 +-
 lib/ntdb/test/run-90-get-set-attributes.c          |   12 +-
 lib/ntdb/test/run-capabilities.c                   |   38 +-
 lib/ntdb/test/run-expand-in-transaction.c          |    5 +-
 lib/ntdb/test/run-features.c                       |    8 +-
 lib/ntdb/test/run-lockall.c                        |    4 +-
 lib/ntdb/test/run-remap-in-read_traverse.c         |    2 +-
 lib/ntdb/test/run-seed.c                           |    2 +-
 lib/ntdb/test/run-tdb_foreach.c                    |   20 +-
 lib/ntdb/test/run-traverse.c                       |    4 +-
 lib/ntdb/test/tap-interface.h                      |    1 +
 lib/ntdb/wscript                                   |   14 +-
 lib/param/loadparm.c                               |    4 +-
 lib/param/param.h                                  |    2 +-
 lib/param/param_enums.c                            |    3 +-
 lib/replace/libreplace.m4                          |    4 +-
 lib/replace/replace.h                              |    4 +
 lib/replace/wscript                                |    4 +-
 lib/tdb/common/transaction.c                       |   17 +-
 lib/tdb/test/external-agent.c                      |   15 +-
 lib/tdb/test/run-3G-file.c                         |    1 -
 lib/tdb/test/run-bad-tdb-header.c                  |    1 -
 lib/tdb/test/run-check.c                           |    1 -
 lib/tdb/test/run-corrupt.c                         |   13 +-
 lib/tdb/test/run-die-during-transaction.c          |   17 +-
 lib/tdb/test/run-endian.c                          |    1 -
 lib/tdb/test/run-incompatible.c                    |    1 -
 lib/tdb/test/run-nested-transactions.c             |    1 -
 lib/tdb/test/run-nested-traverse.c                 |    3 -
 lib/tdb/test/run-no-lock-during-traverse.c         |    1 -
 lib/tdb/test/run-oldhash.c                         |    1 -
 lib/tdb/test/run-open-during-transaction.c         |    3 -
 lib/tdb/test/run-readonly-check.c                  |    1 -
 lib/tdb/test/run-rwlock-check.c                    |    1 -
 lib/tdb/test/run-summary.c                         |    1 -
 lib/tdb/test/run-transaction-expand.c              |   15 +-
 lib/tdb/test/run-traverse-in-transaction.c         |    3 -
 lib/tdb/test/run-wronghash-fail.c                  |    1 -
 lib/tdb/test/run-zero-append.c                     |    1 -
 lib/tdb/test/run.c                                 |    1 -
 lib/tdb/test/tap-interface.h                       |    5 +-
 lib/tdb_compat/wscript                             |    4 +-
 lib/uid_wrapper/uid_wrapper.c                      |   15 +-
 lib/uid_wrapper/uid_wrapper.h                      |   43 +-
 lib/uid_wrapper/wscript_build                      |    2 +-
 lib/util/setid.c                                   |  245 ++++
 lib/util/setid.h                                   |   43 +
 lib/util/unix_privs.c                              |    5 +-
 lib/util/util.c                                    |   15 +-
 lib/util/util_ntdb.c                               |  346 +++++
 lib/util/util_ntdb.h                               |  135 ++
 lib/util/util_tdb.c                                |   79 +
 lib/util/util_tdb.h                                |   18 +
 lib/util/wscript_build                             |   16 +-
 libcli/smb/smb2_constants.h                        |    1 +
 librpc/ndr/ndr_sec_helper.c                        |    1 +
 librpc/wscript_build                               |    2 +-
 packaging/RHEL-CTDB/makespec.sh                    |    2 +-
 packaging/RHEL-CTDB/samba.spec.tmpl                |    5 +-
 script/autobuild.py                                |  113 +-
 script/mks3param.pl                                |    2 +-
 script/random-sleep.sh                             |   21 +
 selftest/knownfail                                 |   13 +-
 selftest/selftest.pl                               |    7 +-
 selftest/target/Samba3.pm                          |    6 +-
 selftest/target/Samba4.pm                          |    4 +-
 source3/Makefile.in                                |   54 +-
 source3/auth/auth.c                                |   54 +-
 source3/auth/auth_builtin.c                        |   55 -
 source3/auth/auth_generic.c                        |    3 +-
 source3/auth/auth_ntlmssp.c                        |   12 -
 source3/auth/auth_samba4.c                         |    6 +-
 source3/configure.in                               |  104 +-
 source3/include/auth.h                             |   11 -
 source3/include/includes.h                         |    3 +
 source3/include/local.h                            |    1 -
 source3/include/printing.h                         |   23 +-
 source3/include/proto.h                            |    6 +-
 source3/include/serverid.h                         |    2 +
 source3/include/smb.h                              |    1 -
 source3/include/smbprofile.h                       |   30 +-
 source3/include/util_tdb.h                         |    7 -
 source3/include/vfs.h                              |    3 +
 source3/lib/conn_tdb.c                             |   20 +-
 source3/lib/conn_tdb.h                             |    4 +
 source3/lib/ctdbd_conn.c                           |    8 +-
 source3/lib/dbwrap/dbwrap_ctdb.c                   |   64 +-
 source3/lib/dbwrap/dbwrap_open.c                   |    8 +-
 source3/lib/dbwrap/dbwrap_watch.c                  |    2 +-
 source3/lib/g_lock.c                               |    4 +-
 source3/lib/idmap_cache.c                          |    7 +
 source3/lib/messages_local.c                       |    4 +-
 source3/lib/pidfile.c                              |    8 +-
 source3/lib/pthreadpool/pthreadpool_sync.c         |    1 -
 source3/lib/server_mutex.c                         |    2 +-
 source3/lib/serverid.c                             |   30 +-
 source3/lib/system.c                               |    9 +-
 source3/lib/system_smbd.c                          |    3 +-
 source3/lib/util.c                                 |   17 -
 source3/lib/util_sec.c                             |  142 +-
 source3/lib/util_tdb.c                             |   81 -
 source3/libads/authdata.c                          |    2 +-
 source3/librpc/idl/messaging.idl                   |    3 +
 source3/librpc/idl/smbXsrv.idl                     |  327 +++++
 source3/librpc/idl/wscript_build                   |    4 +-
 source3/librpc/wscript_build                       |    5 +
 source3/libsmb/auth_generic.c                      |    2 +-
 source3/locking/brlock.c                           |   12 +-
 source3/locking/locking.c                          |    7 +-
 source3/locking/posix.c                            |  124 +--
 source3/locking/proto.h                            |    1 -
 source3/modules/vfs_aio_pthread.c                  |    4 +-
 source3/modules/vfs_default.c                      |    5 -
 source3/modules/vfs_dfs_samba4.c                   |    2 +-
 source3/modules/vfs_gpfs.c                         |    4 +-
 source3/modules/vfs_posix_eadb.c                   |    2 +-
 source3/param/loadparm.c                           |    2 +-
 source3/param/loadparm_ctx.c                       |    4 +-
 source3/param/pyparam.c                            |    4 +-
 source3/passdb/pdb_samba4.c                        |   35 +-
 source3/printing/lpq_parse.c                       |   41 +-
 source3/printing/print_cups.c                      |   18 +-
 source3/printing/print_generic.c                   |  149 ++-
 source3/printing/print_iprint.c                    |    6 +-
 source3/printing/printing.c                        |  504 ++++---
 source3/printing/printspoolss.c                    |   11 +-
 source3/printing/tests/vlp.c                       |    3 +-
 source3/registry/reg_api.c                         |    8 +-
 source3/registry/reg_api_util.c                    |   79 +-
 source3/registry/reg_api_util.h                    |    9 +-
 source3/registry/reg_import.c                      |  103 +-
 source3/registry/reg_import.h                      |    2 +-
 source3/registry/reg_parse.c                       |    3 +-
 source3/rpc_client/cli_netlogon.c                  |   13 +
 source3/rpc_server/netlogon/srv_netlog_nt.c        |   10 +-
 source3/rpc_server/spoolss/srv_spoolss_nt.c        |   30 +-
 source3/rpc_server/srv_pipe.c                      |    2 +-
 source3/rpc_server/srvsvc/srv_srvsvc_nt.c          |    2 +-
 source3/rpcclient/cmd_netlogon.c                   |   38 +-
 source3/script/tests/test_net_registry_check.sh    |   32 +-
 .../script/tests/test_net_registry_roundtrip.sh    |    8 +-
 source3/script/tests/test_registry_upgrade.sh      |   12 +-
 source3/selftest/tests.py                          |   15 +-
 source3/smbd/aio.c                                 |    3 -
 source3/smbd/close.c                               |    6 +-
 source3/smbd/conn.c                                |  118 --
 source3/smbd/conn_idle.c                           |  102 +-
 source3/smbd/files.c                               |  185 +--
 source3/smbd/globals.c                             |    2 +-
 source3/smbd/globals.h                             |  194 ++-
 source3/smbd/ipc.c                                 |   24 +-
 source3/smbd/notify_internal.c                     |    4 +-
 source3/smbd/nttrans.c                             |    6 +-
 source3/smbd/open.c                                |   91 +-
 source3/smbd/oplock.c                              |    4 +-
 source3/smbd/oplock_linux.c                        |   13 +
 source3/smbd/password.c                            |  200 ---
 source3/smbd/process.c                             |  120 ++-
 source3/smbd/proto.h                               |   22 +-
 source3/smbd/pysmbd.c                              |   15 +
 source3/smbd/reply.c                               |   84 +-
 source3/smbd/sec_ctx.c                             |    3 +-
 source3/smbd/server.c                              |   24 +-
 source3/smbd/server_exit.c                         |   36 +-
 source3/smbd/service.c                             |   54 +-
 source3/smbd/sesssetup.c                           |  306 ++++-
 source3/smbd/smb2_break.c                          |    5 +-
 source3/smbd/smb2_close.c                          |    2 +-
 source3/smbd/smb2_create.c                         |   34 +-
 source3/smbd/smb2_find.c                           |    2 +-
 source3/smbd/smb2_getinfo.c                        |    2 +-
 source3/smbd/smb2_glue.c                           |    6 +-
 source3/smbd/smb2_lock.c                           |    2 +-
 source3/smbd/smb2_negprot.c                        |   13 +-
 source3/smbd/smb2_notify.c                         |    2 +-
 source3/smbd/smb2_read.c                           |    6 +-
 source3/smbd/smb2_server.c                         |  445 ++++--
 source3/smbd/smb2_sesssetup.c                      |  535 +++++---
 source3/smbd/smb2_setinfo.c                        |    2 +-
 source3/smbd/smb2_tcon.c                           |  100 +-
 source3/smbd/smb2_write.c                          |    4 +-
 source3/smbd/smbXsrv_open.c                        | 1075 ++++++++++++++
 source3/smbd/smbXsrv_session.c                     | 1526 ++++++++++++++++++++
 source3/smbd/smbXsrv_tcon.c                        | 1166 +++++++++++++++
 source3/smbd/smbXsrv_version.c                     |  260 ++++
 source3/smbd/statvfs.c                             |   86 +-
 source3/torture/pdbtest.c                          |   34 +-
 source3/torture/test_smb2.c                        |   28 +-
 source3/utils/cclean.c                             |  305 ++++
 source3/utils/net.c                                |    2 +
 source3/utils/net.h                                |    1 +
 source3/utils/net_registry.c                       |  337 ++++-
 source3/utils/net_registry_util.c                  |    2 +-
 source3/utils/net_status.c                         |    2 +-
 source3/utils/ntlm_auth.c                          |   15 +-
 source3/utils/status.c                             |    3 +-
 source3/web/cgi.c                                  |    5 +-
 source3/web/statuspage.c                           |    4 +-
 source3/winbindd/idmap_hash/idmap_hash.c           |   20 +-
 source3/winbindd/idmap_hash/mapfile.c              |   10 +-
 source3/winbindd/idmap_tdb.c                       |   19 +-
 source3/winbindd/idmap_tdb_common.c                |    2 +-
 source3/winbindd/winbindd_sids_to_xids.c           |   27 +-
 source3/wscript                                    |   25 +-
 source3/wscript_build                              |   26 +-
 source4/auth/auth.h                                |    7 -
 source4/auth/ntlm/auth.c                           |   30 -
 source4/auth/ntlm/auth_anonymous.c                 |    1 -
 source4/auth/ntlm/auth_developer.c                 |   54 -
 source4/auth/ntlm/auth_sam.c                       |    2 -
 source4/auth/ntlm/auth_unix.c                      |    1 -
 source4/auth/ntlm/auth_winbind.c                   |    2 -
 source4/dsdb/common/util.c                         |    8 +-
 source4/dsdb/repl/drepl_extended.c                 |   14 +-
 source4/dsdb/repl/drepl_out_pull.c                 |   20 +-
 source4/dsdb/repl/replicated_objects.c             |   55 +
 source4/dsdb/samdb/cracknames.c                    |  148 ++-
 source4/dsdb/samdb/ldb_modules/extended_dn_in.c    |   59 +-
 source4/dsdb/samdb/ldb_modules/linked_attributes.c |  107 ++-
 source4/dsdb/samdb/ldb_modules/operational.c       |   38 +-
 source4/dsdb/samdb/ldb_modules/partition.c         |    7 +
 .../dsdb/samdb/ldb_modules/partition_metadata.c    |   32 +
 source4/dsdb/samdb/ldb_modules/password_hash.c     |   12 -
 source4/dsdb/samdb/ldb_modules/repl_meta_data.c    |   20 +-
 source4/dsdb/samdb/ldb_modules/samba_dsdb.c        |    2 +-
 source4/dsdb/samdb/ldb_modules/samldb.c            |  104 ++-
 source4/dsdb/samdb/ldb_modules/schema_load.c       |  231 +++-
 source4/dsdb/samdb/samdb.h                         |   10 +
 source4/dsdb/schema/schema.h                       |   13 +-
 source4/dsdb/schema/schema_init.c                  |    1 +
 source4/dsdb/schema/schema_set.c                   |   12 +-
 source4/dsdb/schema/schema_syntax.c                |    1 -
 source4/dsdb/tests/python/acl.py                   |   10 +-
 source4/dsdb/tests/python/dirsync.py               |   18 +-
 source4/dsdb/tests/python/ldap_schema.py           |    9 +
 source4/dsdb/tests/python/sec_descriptor.py        |    8 +-
 source4/include/includes.h                         |    3 +
 source4/ldap_server/ldap_backend.c                 |   25 +-
 source4/libcli/ldap/ldap_controls.c                |   96 ++
 source4/libcli/pysmb.c                             |    2 +-
 source4/ntvfs/unixuid/vfs_unixuid.c                |   11 +-
 source4/scripting/bin/samba_upgradedns             |   64 +-
 source4/scripting/python/samba/join.py             |   74 +-
 source4/scripting/python/samba/netcmd/domain.py    |   30 +-
 source4/scripting/python/samba/netcmd/gpo.py       |   10 +-
 source4/scripting/python/samba/netcmd/group.py     |    7 +-
 .../scripting/python/samba/provision/__init__.py   |    8 +-
 .../scripting/python/samba/provision/sambadns.py   |   89 +-
 source4/scripting/python/samba/samdb.py            |    7 +-
 source4/scripting/python/samba/upgrade.py          |    6 +-
 source4/selftest/tests.py                          |   33 +-
 source4/setup/named.conf                           |    2 +-
 source4/setup/named.txt                            |   23 +-
 source4/smbd/pidfile.c                             |    3 +
 source4/torture/raw/session.c                      |  200 +++
 source4/torture/rpc/samlogon.c                     |  260 ++--
 source4/torture/rpc/spoolss.c                      |   81 +
 source4/torture/smb2/durable_open.c                |  215 +++-
 source4/torture/smb2/session.c                     |   91 +-
 source4/torture/unix/whoami.c                      |   95 +-
 testprogs/blackbox/test_kinit.sh                   |   33 +
 testprogs/blackbox/test_ldb.sh                     |   16 +-
 testprogs/blackbox/test_pdbtest.sh                 |  101 ++
 tests/summary.c                                    |    2 +-
 testsuite/smbd/sec_ctx1.c                          |    4 +-
 testsuite/smbd/sec_ctx_nonroot.c                   |    4 +-
 wintest/conf/bbaumbach.conf                        |   97 ++
 wintest/test-s4-howto.py                           |   36 +-
 wintest/wintest.py                                 |   46 +-
 wscript                                            |    9 +-
 wscript_build                                      |    3 +-
 364 files changed, 16616 insertions(+), 3726 deletions(-)
 create mode 100644 ctdb/include/ctdb.h
 create mode 100644 ctdb/include/ctdb_client.h
 create mode 100644 ctdb/include/ctdb_private.h
 create mode 100644 ctdb/include/ctdb_protocol.h
 create mode 100644 ctdb/include/ctdb_typesafe_cb.h
 delete mode 100644 examples/bind9-patches/0001-leave-the-question-section-in-update-responses.patch
 delete mode 100644 examples/bind9-patches/0002-prevent-a-valgrind-uninitialised-memory-warning.patch
 delete mode 100644 examples/bind9-patches/0003-don-t-compress-TSIG-names.patch
 delete mode 100644 examples/bind9-patches/0004-If-tkey-gssapi-initialisation-fails-then-heck-for-th.patch
 delete mode 100644 examples/bind9-patches/0005-windows-doesn-t-return-valid-GSSAPI-sequence-numbers.patch
 delete mode 100644 examples/bind9-patches/README
 create mode 100644 lib/dbwrap/dbwrap_local_open.c
 create mode 100644 lib/ntdb/test/api-94-expand-during-parse.c
 create mode 100644 lib/ntdb/test/api-95-read-only-during-parse.c
 create mode 100644 lib/ntdb/test/no-fsync.h
 create mode 100644 lib/util/setid.c
 create mode 100644 lib/util/setid.h
 create mode 100644 lib/util/util_ntdb.c
 create mode 100644 lib/util/util_ntdb.h
 create mode 100755 script/random-sleep.sh
 create mode 100644 source3/librpc/idl/smbXsrv.idl
 create mode 100644 source3/smbd/smbXsrv_open.c
 create mode 100644 source3/smbd/smbXsrv_session.c
 create mode 100644 source3/smbd/smbXsrv_tcon.c
 create mode 100644 source3/smbd/smbXsrv_version.c
 create mode 100644 source3/utils/cclean.c
 create mode 100755 testprogs/blackbox/test_pdbtest.sh
 create mode 100644 wintest/conf/bbaumbach.conf


Changeset truncated at 500 lines:

diff --git a/VERSION b/VERSION
index 7d85cf3..1ded558 100644
--- a/VERSION
+++ b/VERSION
@@ -67,7 +67,7 @@ SAMBA_VERSION_ALPHA_RELEASE=
 # e.g. SAMBA_VERSION_BETA_RELEASE=1                    #
 #  ->  "4.0.0beta1"                                    #
 ########################################################
-SAMBA_VERSION_BETA_RELEASE=2
+SAMBA_VERSION_BETA_RELEASE=3
 
 ########################################################
 # For 'pre' releases the version will be               #
diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index c4ba7f3..b41f3a3 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -1,4 +1,4 @@
-What's new in Samba 4 beta2
+What's new in Samba 4 beta3
 =============================
 
 Samba 4.0 will be the next version of the Samba suite and incorporates
@@ -11,7 +11,7 @@ and above.
 WARNINGS
 ========
 
-Samba4 beta2 is not a final Samba release, however we are now making
+Samba4 beta3 is not a final Samba release, however we are now making
 good progress towards a Samba 4.0 release, of which this is a preview.
 Be aware the this release contains the best of all of Samba's
 technology parts, both a file server (that you can reasonably expect
@@ -94,43 +94,39 @@ Python programs to interface to Samba's internals, and many tools and
 internal workings of the DC code is now implemented in python.
 
 
-CHANGES SINCE beta1
+CHANGES SINCE beta2
 =====================
 
-For a list of changes since beta1, please see the git log.
+For a list of changes since beta2, please see the git log.
 
 $ git clone git://git.samba.org/samba.git
 $ cd samba.git
-$ git log samba-4.0.0beta1..samba-4.0.0beta2
+$ git log samba-4.0.0beta2..samba-4.0.0beta3
 
 Some major user-visible changes include:
 
-The default file server for EXISTING USERS has changed to s3fs.  To
-continue to use ntvfs, you must set in your smb.conf:
-
-    server services = +smb -s3fs
-    dcerpc endpoint servers = +winreg +srvsvc
-
-samba-tool dbcheck will now upgrade older databases that are missing
-GUIDs in the schema partition.  
-
-The 'samba-tool domain samba3upgrade' command is now called
-'samba-tool domain classicupgrade' and now creates users and groups
-with the posixAccount objectClass and uidNumber and gidNumber values.
-
-The new 'idmap_ldb:use rfc2307' parameter allows these values to be
-used instead of the idmap.ldb, where found in the directory.
-
-Work has continued to make Samba more portable to a wide variety of
-Unix-like systems, and to support --without-ad-dc on systems lacking a
-modern MIT krb5.
-
-Less visible, but very importantly, the work has continued in restructuring
-the smbd file server to implement SMB3.
-
-The TDB2 database library has been changed to ntdb, but will not be
-the default db layer for the 4.0 release.  We will continue to use tdb1.
-
+The failure to start up due to a blocking smbd-fileserver.conf.pid has
+been resolved.
+
+Samba now includes support for version 2.1 of the SMB protocol,
+the SMB2 version of Windows 7 and 2008R2, including dynamic
+reauthentication and support for multi-credit (large MTU).
+Consequently, Samba negotiates SMB 2.1 by default: The value "SMB2"
+for the configuration parameter "max protocol" has been changed to
+be an alias for SMB 2.1. Previously, the default SMB2 version of
+Samba was the original version 2.0 of SMB that was shipped with
+Windows Vista and 2008.
+
+Samba now offers basic experimental support for SMB3, the next version
+of the SMB protocol (formerly known as SMB 2.2) that will be available
+with Windows 8 and Windows Server 2012. Negotiation of SMB3 can be
+activated by setting "max protocol" to "SMB3" in smb.conf.
+
+Thanks to upgrades to our AD DC code, particularly in schema handling,
+Samba can now correctly handle the installation of Microsoft Exchange
+2010.  Other issues prevent run-time operation, but this is a major
+milestone in supporting one of the single mode demanding Active
+Directory applications.
 
 KNOWN ISSUES
 ============
diff --git a/auth/common_auth.h b/auth/common_auth.h
index cf21543..a40f7c2 100644
--- a/auth/common_auth.h
+++ b/auth/common_auth.h
@@ -82,8 +82,6 @@ struct auth4_context {
 		/* Who set this up in the first place? */
 		const char *set_by;
 
-		bool may_be_modified;
-
 		DATA_BLOB data;
 	} challenge;
 
@@ -113,8 +111,6 @@ struct auth4_context {
 
 	NTSTATUS (*get_ntlm_challenge)(struct auth4_context *auth_ctx, uint8_t chal[8]);
 
-	bool (*challenge_may_be_modified)(struct auth4_context *auth_ctx);
-
 	NTSTATUS (*set_ntlm_challenge)(struct auth4_context *auth_ctx, const uint8_t chal[8], const char *set_by);
 
 	NTSTATUS (*generate_session_info)(struct auth4_context *auth_context,
diff --git a/auth/gensec/spnego.c b/auth/gensec/spnego.c
index 6ce97d9..5923200 100644
--- a/auth/gensec/spnego.c
+++ b/auth/gensec/spnego.c
@@ -713,8 +713,7 @@ static NTSTATUS gensec_spnego_create_negTokenInit(struct gensec_security *gensec
  * This is the case, where the client is the first one who sends data
 */
 
-static NTSTATUS gensec_spnego_server_negTokenTarg(struct gensec_security *gensec_security, 
-						  struct spnego_state *spnego_state,
+static NTSTATUS gensec_spnego_server_negTokenTarg(struct spnego_state *spnego_state,
 						  TALLOC_CTX *out_mem_ctx, 
 						  NTSTATUS nt_status,
 						  const DATA_BLOB unwrapped_out,
@@ -812,8 +811,7 @@ static NTSTATUS gensec_spnego_update(struct gensec_security *gensec_security, TA
 								     spnego.negTokenInit.mechToken, 
 								     &unwrapped_out);
 			
-			nt_status = gensec_spnego_server_negTokenTarg(gensec_security,
-								      spnego_state,
+			nt_status = gensec_spnego_server_negTokenTarg(spnego_state,
 								      out_mem_ctx,
 								      nt_status,
 								      unwrapped_out,
@@ -974,8 +972,7 @@ static NTSTATUS gensec_spnego_update(struct gensec_security *gensec_security, TA
 			}
 		}
 
-		nt_status = gensec_spnego_server_negTokenTarg(gensec_security,
-							      spnego_state,
+		nt_status = gensec_spnego_server_negTokenTarg(spnego_state,
 							      out_mem_ctx, 
 							      nt_status,
 							      unwrapped_out,
diff --git a/auth/ntlmssp/ntlmssp_server.c b/auth/ntlmssp/ntlmssp_server.c
index bb86c9c..d9bea1c 100644
--- a/auth/ntlmssp/ntlmssp_server.c
+++ b/auth/ntlmssp/ntlmssp_server.c
@@ -131,13 +131,6 @@ NTSTATUS gensec_ntlmssp_server_negotiate(struct gensec_security *gensec_security
 		return NT_STATUS_NOT_IMPLEMENTED;
 	}
 
-	/* Check if we may set the challenge */
-	if (auth_context->challenge_may_be_modified) {
-		if (!auth_context->challenge_may_be_modified(auth_context)) {
-			ntlmssp_state->neg_flags &= ~NTLMSSP_NEGOTIATE_NTLM2;
-		}
-	}
-
 	/* The flags we send back are not just the negotiated flags,
 	 * they are also 'what is in this packet'.  Therfore, we
 	 * operate on 'chal_flags' from here on
diff --git a/buildtools/wafsamba/irixcc.py b/buildtools/wafsamba/irixcc.py
index f29f9a0..f3cb451 100644
--- a/buildtools/wafsamba/irixcc.py
+++ b/buildtools/wafsamba/irixcc.py
@@ -17,18 +17,18 @@ def find_irixcc(conf):
     cc = None
     if v['CC']: cc = v['CC']
     elif 'CC' in conf.environ: cc = conf.environ['CC']
-    if not cc:
-        cc = conf.find_program('cc', var='CC')
-        cc += ' -c99'
+    if not cc: cc = conf.find_program('cc', var='CC')
     if not cc: conf.fatal('irixcc was not found')
     cc = conf.cmd_to_list(cc)
 
     try:
-        if Utils.cmd_output(cc + ['-version']) != '':
+        if Utils.cmd_output(cc + ['-c99'] + ['-version']) != '':
             conf.fatal('irixcc %r was not found' % cc)
     except ValueError:
         conf.fatal('irixcc -v could not be executed')
 
+    conf.env.append_unique('CCFLAGS', '-c99')
+
     v['CC']  = cc
     v['CC_NAME'] = 'irix'
 
diff --git a/ctdb/include/ctdb.h b/ctdb/include/ctdb.h
new file mode 100644
index 0000000..93224cb
--- /dev/null
+++ b/ctdb/include/ctdb.h
@@ -0,0 +1,1186 @@
+/*
+   ctdb database library
+
+   Copyright (C) Ronnie sahlberg 2010
+   Copyright (C) Rusty Russell 2010
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, see <http://www.gnu.org/licenses/>.
+*/
+
+#ifndef _CTDB_H
+#define _CTDB_H
+#include <sys/types.h>
+#include <stdint.h>
+#include <stdbool.h>
+#include <stdarg.h>
+#include <stdio.h>
+#include <tdb.h>
+#include <netinet/in.h>
+#include <ctdb_protocol.h>
+
+/**
+ * ctdb - a library for accessing tdbs controlled by ctdbd
+ *
+ * ctdbd (clustered tdb daemon) is a daemon designed to syncronize TDB
+ * databases across a cluster.  Using this library, you can communicate with
+ * the daemon to access the databases, pass messages across the cluster, and
+ * control the daemon itself.
+ *
+ * The general API is event-driven and asynchronous: you call the
+ * *_send functions, supplying callbacks, then when the ctdbd file
+ * descriptor is usable, call ctdb_service() to perform read from it
+ * and call your callbacks, which use the *_recv functions to unpack
+ * the replies from ctdbd.
+ *
+ * There is also a synchronous wrapper for each function for trivial
+ * programs; these can be found in the section marked "Synchronous API".
+ */
+
+/**
+ * ctdb_log_fn_t - logging function for ctdbd
+ * @log_priv: private (typesafe) arg via ctdb_connect
+ * @severity: syslog-style severity
+ * @format: printf-style format string.
+ * @ap: arguments for formatting.
+ *
+ * The severity passed to log() are as per syslog(3).  In particular,
+ * LOG_DEBUG is used for tracing, LOG_WARNING is used for unusual
+ * conditions which don't necessarily return an error through the API,
+ * LOG_ERR is used for errors such as lost communication with ctdbd or
+ * out-of-memory, LOG_ALERT is used for library usage bugs, LOG_CRIT is
+ * used for libctdb internal consistency checks.
+ *
+ * The log() function can be typesafe: the @log_priv arg to
+ * ctdb_donnect and signature of log() should match.
+ */
+typedef void (*ctdb_log_fn_t)(void *log_priv,
+			      int severity, const char *format, va_list ap);
+
+/**
+ * ctdb_connect - connect to ctdb using the specified domain socket.
+ * @addr: the socket address, or NULL for default
+ * @log: the logging function
+ * @log_priv: the private argument to the logging function.
+ *
+ * Returns a ctdb context if successful or NULL.  Use ctdb_disconnect() to
+ * release the returned ctdb_connection when finished.
+ *
+ * See Also:
+ *	ctdb_log_fn_t, ctdb_log_file()
+ */
+struct ctdb_connection *ctdb_connect(const char *addr,
+				     ctdb_log_fn_t log_fn, void *log_priv);
+
+/**
+ * ctdb_log_file - example logging function
+ *
+ * Logs everything at priority LOG_WARNING or above to the file given (via
+ * the log_priv argument, usually stderr).
+ */
+void ctdb_log_file(FILE *, int, const char *, va_list);
+
+/**
+ * ctdb_log_level - level at which to call logging function
+ *
+ * This variable globally controls filtering on the logging function.
+ * It is initialized to LOG_WARNING, meaning that strange but nonfatal
+ * events, as well as errors and API misuses are reported.
+ *
+ * Set it to LOG_DEBUG to receive all messages.
+ */
+extern int ctdb_log_level;
+
+/**
+ * ctdb_disconnect - close down a connection to ctdbd.
+ * @ctdb: the ctdb connectio returned from ctdb_connect.
+ *
+ * The @ctdb arg will be freed by this call, and must not be used again.
+ */
+void ctdb_disconnect(struct ctdb_connection *ctdb);
+
+/***
+ *
+ *  Asynchronous API
+ *
+ ***/
+
+/**
+ * ctdb_num_active - get the number of active commands
+ * @ctdb: the ctdb_connection from ctdb_connect.
+ *
+ * This command can be used to find the number of active commands we have
+ * issued. An active command is a command we have queued, or sent
+ * to the ctdb daemon but which we have not yet received a reply to.
+ *
+ * See Also:
+ *	ctdb_num_in_flight(), ctdb_num_out_queue()
+ */
+int ctdb_num_active(struct ctdb_connection *ctdb);
+
+/**
+ * ctdb_num_in_flight - get the number of commands in flight.
+ * @ctdb: the ctdb_connection from ctdb_connect.
+ *
+ * This command can be used to find the number of commands we have
+ * sent to the ctdb daemon to which we have not yet received/processed
+ * the reply.
+ *
+ * See Also:
+ *	ctdb_num_out_queue(), ctdb_num_active()
+ */
+int ctdb_num_in_flight(struct ctdb_connection *ctdb);
+
+/**
+ * ctdb_num_out_queue - get the number of commands in the out queue
+ * @ctdb: the ctdb_connection from ctdb_connect.
+ *
+ * This command can be used to find the number of commands we have
+ * queued for delivery to the ctdb daemon but have not yet been
+ * written to the domain socket.
+ *
+ * See Also:
+ *	ctdb_num_in_flight(), ctdb_num_active()
+ */
+int ctdb_num_out_queue(struct ctdb_connection *ctdb);
+
+/**
+ * ctdb_get_fd - get the filedescriptor to select/poll on
+ * @ctdb: the ctdb_connection from ctdb_connect.
+ *
+ * By using poll or select on this file descriptor, you will know when to call
+ * ctdb_service().
+ *
+ * See Also:
+ *	ctdb_which_events(), ctdb_service()
+ */
+int ctdb_get_fd(struct ctdb_connection *ctdb);
+
+/**
+ * ctdb_which_events - determine which events ctdb_service wants to see
+ * @ctdb: the ctdb_connection from ctdb_connect.
+ *
+ * This returns POLLIN, possibly or'd with POLLOUT if there are writes
+ * pending.  You can set this straight into poll.events.
+ *
+ * See Also:
+ *	ctdb_service()
+ */
+int ctdb_which_events(struct ctdb_connection *ctdb);
+
+/**
+ * ctdb_service - service any I/O and callbacks from ctdbd communication
+ * @ctdb: the ctdb_connection from ctdb_connect.
+ * @revents: which events are available.
+ *
+ * This is the core of the library: it read and writes to the ctdbd
+ * socket.  It may call callbacks registered with the various _send
+ * functions.
+ *
+ * revents is a bitset: POLLIN and/or POLLOUT may be set to indicate
+ * it is worth attempting to read/write the (nonblocking)
+ * filedescriptor respectively.
+ *
+ * Note that the synchronous functions call this internally.
+ * Returns false on catastrophic failure.
+ */
+bool ctdb_service(struct ctdb_connection *ctdb, int revents);
+
+/**
+ * struct ctdb_request - handle for an outstanding request
+ *
+ * This opaque structure returned from various *_send functions gives
+ * you a handle by which you can cancel a request.  You can't do
+ * anything else with it until the request is completed and it is
+ * handed to your callback function.
+ */
+struct ctdb_request;
+
+/**
+ * ctdb_request_free - free a completed request
+ *
+ * This frees a request: you should only call it once it has been
+ * handed to your callback.  For incomplete requests, see ctdb_cancel().
+ */
+void ctdb_request_free(struct ctdb_request *req);
+
+/**
+ * ctdb_callback_t - callback for completed requests.
+ *
+ * This would normally unpack the request using ctdb_*_recv().  You
+ * must free the request using ctdb_request_free().
+ *
+ * Note that due to macro magic, actual your callback can be typesafe:
+ * instead of taking a void *, it can take a type which matches the
+ * actual private parameter.
+ */
+typedef void (*ctdb_callback_t)(struct ctdb_connection *ctdb,
+				struct ctdb_request *req, void *private_data);
+
+/**
+ * struct ctdb_db - connection to a particular open TDB
+ *
+ * This represents a particular open database: you receive it from
+ * ctdb_attachdb or ctdb_attachdb_recv to manipulate a database.
+ *
+ * You have to free the handle with ctdb_detachdb() when finished with it.
+ */
+struct ctdb_db;
+
+/**
+ * ctdb_attachdb_send - open a clustered TDB
+ * @ctdb: the ctdb_connection from ctdb_connect.
+ * @name: the filename of the database (no /).
+ * @persistent: whether the database is persistent across ctdbd's life
+ * @tdb_flags: the flags to pass to tdb_open.
+ * @callback: the callback when we're attached or failed (typesafe)
+ * @cbdata: the argument to callback()
+ *
+ * This function connects to a TDB controlled by ctdbd.  It can create
+ * a new TDB if it does not exist, depending on tdb_flags.  Returns
+ * the pending request, or NULL on error.
+ */
+struct ctdb_request *
+ctdb_attachdb_send(struct ctdb_connection *ctdb,
+		   const char *name, bool persistent, uint32_t tdb_flags,
+		   ctdb_callback_t callback, void *cbdata);
+
+/**
+ * ctdb_attachdb_recv - read an ctdb_attach reply from ctdbd
+ * @ctdb: the ctdb_connection from ctdb_connect.
+ * @req: the completed request.
+ *
+ * This returns NULL if something went wrong, or otherwise the open database.
+ */
+struct ctdb_db *ctdb_attachdb_recv(struct ctdb_connection *ctdb,
+				   struct ctdb_request *req);
+
+
+/**
+ * struct ctdb_lock - a record lock on a clustered TDB database
+ *
+ * This locks a subset of the database across the entire cluster; it
+ * is the fundamental sychronization element for ctdb.  You cannot have
+ * more than one lock at once.
+ *
+ * You MUST NOT block during holding this lock and MUST release it
+ * quickly by performing ctdb_release_lock(lock).
+ * Do NOT make any system calls that may block while holding the lock.
+ *
+ * Try to release the lock as quickly as possible.
+ */
+struct ctdb_lock;
+
+/**
+ * ctdb_rrl_callback_t - callback for ctdb_readrecordlock_async
+ *
+ * This is not the standard ctdb_callback_t, because there is often no
+ * request required to access a database record (ie. if it is local already).
+ * So the callback is handed the lock directly: it might be NULL if there
+ * was an error obtaining the lock.
+ *
+ * See Also:


-- 
Samba Shared Repository


More information about the samba-cvs mailing list