summaryrefslogtreecommitdiffstats
path: root/source3/utils/net.h
Commit message (Collapse)AuthorAgeFilesLines
* s3-includes: finally only include client.h when libsmb is used.Günther Deschner2011-05-061-0/+2
| | | | Guenther
* s3-build Remove distinct LOCALEDIR subsystemAndrew Bartlett2011-04-131-1/+0
| | | | | | | This is no different to the rest of dynconfig, and so should be dealt with there. Andrew Bartlett
* s3-net: add command "net idmap check"Gregor Beck2011-04-041-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a tool to check the consistency of an idmap tdb database. The default mode is to scan the database and list invalid entries, e.g. records with an invalid format, or records which are valid but for which the reverse mapping entry is missing. With the "--repair" switch, one can enter an interactive repair mode which will prompt for each invalid entry found with the option to delete, skip or edit the record. There is also a non-interactive repair mode triggered by "--auto" which will remove all records with invalid content and fill up mappings which are missing the reverse entry. The "--test" parameter lets "net idmap check" only list the changes that would be written and not actually commit them to the database. The "--lock" option allows to lock the database already in the first reading traverse, in order to remove the race when the database has to be closed and reopened again before writing the changes. Signed-off-by: Michael Adam <obnox@samba.org> Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Mon Apr 4 18:21:09 CEST 2011 on sn-devel-104
* s3: include ../librpc/gen_ndr/lsa.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3: no need to globally include intl.h.Günther Deschner2011-02-151-0/+1
| | | | Guenther
* s3:net add option --dbGregor Beck2011-02-091-0/+1
|
* s3-dsgetdcname: always pass in messaging context.Günther Deschner2010-09-231-0/+1
| | | | | | Volker, please check. Guenther
* s3-net: only include netapi header when needed.Günther Deschner2010-08-061-1/+0
| | | | Guenther
* s3-libnet: better separate headers.Günther Deschner2010-07-131-1/+0
| | | | Guenther
* s3:dom_sid Global replace of DOM_SID with struct dom_sidAndrew Bartlett2010-05-211-2/+2
| | | | | | | | | | This matches the structure that new code is being written to, and removes one more of the old-style named structures, and the need to know that is is just an alias for struct dom_sid. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
* s3: Add --use-ccache to netVolker Lendecke2010-01-241-0/+1
|
* s3: Fix a bug in net's use of poptVolker Lendecke2010-01-241-1/+1
| | | | | | | | | | | | In order to add --use-ccache to net, I added another "bool opt_ccache;" to struct net_context. popt did not like this, it took a while to figure out why. Popt has the lines /* XXX Check alignment, may fail on funky platforms. */ if (arg == NULL || (((unsigned long)arg) & (sizeof(*arg)-1))) return POPT_ERROR_NULLARG; The "bool opt_ccache;" was not aligned anymore...
* Revert "s3: Make run_rpc_command take strings instead of a ndr_interface_table"Volker Lendecke2009-11-081-2/+1
| | | | This reverts commit 53f2a1595e76db9fe1b42db65b51895b73365993.
* s3: Make run_rpc_command take strings instead of a ndr_interface_tableVolker Lendecke2009-11-081-1/+2
|
* s3-rpc_client: add dcerpc_transport_t to cli_rpc_pipe_open_spnego_ntlmssp ↵Günther Deschner2009-09-111-0/+1
| | | | | | and cli_rpc_pipe_open_ntlmssp. Guenther
* s3 net: Initial top level support.Kai Blin2009-07-291-0/+13
|
* Revert "net: Use samba default command line arguments."Kai Blin2009-07-221-2/+7
| | | | | | | | | | This reverts commit fb262f79fab00374023e59476e8d05a1015a7041 and related commits c36031778e1983ddb11d3e1fcab35e738dbf94bc 72fd5fa6bb78a054fad5e5ebe19a0c0387a7d45b and 38cd0e086f50ce54d88a19aa5a6803469af90489 This change caused more trouble than it solved. We need to do this differently. Reverting so we don't accidently release this.
* net: Use samba default command line arguments.Kai Blin2009-05-251-7/+2
| | | | | | | | | | | | | | | | | | Attention: The meaning of the -N flag changed. To get the old meaning for net groupmap set, use the long option --ntname The long option for using kerberos changed from --kerberos to --use-kerberos net rpc commands will now prompt for a password if none is given. As a benefit, net will now accept an authentication file like other samba command line tools. So no need to specify the password on the command line in scripts anymore. This should fix bug #6357 Signed-off-by: Kai Blin <kai@samba.org>
* s3:net: add --request-timeout optionStefan Metzmacher2009-04-171-0/+1
| | | | metze
* s3-net: add net_dc_info struct.Günther Deschner2008-11-181-0/+10
| | | | Guenther
* net: share_type is defined in net_rap.c, net_rpc.c needs to use that.Kai Blin2008-09-101-1/+0
| | | | | This fixes a crash in net rpc share that Günther Deschner found. (This used to be commit 50af6d609dcbbdadb9af44ede980d9c85ac834e3)
* vampire keytab: add command line switch --clean-old-entries .Michael Adam2008-08-011-0/+1
| | | | | | | | | | This allows to control cleaning the keytab. It will only clean old occurences of keys that are replicated in this run. So if you want to ensure things are cleaned up, combine this switch with --force-full-repl or --single-obj-repl (+dn list). Michael (This used to be commit 21385e1c635ea67215eb1da90e7dca97ae2f5d56)
* vampire keytab: introduce switch --single-obj-repl.Michael Adam2008-08-011-0/+1
| | | | | | | | | | | | | | This controls whether single object replication is to be used. This only has an effect when at least one object dn is given on the commandline. NOTE: Now the default is to use normal replication with uptodateness vectors and use object dns given on the command line as a positive write filter. Single object replication is only performed when this new switch is specified. Michael (This used to be commit 0f81111ea8c049eb60f98d4939e520a5a562d2e6)
* net rpc vampire: rename --repl-nodiff to --force-full-repl.Michael Adam2008-08-011-1/+1
| | | | | | | This more clear. Michael (This used to be commit 0ddde9aae88e6244276e1c143056a4bfc7c7fcca)
* vampire keytab: add switch --repl-nodiff to trigger full replication.Michael Adam2008-08-011-0/+1
| | | | | | | I.e. replication without keeping track of the up to date vector. Michael (This used to be commit d4b36e447bce8692416e132ab9f53a6282f54cac)
* net: add "-k" switch for kerberos authentication (in preparation for #5416).Günther Deschner2008-07-311-0/+1
| | | | | Guenther (This used to be commit 4cce94d464b16d29b638da3a581d98a237959b63)
* Refactoring: net_sh_run uses ndr_syntax_id instead of pipe_idxVolker Lendecke2008-07-211-1/+1
| | | | (This used to be commit 85c8363d5179e7053adc05e8abce2fb26cf9b968)
* net: add basic support for sealed RPC connections (using NET_FLAGS_SEAL).Günther Deschner2008-06-241-0/+2
| | | | | Guenther (This used to be commit 7541a0103ad22000e94ffc6d057ffd5d33d1a930)
* net_vampire: move some samsync functions to libnet.Günther Deschner2008-06-171-43/+0
| | | | | Guenther (This used to be commit b3b6af0a3e25fab0a14c9c802dbabd3d03448ebe)
* net_vampire: restructure internal code more.Günther Deschner2008-06-131-0/+30
| | | | | Guenther (This used to be commit 9557504d70fe57098914da131b39212faf4f0a7d)
* net_vampire: start using talloc for the ldif vampire code.Günther Deschner2008-06-131-6/+6
| | | | | Guenther (This used to be commit ae179e4f3faccbf2c9f19b6f070f5daf87cdfc50)
* net: Fix bug #5542 (samsync contains empty passwords).Günther Deschner2008-06-131-0/+1
| | | | | | Guenther (cherry picked from commit 1a22e975dd1255f3557c1cd873d877aa35822afc) (This used to be commit ad8392cf7c817ee29a03bc6f515bf1cc18a29eda)
* net: Rename functable3 to functable, get rid of old functablesKai Blin2008-06-101-11/+0
| | | | (This used to be commit bb7c5fc4ec77db4073d3beccf12af12910b6bd07)
* net: Autogenerate "net help" output from net's functable.Kai Blin2008-06-101-0/+1
| | | | (This used to be commit 0feb40bc8408412336c667df4f8bf57c77446ca7)
* net: Use functable3Kai Blin2008-06-101-1/+1
| | | | (This used to be commit 122dfe876d954ee3b3796951df16e1be9e9b0eb8)
* net: Add net_run_function3Kai Blin2008-06-101-0/+1
| | | | (This used to be commit ba1108f06ae5860c8f418dc383b027068780abf9)
* net: Move includes to net.hKai Blin2008-06-101-40/+64
| | | | (This used to be commit 1943e2752d4dcb5bbbd4e40cf854efba4aed8f45)
* net: fix debuglevel handling.Günther Deschner2008-06-051-1/+0
| | | | | | | | Kai, that one actually needs to stay a global external variable in order to support debuglevel definition only on the commandline for net. Guenther (This used to be commit f6ba7333ab31332198b59651b4252cb3f897b6aa)
* net: Split out common help functions.Kai Blin2008-05-201-0/+1
| | | | (This used to be commit efc863e3758501a4c62dc9762eb0aded2dad01ff)
* net: Remove globalsKai Blin2008-05-101-40/+48
| | | | (This used to be commit 1e9319cf88b65a2a8d4f5099a1fe5297e405ed2e)
* net: Some whitespace clean-up.Kai Blin2008-05-101-10/+10
| | | | (This used to be commit 4dcce8b653671c8ce907f8353df1db8a5c8f8e19)
* net: Add libnetapi context to net's impressive list of globals.Günther Deschner2008-04-211-0/+1
| | | | | Guenther (This used to be commit 8a5fadf6a183e4e4ccc77283b3ddba0748c6abfb)
* net/libnetapi: Include netapi headers early and free on exit.Günther Deschner2008-04-161-0/+2
| | | | | Guenther (This used to be commit 020b1e6431601fadf44dbfe8393908c096ecfa4c)
* Apply const to rpccli_lsa_query_info_policy() and ↵Günther Deschner2008-01-151-1/+1
| | | | | | | rpccli_lsa_query_info_policy2(). Guenther (This used to be commit 7a3fe68bef7acde9d9f8a7a44ce7e9432f3c5a95)
* This is a large patch (sorry). Migrate from struct in_addrJeremy Allison2007-10-241-1/+1
| | | | | | | | | | | | | | to struct sockaddr_storage in most places that matter (ie. not the nmbd and NetBIOS lookups). This passes make test on an IPv4 box, but I'll have to do more work/testing on IPv6 enabled boxes. This should now give us a framework for testing and finishing the IPv6 migration. It's at the state where someone with a working IPv6 setup should (theorecically) be able to type : smbclient //ipv6-address/share and have it work. Jeremy. (This used to be commit 98e154c3125d5732c37a72d74b0eb5cd7b6155fd)
* Fix the popt / bool issues. Some places we used BOOLJeremy Allison2007-10-191-4/+4
| | | | | | | where we meant int. Fix this. Thanks to metze for pointing this out. Jeremy. (This used to be commit 793a9d24a163cb6cf5a3a0aa5ae30e9f8cf4744a)
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-5/+5
| | | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
* [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.Gerald (Jerry) Carter2007-10-101-2/+0
| | | | (This used to be commit 5c6c8e1fe93f340005110a7833946191659d88ab)
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | | Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)