summaryrefslogtreecommitdiffstats
path: root/source3/utils
Commit message (Collapse)AuthorAgeFilesLines
* Fix a warning message.Jeremy Allison2010-12-221-1/+2
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Dec 22 03:59:18 CET 2010 on sn-devel-104
* s3: Remove unused "retry" from cli_full_connectionVolker Lendecke2010-12-205-10/+7
|
* s3:net ads dns register: use "cluster addresses" option if configured (bug ↵Stefan Metzmacher2010-12-171-3/+11
| | | | | | | | | | | #7871) metze Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Dec 17 16:49:14 CET 2010 on sn-devel-104
* s3:net ads dns register: add support for specifying addresse on the ↵Michael Adam2010-12-171-3/+40
| | | | | | | | | | | | commandline (bug #7871) In the clustering case, this is also made the only possiblity to do dns updates, since the list addresses on the local interfaces is not suitable in that case. This fixes the "net ads dns register" part of bug #7871. It might be extended by a parsing of the "cluster addresses" setting. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:net: add net_update_dns_ext() that accepts a list of addresses as ↵Michael Adam2010-12-171-12/+27
| | | | | | | | | | | | parameter (bug# 7871) This generalized form of net_update_dns() will be used to add support for specifying a list of addresses on the commandline of "net ads dns register". This prepares the "net ads dns register" part of the fix for bug #7871. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:net: disable dynamic dns updates at the end of "net ads join" in a ↵Michael Adam2010-12-171-0/+19
| | | | | | | | | | | | | | | cluster (bug #7871) In a clustered environment, registering the set of ip addresses that are assigned to the interfaces of the node that performs the join does usually not have the desired effect, since the local interfaces do not carry complete set of the cluster's public IP addresses. And it can also contain internal addresses that should not be visible to the outside at all. In order to do dns updates in a clustererd setup, use net ads dns register. This fixes the net ads join part of bug #7871. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-net: fix net sid type build warning.Günther Deschner2010-12-171-1/+1
| | | | Guenther
* s3/net: tz argument should be NULL of courseBjörn Jacke2010-12-171-1/+1
| | | | | Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Fri Dec 17 01:48:40 CET 2010 on sn-devel-104
* Fix bug 7866 - "net" in v3-6-test broken.Jeremy Allison2010-12-153-3/+22
| | | | | | | Someone wasn't careful about testing when not running as root :-). Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Dec 15 20:45:25 CET 2010 on sn-devel-104
* s3/net: don't use external "date" to make "net time set" more portableBjörn Jacke2010-12-141-14/+10
| | | | | | | the "date" syntax is different for example on *BSD Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Tue Dec 14 15:31:03 CET 2010 on sn-devel-104
* As we handle missing sendfile() inside lib/sendfile.c, remove the ↵Jeremy Allison2010-12-131-2/+0
| | | | | | | WITH_SENDFILE ifdefs. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Dec 13 23:47:07 CET 2010 on sn-devel-104
* s3-net Allow 'net ads dns register' to take an optional hostname argumentAndrew Bartlett2010-12-101-6/+10
| | | | | | This allows the administrator to more carefully chose what name to register. Andrew Bartlett
* s3:ntlm_auth: support clients which offer a spnego mechs we don't supportStefan Metzmacher2010-12-071-110/+169
| | | | | | | | | | | | | Before we rejected the authentication if we don't support the first spnego mech the client offered. We now negotiate the first mech we support. This fix works arround problems, when a client sends the NEGOEX (1.3.6.1.4.1.311.2.2.30) oid, which we don't support. metze
* s3:ntlm_auth: free session key, as we don't use it (at least for now)Stefan Metzmacher2010-12-071-1/+2
| | | | metze
* s3:ntlm_auth: fix memory leak in the raw ntlmssp code pathStefan Metzmacher2010-12-071-0/+2
| | | | metze
* s3: Properly print binary values "net cache"Volker Lendecke2010-11-281-7/+21
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Nov 28 15:03:26 CET 2010 on sn-devel-104
* s3: Use localtime_r, libreplace defines itVolker Lendecke2010-11-271-11/+9
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Nov 27 20:50:27 CET 2010 on sn-devel-104
* s3-netapi Add libnetapi_net_init(), don't double-init common Samba subsystemsAndrew Bartlett2010-11-243-7/+10
| | | | | | | | | | | | | The issue here is that libnet and net were both trying to load the smb.conf files, the case tables and set the debug levels. The set of the debug levels caused problems, because it would force the level to 0, not (say) 10 as requested on the command line. This regression was apparently introduced in cf4de8ec2c8df2ceabbe3d836d296b058e7b19fb when eliminating AllowDebugChange. Andrew Bartlett
* s3-net: use dns_errstr() when dns commands fail.Günther Deschner2010-11-221-1/+4
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Mon Nov 22 12:31:33 CET 2010 on sn-devel-104
* Make 'net rpc printer driver' behave the same as rpcclient enumdriversJoerg Pulz2010-11-181-2/+8
| | | | | | | when dealing with unsupported architectures. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Nov 18 21:40:40 CET 2010 on sn-devel-104
* s3: string_to_sid does thorough syntax checkingVolker Lendecke2010-11-142-4/+4
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Nov 14 14:07:29 UTC 2010 on sn-devel-104
* s3: Avoid two calls cli_errstrVolker Lendecke2010-11-141-4/+9
|
* s3: Remove some duplicate prototypesVolker Lendecke2010-11-051-15/+0
|
* s3: Add "net registry getvaluesraw"Volker Lendecke2010-11-021-0/+51
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Nov 2 15:42:22 UTC 2010 on sn-devel-104
* s3-debug Move 'load_case_tables()' before lp_set_cmdline() and popt callsAndrew Bartlett2010-11-023-4/+5
| | | | | | | | | | The problem here is that we cannot run lp_set_cmdline() (directly or indirectly via the popt helpers) until load_case_tables() has been run. However, load_case_tables does not have auto-initialisation, so we must init it once, and once only. Andrew Bartlett
* s3-debug Remove last direct assignements to DEBUGLEVELAndrew Bartlett2010-11-021-1/+1
| | | | | | | | All future assignments of the debug level should go via lp_set_cmdline("log level", "x") because this will ensure the value is not overwritten in an smb.conf load. Andrew Bartlett
* s3-debug Remove 'AllowDebugChange' and use lp_set_cmdline() insteadAndrew Bartlett2010-11-0210-39/+9
| | | | | | | | | By removing this global variable, the API between the two different debug systems is made more similar. Both s3 and s4 now have lp_set_cmdline() which ensures that the smb.conf cannot overwrite these the user-specified log level. Andrew Bartlett
* s3-debug Impove setup_logging() to specify logging to stderrAndrew Bartlett2010-11-0217-31/+18
| | | | | | | | This change improves the setup_logging() API so that callers which wish to set up logging to stderr can simply ask for it, rather than directly modify the dbf global variable. Andrew Bartlett
* Fix bug #7700 - Improvement of return code of smbclientJeremy Allison2010-10-291-15/+18
| | | | | | | | | | Based on an initial patch from H Hasegawa <hasegawa.hiroyuki@fujixerox.co.jp>. Convert cli_list and associated functions to take calls that return NTSTATUS. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Oct 29 19:40:16 UTC 2010 on sn-devel-104
* s3: Convert cli_qfileinfo_basic to cli_qfileinfoVolker Lendecke2010-10-241-2/+3
|
* s3: Rename cli_fileinfo() to cli_fileinfo_basic()Volker Lendecke2010-10-241-1/+1
|
* Make getpwnam_alloc() static to lib/username.c, and ensure all username ↵Jeremy Allison2010-10-201-2/+2
| | | | | | | | | | | | lookups go through Get_Pwnam_alloc(), which is the correct wrapper function. We were using it *some* of the time anyway, so this just makes us properly consistent. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Oct 20 16:02:12 UTC 2010 on sn-devel-104
* s3-auth Use security_token_debug() from common codeAndrew Bartlett2010-10-141-1/+0
| | | | | | | | | This prints the security token including the privileges as strings instead of just a bitmap. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3 Replace is_sid_in_token() with security_token_has_sid() from common codeAndrew Bartlett2010-10-141-1/+1
| | | | | | | | The two routines are identical, so there is no need to keep both. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* libcli/security Provide a common, top level libcli/security/security.hAndrew Bartlett2010-10-1220-5/+20
| | | | | | | | | | | | | | This will reduce the noise from merges of the rest of the libcli/security code, without this commit changing what code is actually used. This includes (along with other security headers) dom_sid.h and security_token.h Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104
* samr: for correctness, rename samr_RidTypeArray to samr_RidAttrArray.Günther Deschner2010-10-071-2/+2
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu Oct 7 12:04:32 UTC 2010 on sn-devel-104
* samba: share readline wrappers among all buildsystems.Günther Deschner2010-10-011-0/+1
| | | | Guenther
* samba: share select wrappers.Günther Deschner2010-10-011-0/+1
| | | | Guenther
* s3-net: better handle obscure 0x80070002 error reply when trying to update anGünther Deschner2010-10-011-3/+7
| | | | | | not yet published printer. Guenther
* s3-net: make sure we dont crash when publishing a single printer.Günther Deschner2010-10-011-0/+5
| | | | Guenther
* s3: Add "smbcontrol winbindd ip-dropped <local-ip>"Volker Lendecke2010-09-301-0/+17
| | | | | | | | This is supposed to improve the winbind reconnect time after an ip address has been moved away from a box. Any kind of HA scenario will benefit from this, because winbindd does not have to wait for the TCP timeout to kick in when a local IP address has been dropped and DC replies are not received anymore.
* s3: Fix a typo in dump-domain-list smbcontrol usage msgVolker Lendecke2010-09-301-1/+1
|
* Change to using TDB_INCOMPATIBLE_HASH (the jenkins hash) on allJeremy Allison2010-09-273-3/+4
| | | | | | | | | | TDB_CLEAR_IF_FIRST tdb's. For tdb's like gencache where we open without CLEAR_IF_FIRST and then with CLEAR_IF_FIRST if corrupt this is still safe to use as if opening an existing tdb the new hash will be ignored - it's only used on creating a new tdb not opening an old one. Jeremy.
* Fix bug #7698 - Assert causes smbd to panic on invalid NetBIOS session request.Jeremy Allison2010-09-261-9/+32
| | | | | | | | | | | | | | Found by the CodeNomicon test suites at the SNIA plugfest. http://www.codenomicon.com/ If an invalid NetBIOS session request is received the code in name_len() in libsmb/nmblib.c can hit an assert. Re-write name_len() and name_extract() to use "buf/len" pairs and always limit reads. Jeremy.
* s3: Remove talloc_autofree_context() from smbpasswdVolker Lendecke2010-09-261-2/+2
| | | | In both cases, pwd is freed immediately
* s3: Remove talloc_autofree_context() from net_sam_provision()Volker Lendecke2010-09-261-1/+1
|
* s3: Fix bug 7470Volker Lendecke2010-09-252-2/+4
| | | | | | S_IREAD and S_IWRITE are not standard. Thanks to Joachim Schmitz <schmitz@hp.com> for reporting!
* s3-dsgetdcname: always pass in messaging context.Günther Deschner2010-09-234-1/+10
| | | | | | Volker, please check. Guenther
* s3-build: fix the build of split_tokens.Günther Deschner2010-09-231-0/+1
| | | | Guenther
* s3-registry: fix some c++ build warnings.Günther Deschner2010-09-221-1/+1
| | | | Guenther