summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* s4/ldif: Better control on ldif_write_NDR() errors processingKamen Mazdrashki2010-02-011-6/+21
| | | | | | | Current implementation mask NDR_ errors implicitly. Thus the caller has no opportunity handle such an error. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/idl: drsblobs IDL regenerationKamen Mazdrashki2010-02-013-0/+120
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/drsblobs: Custom ndr_print_ implementation for drsuapi_MSPrefixMap_EntryKamen Mazdrashki2010-02-012-1/+26
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/idl: PrefixMap description for W2K3 and W2K8 Schema:prefixMap attributeKamen Mazdrashki2010-02-011-0/+22
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* tdb: fix an early release of the global lock that can cause data corruptionVolker Lendecke2010-02-011-5/+10
| | | | | | | | | | | | | | | | | | | There was a bug in tdb where the tdb_brlock(tdb, GLOBAL_LOCK, F_UNLCK, F_SETLKW, 0, 1); (ending the transaction-"mutex") was done before the /* remove the recovery marker */ This means that when a transaction is committed there is a window where another opener of the file sees the transaction marker while the transaction committer is still fully functional and working on it. This led to transaction being rolled back by that second opener of the file while transaction_commit() gave no error to the caller. This patch moves the F_UNLCK to after the recovery marker was removed, closing this window.
* s4-smbtorture: check for RouterReplyPrinterEx packets inside backchannel in ↵Günther Deschner2010-01-311-6/+147
| | | | | | RPC-SPOOLSS-NOTIFY. Guenther
* s4-smbtorture: also test RouterRefreshPrinterChangeNotify call in ↵Günther Deschner2010-01-311-0/+25
| | | | | | RPC-SPOOLSS-NOTIFY. Guenther
* s4-smbtorture: rework spoolss_NotifyOption handling in RPC-SPOOLSS-NOTIFY.Günther Deschner2010-01-311-19/+31
| | | | Guenther
* testprogs: also print printer info during GetPrinter spoolss test.Günther Deschner2010-01-311-0/+4
| | | | Guenther
* s4:kdc streamline context initializationSimo Sorce2010-01-312-37/+58
| | | | | Allow other plugins to init the context without having it try to grab sockets or set samba specific logging.
* s4:kdc Streamline client access verification callSimo Sorce2010-01-313-70/+129
| | | | Move the core to pac-glue so that other plugins can use it.
* s4:kdc Fix netbios name retrievalSimo Sorce2010-01-311-2/+2
| | | | The code was looping but always checking only the first address.
* s4:ldb quiet down rootdse control registrationSimo Sorce2010-01-311-1/+1
|
* s3: Fix some DEBUG messagesVolker Lendecke2010-01-311-3/+3
|
* Fix bug #7079 - cliconnect gets realm wrong with trusted domains.Jeremy Allison2010-01-304-3/+91
| | | | | | | | | | | Passing NULL as dest_realm for cli_session_setup_spnego() was always using our own realm (as for a NetBIOS name). Change this to look for the mapped realm using krb5_get_host_realm() if the destination machine name is a DNS name (contains a '.'). Could get fancier with DNS name detection (length, etc.) but this will do for now. Jeremy.
* s3/smbd: Fix string buffer overflow causing heap corruptionSteven Danneman2010-01-301-1/+2
| | | | | | | | | | | | | The destname malloc size was not taking into account the 1 extra byte needed if a string without a leading '/' was passed in and that slash was added. This would cause the '\0' byte to be written past the end of the malloced destname string and corrupt whatever heap memory was there. This problem would be hit if a share name was given in smb.conf without a leading '/' and if it was the exact size of the allocated STRDUP memory which in some implementations of malloc is a power of 2.
* s4:ldb Fix check made conditional by mistakeSimo Sorce2010-01-301-7/+11
|
* s4:ldb add support for permissive modify controlSimo Sorce2010-01-301-24/+96
|
* Fix a really interesting problem found by Volker's conversion of ↵Jeremy Allison2010-01-291-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | sessionsetup SPNEGO to asynchronous code. Normally clistr_push_fn() can depend upon cli->outbuf being initialized by negprot and sessionsetup packets, and cli->outbuf[smb_flgs2] being correctly set with FLAGS2_UNICODE_STRINGS when cli_setup_packet() is called. When all the sessionsetups are async, then cli_setup_packet() is never called, the async code uses cli_setup_packet_buf() - which initializes the allocated async buffer, not the cli->outbuf one. So the first time clistr_push_fn() is called is from libsmb/clidfs.c:cli_dfs_get_referral(), just after the connection and tconX. In this case cli->outbuf has never been initialized, and cli->outbuf[smb_flgs2] = 0 so the DFS query pushes ASCII on the wire, which is not what we want :-). Remove the dependency on cli->outbuf[smb_flgs2] in clistr_push_fn(), and fake up a SVAL(cli->outbuf, smb_flg2) value using cli_ucs2(cli) function instead, which has been initialized. We only care about the FLAGS2_UNICODE_STRINGS bit anyway. I don't think this is an issue for 3.5.0 as the sessionsetup is still synchronous there, but Volker PLEASE CHECK ! Jeremy.
* Fix const warning.Jeremy Allison2010-01-291-1/+1
| | | | Jeremy
* Revert "s4:include/includes.h - Need to include "system/network.h""Matthias Dieter Wallnöfer2010-01-291-1/+0
| | | | | | This reverts commit 97fd03a15a694450e80310fc776a58c6fde58a52. This obviously broke the build. Revert it for now.
* s4:include/includes.h - Need to include "system/network.h"Matthias Dieter Wallnöfer2010-01-291-0/+1
| | | | Otherwise I don't get the definition of "struct in_addr" for "lib/util/util.h" on CentOS 4.
* s4:libcli/util/tstream.c - Need to include "system/network.h"Matthias Dieter Wallnöfer2010-01-291-0/+1
| | | | Otherwise I don't get "struct iovec" through "<sys/uio.h>" on CentOS 4.
* libcli/nbt: fix off-by-one bug in ndr_pull_wrepl_nbt_name()Stefan Metzmacher2010-01-291-2/+2
| | | | | | The scope starts at byte 17 with index 16. metze
* libcli/nbt: fix ndr_pull/push_wrepl_nbt_name()Stefan Metzmacher2010-01-291-0/+25
| | | | | | | | | | | [MS-WINSRA] — v20091104 was wrong regarding section "2.2.10.1 Name Record" If the name buffer is already 4 byte aligned Windows (at least 2003 SP1 and 2008) add 4 extra bytes. This can happen when the name has a scope. metze
* s3: link thread objects in libsmbclient only and adjust linker flagsBjörn Jacke2010-01-291-8/+10
|
* AIX doesn't have MSG_DONTWAITolivier2010-01-291-1/+1
|
* Fixed a bug caused by a typo. Infrastructure role didn't work.Nadezhda Ivanova2010-01-291-1/+1
|
* s4/ldap: Test to expoit ldb_ildap bug in case of nested search requestsKamen Mazdrashki2010-01-293-1/+205
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/ldap: Fix nested searches SEGFAULT bugKamen Mazdrashki2010-01-292-0/+15
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4: Ignore few more auto-generated filesKamen Mazdrashki2010-01-291-0/+2
|
* librpc: rerun 'make idl'Stefan Metzmacher2010-01-291-0/+3
| | | | metze
* security.idl: add wellknown TrustedInstaller SIDStefan Metzmacher2010-01-291-0/+7
| | | | metze
* s3: by default don't use pthread pool supportBjörn Jacke2010-01-291-5/+5
|
* lib/util: remove data_blob_talloc_reference()Stefan Metzmacher2010-01-292-23/+0
| | | | | | We want to avoid the usage of talloc_reference() in Samba. metze
* s4:auth_sam: avoid usage of data_blob_talloc_reference() and copy the ↵Stefan Metzmacher2010-01-291-4/+14
| | | | | | session keys metze
* s4:libcli: remove unneeded talloc_reference() usageStefan Metzmacher2010-01-291-4/+1
| | | | metze
* s4:kdc remove dead code and commentsSimo Sorce2010-01-281-5/+0
|
* s4:kdc Fill in more data fieldsSimo Sorce2010-01-281-4/+8
|
* s4:kdc move db functions in their own fileSimo Sorce2010-01-288-1468/+1621
| | | | | | | | | | Keep all heimdal related plugin code within hdb_samba4.c Move interfaces needed by multiple plugins in db-glue.c Move sequence context in main db context so that we do not depend on db->hdb_dbc in the common code. Remove unnecessary paremeters from function prototypes
* s4:kdc Use a clearer name for the samba kdc entrySimo Sorce2010-01-284-32/+30
| | | | | | Renames hdb_samba4_private to samba_kdc_entry Streamlines members of the entry and the kdc db contextto avoid unnecessary duplication.
* s4:kdc Use better db context structureSimo Sorce2010-01-286-93/+114
| | | | | | | | This allows to use a common structure not tied to hdb_samba4 Also allows to avoid many casts within hdb_samba4 functions This is the first step to abstract samba kdc databse functions so they can be used by the MIT forthcoming plugin.
* Fix bug #7069 - smbget does not return an error status after some errorsJeremy Allison2010-01-281-38/+45
| | | | | | | A combination patch from Johannes Poehlmann <johannes@lst.de> and Jeremy. Fix the return codes from smb_download_file() and smb_download_dir(). Jeremy.
* s3/winbind_ccache: Fix typo in debug message.Karolin Seeger2010-01-281-1/+1
| | | | Karolin
* tsocket: Fix the description of tstream_writev_queue_send/recvKai Blin2010-01-281-6/+6
|
* tsocket: Fix description for tstream_readv_pdu_queue_send/recvKai Blin2010-01-281-7/+6
|
* s4-ldbtest: fixed python importAndrew Tridgell2010-01-281-2/+2
|
* s4-drs: implementation of some delete test casesEduardo Lima2010-01-282-0/+201
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* cleanup: remove trailing spaces and tabsSimo Sorce2010-01-281-37/+37
|
* s4-drs: Reads uSNUrgent and sets Urgent Replication Bit for DS_ReplicaSync ↵Fernando J V da Silva2010-01-282-7/+24
| | | | | | | | | | | when necessary If an urgent replication is necessary, so the uSNUrgent stored is equal to the uSNHighest stored, then when sending the DS_ReplicaSync message it sets the DRSUAPI_DRS_SYNC_URGENT bit on DRS_OPTIONS. Signed-off-by: Fernando J V da Silva <fernandojvsilva@yahoo.com.br> Signed-off-by: Andrew Tridgell <tridge@samba.org>