summaryrefslogtreecommitdiff
path: root/source3/utils
AgeCommit message (Collapse)AuthorFilesLines
2012-11-05s3:utils fix a whitespace errorChristian Ambach1-1/+1
2012-10-30s3fs-utils: Free the popt context in smbcacls and smbquotas.Andreas Schneider2-0/+4
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Oct 30 20:22:46 CET 2012 on sn-devel-104
2012-10-30s3fs-net: Use talloc for memory allocation.Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed by: Jeremy Allison <jra@samba.org>
2012-10-29BUG 9326: Fix net ads join message for the dns domain.Andreas Schneider1-1/+1
We don't get a realm back from the server which is useable as a realm on Unix. On Unix they are case sensitive and on Windows they aren't. This confuses uses and if we write realm they try to use it as it came back in lowercase. Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Mon Oct 29 18:26:19 CET 2012 on sn-devel-104
2012-10-26ntlm_auth: Increase debug level if we use config domain name.Andreas Schneider1-2/+2
If an application like evolution-ews is using ntlm_auth it will alwys get this message cause the is no winbind running and it is not needed. Reviewed-by: Simo Sorce <idra@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri Oct 26 20:13:45 CEST 2012 on sn-devel-104
2012-10-19s3:utils/net: remove unused "net connections"Stefan Metzmacher3-284/+0
The connections.tdb will go away. metze Signed-off-by: Michael Adam <obnox@samba.org>
2012-10-19s3:net_serverid: remove connections_forall from "net serverid wipedbs"Gregor Beck1-28/+3
This tdb will go away. Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Michael Adam <obnox@samba.org>
2012-10-19s3:net_serverid: remove sessionid_traverse from "net serverid wipedbs"Gregor Beck1-23/+0
This tdb will go away. Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Michael Adam <obnox@samba.org>
2012-10-19s3:net_status_shares: use connections_forall_read for a read only traversalGregor Beck1-3/+2
Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Michael Adam <obnox@samba.org>
2012-10-19s3:smbcontrol: don't do stack_trace by connection but by server_id.Gregor Beck1-6/+7
Inparticular use serverid_traverse_read instead of connections_foralli to enumerate processes. Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Michael Adam <obnox@samba.org>
2012-10-02s3-net: Fix DEBUG() location.Günther Deschner1-1/+1
Guenther Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Tue Oct 2 18:06:17 CEST 2012 on sn-devel-104
2012-10-02s3-net: give more control how to update/register DNS entries.Günther Deschner3-24/+76
Guenther
2012-10-02s3-net: pass down a flags field to DoDNSUpdate().Günther Deschner2-2/+5
Guenther
2012-10-02s3-net: move out some prototypes to net_dns.h.Günther Deschner3-22/+34
Guenther
2012-10-02s3-net: pass down struct net_context to the dns update calls.Günther Deschner1-9/+11
Guenther
2012-10-01s3: Fix bug 8966, Fix net rpc share allowedusers to work with 2008r2Jeremy Allison1-37/+44
The RAP NetShareEnum command was removed in 2008r2, so use the RPC equivalent instead. Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Mon Oct 1 07:59:34 CEST 2012 on sn-devel-104
2012-09-22s3:utils/net fix a compiler warningChristian Ambach1-1/+1
ret might be used uninitialized in out-of-memory condition
2012-09-10Call TALLOC_FREE() before we return otherwise we will never free sam_accountMichele Baldessari1-1/+1
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-09-07s3-smbldap: use smbldap_ prefixed functionsAlexander Bokovoy1-5/+5
2012-09-06s3-printing: Restrict printing=cups to systems with cups development headers ↵Andrew Bartlett1-2/+0
at build time This means that instead of failing due to the default commandline values not being quite correct that we clearly fail at loadparm and testparm time when parsing the printing= line. Andrew Bartlett
2012-08-16fix printf warning in net connectionsAndrew Bartlett1-2/+2
2012-08-16s3:utils: remove standalone cclean toolGregor Beck1-305/+0
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2012-08-16s3:net add command "connections cleanup"Gregor Beck3-0/+284
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2012-08-09Correctly check for errors in strlower_m() returns.Jeremy Allison5-8/+32
2012-08-09Check error returns from strupper_m() (in all reasonable places).Jeremy Allison7-17/+58
2012-08-01s3:utils/net_rpc*: make use of cli_get_session_key()Stefan Metzmacher3-7/+39
metze
2012-07-30s3-utils: Add cast to fix error found by -Werror=formatAndrew Bartlett1-2/+2
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Jul 30 11:51:02 CEST 2012 on sn-devel-104
2012-07-27lib/param: Rename "socket address" to "nbt client socket address" to clarify ↵Andrew Bartlett1-1/+1
role This parameter is only used in our NBT client code and in nmbd as a fallback when we fail to select a better interface from "interfaces" to use directly. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Jul 27 12:16:25 CEST 2012 on sn-devel-104
2012-07-24lib/param: Move all enum declarations to lib/paramAndrew Bartlett2-0/+2
This is in preperation for the parameter table being made common. Andrew Bartlett Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
2012-07-19Move everything to use the common pidfile functions.Jeremy Allison1-1/+2
The extra code in source3/lib/pidfile.c is no longer needed.
2012-07-19Move source4/smbd/pidfile into lib/util in preparation for making it in common.Jeremy Allison1-1/+1
2012-07-19s3-param: Make lp_name_resolve_order() return a listAndrew Bartlett1-1/+1
This allows this parameter, one of the few with differing declarations between the loadparm systems, to be brought into common. Andrew Bartlett Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
2012-07-18s3:smbstatus add --fast optionChristian Ambach1-4/+11
this option skips all checks if the process for the record is still there using it gives a huge performance benefit on busy systems and clusters while it might display stale data if a smbd crashed
2012-07-18s3:smbstatus don't check if process exists twiceChristian Ambach1-4/+0
is_valid_share_mode_entry() already calls serverid_exists which calls process_exists()
2012-07-18s3:smbstatus rename a function to make its purpose more clearChristian Ambach1-4/+4
traverse_fn1 does not really intuitively make clear that it is used to traverse connections
2012-07-18s3:smbstatus fix a compiler warningChristian Ambach1-1/+1
about comparison of signed with unsigned
2012-07-18loadparm: make the source3/ lp_ functions take an explicit TALLOC_CTX *.Rusty Russell5-34/+40
They use talloc_tos() internally: hoist that up to the callers, some of whom don't want to us talloc_tos(). A simple patch, but hits a lot of files. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-07-18source3/utils/net_conf.c: fix stackframe leakRusty Russell1-0/+2
net_conf_wrap_function() doesn't free its stackframe. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-07-18smbpasswd: always free frame.Rusty Russell1-4/+4
We're about to exit, so it doesn't really matter, but might as well unify the paths. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-07-12s3: rename sid_check_is_in_our_domain() to sid_check_is_in_our_sam()Michael Adam1-1/+1
This does not check whether the given sid is in our domain, but but whether it belongs to the local sam, which is a different thing on a domain member server. Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Thu Jul 12 18:36:02 CEST 2012 on sn-devel-104
2012-07-06auth: Common function for retrieving PAC_LOGIN_INFO from PACChristof Schmitt1-26/+2
Several functions use the same logic as kerberos_pac_logon_info. Move kerberos_pac_logon_info to common code and reuse it to remove the code duplication. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2012-07-03auth: Remove .get_challenge (only used for security=server)Andrew Bartlett1-13/+0
With NTLMSSP, for NTLM2 we need to be able to set the effective challenge, so if we ever did use a module that needed this functionlity, we would downgrade to just NTLM. Now that security=server has been removed, we have no such module. This will make it easier to make the auth subsystem async, as we will not need to consider making .get_challenge async. Andrew Bartlett
2012-06-29s3:cclean avoid segfault in case of ctdb missbehaviourGregor Beck1-3/+8
Signed-off-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Fri Jun 29 17:06:05 CEST 2012 on sn-devel-104
2012-06-29s3:cclean: fix memory allocationGregor Beck1-2/+2
Signed-off-by: Michael Adam <obnox@samba.org>
2012-06-27s3-param: Rename loadparm_s3_context -> loadparm_s3_helpersAndrew Bartlett1-1/+1
This helps clarify the role of this structure and wrapper function. The purpose here is to provide helper functions to the lib/param loadparm_context that point back at the s3 lp_ functions. This allows a struct loadparm_context to be passed to any point in the code, and always refer to the correct loadparm system. If this has not been set, the variables loaded in the lib/param code will be returned. As requested by Michael Adam. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Jun 27 17:11:16 CEST 2012 on sn-devel-104
2012-06-27s3: add a tool "cclean" to cleanup orphaned entries from connections.tdbGregor Beck1-0/+300
Signed-off-by: Michael Adam <obnox@samba.org>
2012-06-26s3:net registry import: implement dry-run with "--test"Michael Adam1-0/+6
Pair-Programmed-With: Gregor Beck <gbeck@sernet.de> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Tue Jun 26 21:43:49 CEST 2012 on sn-devel-104
2012-06-26s3:net registry import: add an assertMichael Adam1-0/+2
Pair-Programmed-With: Gergor Beck <gbeck@sernet.de>
2012-06-26s3:net registry import: reduce indentationMichael Adam1-7/+8
Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
2012-06-26s3:net registry import: fix the return code when transaction commit failsMichael Adam1-1/+1
Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>