summaryrefslogtreecommitdiffstats
path: root/source3/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* s3:eventlogadm reimplement addsource using reg_apiGregor Beck2012-04-251-95/+91
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3: Attempt to fix the build without kerberosVolker Lendecke2012-04-241-0/+3
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Tue Apr 24 15:04:14 CEST 2012 on sn-devel-104
* Make krb5 wrapper library common so they can be used all overSimo Sorce2012-04-231-1/+3
|
* s3:smbcontrol: remove an unused variableMichael Adam2012-04-211-4/+0
| | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Sat Apr 21 00:55:13 CEST 2012 on sn-devel-104
* s3:id_cache: do not use the in-memory idmap cache (it is going to be removed)Michael Adam2012-04-201-6/+3
| | | | This also removes the ID_CACHE_FLUSH message.
* s3-g_lock: Use dbwrap_record_watch_send/recvVolker Lendecke2012-04-191-3/+2
| | | | | | | | | | This simplifies the g_lock implementation. The new implementation tries to acquire a lock. If that fails due to a lock conflict, wait for the g_lock record to change. Upon change, just try again. The old logic had to cope with pending records and an ugly hack into ctdb itself. As a bonus, we now get a really clean async g_lock_lock_send/recv that can asynchronously wait for a global lock. This would have been almost impossible to do without the dbwrap_record_watch infrastructure.
* s3-dbwrap: Add "listwatchers" to dbwrap_toolVolker Lendecke2012-04-191-9/+62
|
* s3: Fix Coverity ID 2727 to 2740 -- UNINITVolker Lendecke2012-04-191-7/+12
|
* s3: Fix a "ISO C90 forbids mixed declarations and code"Volker Lendecke2012-04-191-3/+7
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Thu Apr 19 10:32:27 CEST 2012 on sn-devel-104
* s3: Add smbstatus -N to output the notify dbVolker Lendecke2012-04-171-0/+40
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Tue Apr 17 11:54:35 CEST 2012 on sn-devel-104
* s3: Add "notify-cleanup" to smbcontrolVolker Lendecke2012-04-171-0/+13
| | | | This triggers a notify cleanup run which would normally only run periodically
* s3-utils: add do_reload_printers command to smbcontolBjörn Baumbach2012-04-061-0/+14
| | | | Add command to force smbd to reload printers by sending MSG_PRINTER_PCAP.
* build: Remove SMB_STRUCT_DIR defineAndrew Bartlett2012-04-051-3/+3
|
* build: Remove SMB_STRUCT_DIRENT defineAndrew Bartlett2012-04-051-2/+2
|
* build: Remove sys_closedir wrapperAndrew Bartlett2012-04-051-7/+7
|
* build: Remove sys_readdir wrapperAndrew Bartlett2012-04-051-2/+2
|
* build: Remove sys_opendir wrapperAndrew Bartlett2012-04-051-3/+3
|
* build: Remove sys_open wrapperAndrew Bartlett2012-04-051-2/+2
|
* s3-ntlm_auth: use manage_gensec_request for squid-2.5-ntlmsspAndrew Bartlett2012-04-031-178/+9
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-auth: Order GENSEC mechs by priority, krb5 before NTLMSSPAndrew Bartlett2012-04-031-2/+3
| | | | | | | | | Otherwise, really simple clients (such as the current ntlm_auth gss-spnego client) will not select krb5. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-ntlm_auth: add ntlm_auth_generate_session_info_pac()Andrew Bartlett2012-04-031-0/+144
| | | | | | Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-ntlm_auth Use GENSEC for gss-spnego serverAndrew Bartlett2012-04-031-404/+390
| | | | | | | | | | This imports the gensec handling code from the source4 ntlm_auth, which will eventually be used for all the NTLMSSP and SPNEGO clients and servers but which is only used for gss-spnego for now. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* More strlcat/strlcpy truncate checks.Jeremy Allison2012-03-301-3/+9
|
* use usleep rather than sys_usleep in various places, in anticipation of ↵Jelmer Vernooij2012-03-242-2/+2
| | | | usleep moving to libreplace.
* s3-krb5: Remove GSS_WRAP_IOV conditionalAndrew Bartlett2012-03-151-1/+1
| | | | | | | We already confirm that we have this functionality before we set HAVE_KRB5 at configure time. Andrew Bartlett
* s3: fix build on AIXBjörn Jacke2012-03-101-1/+2
| | | | | Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Sat Mar 10 19:07:20 CET 2012 on sn-devel-104