summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* s3:libsmb: remove unused cli_set_port()Stefan Metzmacher2011-07-114-13/+0
| | | | metze
* s3:libsmb: also remember the local socket address after connectStefan Metzmacher2011-07-112-0/+9
| | | | metze
* s3:smb2cli_base: add my copyrightStefan Metzmacher2011-07-111-0/+1
| | | | metze
* s3-torture: run_locktest2(): replace check_error() with check_both_error()Björn Baumbach2011-07-111-10/+14
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-torture: run_locktest2(): replace cli_lock() with cli_lock32()Björn Baumbach2011-07-111-20/+35
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-torture: run_locktest1(): replace cli_lock() with cli_lock32()Björn Baumbach2011-07-111-17/+25
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-torture: locktest2: replace cli_lock() with cli_lock32()Björn Baumbach2011-07-111-1/+2
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-torture: let wait_lock() use cli_lock32() instead of cli_lock()Björn Baumbach2011-07-111-3/+13
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-libsmb: let cli_lock64 return NTSTATUS instead of boolBjörn Baumbach2011-07-113-16/+15
| | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Jul 11 12:48:38 CEST 2011 on sn-devel-104
* s3-libsmb: introduce cli_lock32()Björn Baumbach2011-07-112-0/+18
| | | | | | Same like cli_lock() but return NTSTATUS instead of bool Signed-off-by: Stefan Metzmacher <metze@samba.org>
* dbcheck: use get_lDAPDisplayName_by_attid()Andrew Tridgell2011-07-111-11/+3
| | | | | | | this is better than doing a schema search inside the dbcheck code Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Mon Jul 11 07:43:18 CEST 2011 on sn-devel-104
* dsdb: added get_lDAPDisplayName_by_attidAndrew Tridgell2011-07-112-0/+37
| | | | | | | this allows conversion from a DRS attribute ID to a LDAP display name Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com> Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* dbcheck: improved error checking in fixup of missing metdataAndrew Tridgell2011-07-111-26/+24
| | | | | | | | when fixing missing attributes in replPropertyMetaData, allow user to confirm changes, and check for exceptions Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* s4-provision: use samba.unix2nttime() instead of hard coding NTTIME offsetsAndrew Tridgell2011-07-111-2/+2
| | | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* s4-drs: do not return links pointed to unexistant objectsMatthieu Patou2011-07-111-0/+24
| | | | | | | | | When an object is deleted, link pointed to it are marked as inactive. When the same object is purged we do not remmove the link pointed to it (we can't know them) so they stay in the database, it turns to be a problem for Windows 2008. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-dirsync: do not return linked attribute if the target object is no moreMatthieu Patou2011-07-111-0/+29
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-dsdb: allow objectsid to be specified in a modification operationMatthieu Patou2011-07-111-3/+5
| | | | | | if we have the provision control, it's used by dbcheck Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-samba-tool: dbcheck, check and fix broken metadataMatthieu Patou2011-07-111-0/+77
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-python: Add functions to get linkid and systemflags of an attributeMatthieu Patou2011-07-112-0/+76
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-dsdb: if the provision control is specified, update replication metadata ↵Matthieu Patou2011-07-111-1/+7
| | | | | | even if the data hasn't change Signed-off-by: Andrew Tridgell <tridge@samba.org>
* upgradeprovision: reduce the number of attribute that we skipMatthieu Patou2011-07-111-2/+1
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-provision: fix the value of creation timestamp to be a MS timestampMatthieu Patou2011-07-111-2/+2
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-dsdb: when replacing linked attribute take always the new dn as the old ↵Matthieu Patou2011-07-111-1/+1
| | | | | | | | | | dn might be broken The usual use case is that you have a not complete linked attribute (ie. without the SID) if we keep using the old dn, then the SID will never be added. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-dsdb: check for single valued attribute in repl_meta_data moduleMatthieu Patou2011-07-111-0/+11
| | | | | | | | This is needed because we can have more than 1 value in a single valued attribute as we store also deleted values. So we do the check in repl_meta_data and then indicate LDB to do the check. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* dbcheck: check all objects, including deleted objectsAndrew Tridgell2011-07-112-17/+18
| | | | | | | | | | this makes dbcheck search over all objects, deleted or not. This matters because when another DC replicates from this DC it replicates the deleted objects as well, so invalid attributes in deleted objects can cause problems on the new DC (for example, windows can get stuck or even crash during the replication) Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* s4-dsdb: deleted objects are expected to be missing mandatory attributesAndrew Tridgell2011-07-111-1/+2
| | | | | | | | | the objectclass_attrs validation that an object contains all mandatory attributes is incorrect for deleted objects, as they get stripped of some mandatory attributes when deleted (for example, objectCategory gets stripped) Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* s4-dsdb: fixed crash bug in extended_dn_inAndrew Tridgell2011-07-111-2/+4
| | | | | | | | | when extended_dn_in fails to resolve a GUID extended DN component, the debug code assumed that it was a search operation, and accessed ac->req->op.search.base, which is not valid for non-search DN expansions. Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* dbcheck: added confirm_all support for remaining checksAndrew Tridgell2011-07-111-5/+10
| | | | | | | this allows the user to choose all/none for all the remaining database checks Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* dbcheck: use specified DB schema for non-LDAP URLsAndrew Tridgell2011-07-111-2/+9
| | | | | | | when connecting to a local database with -H we can use that databases schema Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* socket_wrapper: make sure interfaces are in the valid range on bind()Stefan Metzmacher2011-07-101-0/+5
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sun Jul 10 18:24:14 CEST 2011 on sn-devel-104
* s4:lib/socket: iface_list_wildcard() should only return "::" if we have ipv6 ↵Stefan Metzmacher2011-07-101-1/+13
| | | | | | | | | interfaces If glibc has IPv6 support, but it's not enabled in the running kernel we should not try to listen on "::". metze
* s3:smb2cli_tcon: use tevent_req_oom()Stefan Metzmacher2011-07-101-1/+1
| | | | metze
* s3: Fix Coverity ID 2587,2588: CHECKED_RETURNVolker Lendecke2011-07-102-2/+2
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Jul 10 10:36:11 CEST 2011 on sn-devel-104
* s3:smb2cli_base: ask for the next response if there're still pending requestsStefan Metzmacher2011-07-091-1/+21
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sat Jul 9 13:55:04 CEST 2011 on sn-devel-104
* s3:smb2cli_base: make use of tevent_req_defer_callback()Stefan Metzmacher2011-07-091-28/+64
| | | | | | | | | In order to notify requests of transport layer errors, we need to defer the triggering of the callbacks, otherwise we may crash, if one of the callbacks destroys the cli_state. metze
* s3:smb2cli_base: fix memory hierachy in smb2cli_req_recv()Stefan Metzmacher2011-07-094-27/+44
| | | | | | | | We need to use talloc_reference() if there're more than one response, but we use it in a way that the caller can't call talloc_free() or talloc_unlink() on it. metze
* s3:smb2cli_base: call smb2cli_req_unset_pending() before tevent_req_done()Stefan Metzmacher2011-07-091-0/+1
| | | | metze
* s3:smb2cli_base: unset the destructor in smb2cli_req_unset_pending()Stefan Metzmacher2011-07-091-2/+3
| | | | metze
* s3:smb2cli_base: keep the order of pending requestsStefan Metzmacher2011-07-091-2/+2
| | | | metze
* s3:smb2cli_base: rename 'result' => 'req' in smb2cli_req_create()Stefan Metzmacher2011-07-091-13/+13
| | | | metze
* tevent: change version to 0.9.13 after adding tevent_req_defer_callback()Stefan Metzmacher2011-07-092-1/+76
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sat Jul 9 12:16:44 CEST 2011 on sn-devel-104
* tevent: add tevent_req_defer_callback()Stefan Metzmacher2011-07-093-0/+60
| | | | metze
* tevent: fix comments for tevent_req_post()Stefan Metzmacher2011-07-091-2/+2
| | | | metze
* Move smbd_smb2_request_check_tcon() smbd_smb2_request_check_session() next ↵Jeremy Allison2011-07-084-121/+130
| | | | | | | to their only user and make them static. Add comments. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Jul 8 21:01:40 CEST 2011 on sn-devel-104
* s3-waf: split out LIBCLI_WINREG_INTERNAL as LIBCLI_WINREG was pulling in rpc ↵Günther Deschner2011-07-082-8/+9
| | | | | | | | | | | server code in undesired places. Andreas, please check. Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Jul 8 18:34:44 CEST 2011 on sn-devel-104
* winreg: Ensure server return status is set on successDavid Disseldorp2011-07-081-83/+30
| | | | | | | | | | | Currently cli_winreg.c functions only set the returned server werror status on failure, if the server request succeeds the value remains uninitialised. Signed-off-by: Andreas Schneider <asn@samba.org> Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Fri Jul 8 16:32:39 CEST 2011 on sn-devel-104
* winreg: Use the ntstatus return code for client side errorsDavid Disseldorp2011-07-081-37/+21
| | | | | | | | | | | cli_winreg.c functions indicate status to the caller in two ways. The ntstatus return code indicates client side errors, the pwerr argument carries the server response error code. Many functions are filling the pwerr argument on client side error, this change removes these cases. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:libsmb: remove unused cli->inbuf and cli->bufsizeStefan Metzmacher2011-07-083-22/+1
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Jul 8 15:21:46 CEST 2011 on sn-devel-104
* s3:client: use an inbuf on the stack in readline_callback()Stefan Metzmacher2011-07-081-2/+3
| | | | metze
* s3:libsmb: clistr_pull_talloc() doesn't need base_ptr and flags2 with STR_ASCIIStefan Metzmacher2011-07-081-2/+2
| | | | | | interpret_short_filename() always parses OEM_Strings (in DOS charset). metze