summaryrefslogtreecommitdiffstats
path: root/source3/utils
Commit message (Collapse)AuthorAgeFilesLines
* s3: rename sid_check_is_in_our_domain() to sid_check_is_in_our_sam()Michael Adam2012-07-121-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
* auth: Common function for retrieving PAC_LOGIN_INFO from PACChristof Schmitt2012-07-061-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>
* auth: Remove .get_challenge (only used for security=server)Andrew Bartlett2012-07-031-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
* s3:cclean avoid segfault in case of ctdb missbehaviourGregor Beck2012-06-291-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
* s3:cclean: fix memory allocationGregor Beck2012-06-291-2/+2
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3-param: Rename loadparm_s3_context -> loadparm_s3_helpersAndrew Bartlett2012-06-271-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
* s3: add a tool "cclean" to cleanup orphaned entries from connections.tdbGregor Beck2012-06-271-0/+300
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:net registry import: implement dry-run with "--test"Michael Adam2012-06-261-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
* s3:net registry import: add an assertMichael Adam2012-06-261-0/+2
| | | | Pair-Programmed-With: Gergor Beck <gbeck@sernet.de>
* s3:net registry import: reduce indentationMichael Adam2012-06-261-7/+8
| | | | Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
* s3:net registry import: fix the return code when transaction commit failsMichael Adam2012-06-261-1/+1
| | | | Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
* s3:net registry import: improve regdb_open/close layeringMichael Adam2012-06-261-3/+4
| | | | Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
* s3:net registry import: untangle nested function callsMichael Adam2012-06-261-3/+8
|
* s3:net registry import: reduce indentation and untangle assignment from checkMichael Adam2012-06-261-4/+9
| | | | in import_with_precheck_action().
* s3:net registry import: move precheck-and-import code to its own functionMichael Adam2012-06-261-9/+20
| | | | | | This is the code that is executed in a registry transaction. The purpose of the refactoring is to be able to simplify and untangle the code structure in the sequel.
* s3:net registry: fix violation of coding conventionsGregor Beck2012-06-261-32/+35
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:net registry import: add option --precheckGregor Beck2012-06-263-5/+197
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:net registry import: check return values + codecleanupGregor Beck2012-06-261-16/+30
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:net registry: fix output of dwords with sign bit setGregor Beck2012-06-261-1/+1
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:util: rename procid_equal() to serverid_equal()Michael Adam2012-06-212-2/+2
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smbstatus: use procid_equal() instead of equivalent cluster_id_equal()Michael Adam2012-06-211-1/+2
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Fix warning: variable ‘status’ set but not used.Jeremy Allison2012-06-191-2/+1
|
* dbwrap: dbwrap_trans_store_uint32->dbwrap_trans_store_uint32_bystringVolker Lendecke2012-06-151-1/+1
| | | | | | | Signed-off-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Fri Jun 15 14:20:04 CEST 2012 on sn-devel-104
* dbwrap: dbwrap_trans_store_int32->dbwrap_trans_store_int32_bystringVolker Lendecke2012-06-151-1/+1
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* dbwrap: dbwrap_store_uint32->dbwrap_store_uint32_bystringVolker Lendecke2012-06-151-3/+3
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* dbwrap: dbwrap_fetch_uint32->dbwrap_fetch_uint32_bystringVolker Lendecke2012-06-153-5/+6
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* dbwrap: dbwrap_store_int32->dbwrap_store_int32_bystringVolker Lendecke2012-06-151-2/+4
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* dbwrap: dbwrap_fetch_int32->dbwrap_fetch_int32_bystringVolker Lendecke2012-06-151-1/+1
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3: Simplify tdb_data_is_cstr a bitVolker Lendecke2012-06-141-1/+1
| | | | | | | | | | | | The original code contained rawmemchr for performance reasons. I would expect the very common strlen routine to be not much worse performance-wise than rawmemchr. On top, for me this patch simplifies the expression a bit. Signed-off-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Thu Jun 14 16:55:58 CEST 2012 on sn-devel-104
* s3:smb: introduce a name TID_FIELD_INVALID for the invalid value for a cnum/tidMichael Adam2012-06-062-3/+3
| | | | Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* s3:utils: use smbd/smbd.h instead of just smbd/proto.hStefan Metzmacher2012-06-061-1/+1
| | | | | | This fixes compiler warnings regarding incomplete types. metze
* s3:lib: split things into a conn_tdb.hStefan Metzmacher2012-06-053-0/+3
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Jun 5 19:28:35 CEST 2012 on sn-devel-104
* s3:utils: use cli_tree_connect() instead of cli_tcon_andx()Stefan Metzmacher2012-05-301-1/+1
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed May 30 12:54:05 CEST 2012 on sn-devel-104
* s3:libsmb: get rid of cli_negprotLuk Claes2012-05-282-3/+5
| | | | | Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:libsmb: get rid of cli_state_server_time_zoneLuk Claes2012-05-281-1/+2
| | | | | Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:libsmb: get rid of cli_state_protocolLuk Claes2012-05-281-1/+1
| | | | | Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:libsmb: get rid of cli_state_remote_nameLuk Claes2012-05-284-14/+15
| | | | | Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:libsmb: get rid of cli_state_*_sockaddrLuk Claes2012-05-283-4/+7
| | | | | Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-utils: Use ads_do_search_retry in net ads searchAndrew Bartlett2012-05-261-1/+1
| | | | | | | | | | | | This makes it possible to search against a slow server, as will fallback from 1000 to (eventually) 125 users at a time. Andrew Bartlett Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat May 26 03:53:34 CEST 2012 on sn-devel-104
* Move source3/libads/dns.c to lib/addnsSimo Sorce2012-05-232-2/+2
|
* s3-ads-dns: Break dependency on lp_parmSimo Sorce2012-05-232-4/+12
| | | | In preparation of making this code common to s3 and s4
* s3: Fix Coverity ID 242710 Untrusted pointer readVolker Lendecke2012-05-151-1/+1
| | | | | | According to susv3 we have to make sure that we call isupper with values only in the range of an unsigned char. This is best achieved by automatic narrowing through assignment.
* s3-auth: remove "security=server" (depricated since 3.6)Stefan Metzmacher2012-05-151-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | "security=server" has a lot of problems in the world with modern security (ntlmv2 and krb5). It was also not very reliable, as it needed a stable connection to the password server for the lifetime of the whole client connection! Please use "security=domain" or "security=ads" is you authentication against remote servers (domain controllers). metze -------------- / \ / REST \ / IN \ / PEACE \ / \ | SEC_SERVER | | security=server | | | | | | 12 May | | | | 2012 | *| * * * | * _________)/\\_//(\/(/\)/\//\/\///|_)_______
* s3: Fix Coverity ID 242725 Uninitialized scalar variableVolker Lendecke2012-05-101-0/+1
| | | | | Not a functional bug, but we copy all of the "key" structure inside dcerpc_winreg_CreateKey.
* s3: Fix Coverity ID 242726 Uninitialized scalar variableVolker Lendecke2012-05-101-1/+1
| | | | | Not a functional bug, but we copy all of the "key" structure inside dcerpc_winreg_OpenKey.
* s3: Fix Coverity ID 242754 Dereference null return valueVolker Lendecke2012-05-101-1/+1
|
* s3-net: Fix typo in comment.Karolin Seeger2012-05-081-1/+1
| | | | Karolin
* net: Let get*sid return error from passdb initChristof Schmitt2012-04-301-6/+4
| | | | | | | | | When initialize_password_db returns an error this means that the SID stored in the backend cannot be read. Return this error directly instead of creating a random SID through get_global_sam_sid. Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Mon Apr 30 13:07:20 CEST 2012 on sn-devel-104
* s3:registry: remove usage of reg_objects from net_rpc_printer.cGregor Beck2012-04-251-131/+71
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:eventlogadm make a transaction for addsourceGregor Beck2012-04-251-1/+14
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>