summaryrefslogtreecommitdiff
path: root/source3/utils/net.c
AgeCommit message (Collapse)AuthorFilesLines
2009-02-04s3-net: add "net eventlog dump".Günther Deschner1-0/+8
This allows to dump a native (non-wrapped) win32 *.evt eventlog file. Guenther
2008-12-17net luaVolker Lendecke1-0/+7
This adds a lua command line interpreter with some sample code how to build your own data types based on our internal data types. Not meant as the final word, but as a playground for experiments for people. Might be removed later when we find this turns out to be too awkward.
2008-12-03s3: Change sockaddr util function names for consistencyTim Prouty1-1/+1
Also eliminates name conflicts with OneFS system libraries
2008-08-01vampire keytab: add command line switch --clean-old-entries .Michael Adam1-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)
2008-08-01vampire keytab: introduce switch --single-obj-repl.Michael Adam1-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)
2008-08-01net rpc vampire: rename --repl-nodiff to --force-full-repl.Michael Adam1-1/+1
This more clear. Michael (This used to be commit 0ddde9aae88e6244276e1c143056a4bfc7c7fcca)
2008-08-01vampire keytab: add switch --repl-nodiff to trigger full replication.Michael Adam1-0/+2
I.e. replication without keeping track of the up to date vector. Michael (This used to be commit d4b36e447bce8692416e132ab9f53a6282f54cac)
2008-07-31net: add "-k" switch for kerberos authentication (in preparation for #5416).Günther Deschner1-0/+1
Guenther (This used to be commit 4cce94d464b16d29b638da3a581d98a237959b63)
2008-06-21net: Don't crash on invalid command line options.Kai Blin1-1/+1
This backs out the workaround Jerry added in 4c3bfea9f8d238f9100eaa264b9b2941dff5a6dd. Thanks for the catch. (This used to be commit 20e0bb4800938863cb0aac1a19473748132043fc)
2008-06-10net: Rename functable3 to functable, get rid of old functablesKai Blin1-2/+2
(This used to be commit bb7c5fc4ec77db4073d3beccf12af12910b6bd07)
2008-06-10net: Autogenerate "net help" output from net's functable.Kai Blin1-0/+1
(This used to be commit 0feb40bc8408412336c667df4f8bf57c77446ca7)
2008-06-10net: Use functable3Kai Blin1-43/+284
(This used to be commit 122dfe876d954ee3b3796951df16e1be9e9b0eb8)
2008-06-10net: Use functable2 to give a short help text for top-level functions.Kai Blin1-41/+41
(This used to be commit e9be24a2cbbd9bc7075c0fe75d44d51184f84dba)
2008-06-10net: Move net_run_function/net_run_function2 to net_util.cKai Blin1-46/+0
(This used to be commit 73fb5f392dbc1966ec34217e39d565200e071aaf)
2008-06-05net: fix debuglevel handling.Günther Deschner1-1/+3
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)
2008-06-04net: fix popt context memleak.Günther Deschner1-0/+2
Guenther (This used to be commit 60bce925746590aabf489f0c771afd732c32f5a0)
2008-05-20net: Split out "net share"Kai Blin1-7/+0
(This used to be commit 25d4c6f692cf50d675a1de7c6eaeed271f349289)
2008-05-20net: Split out "net afs"Kai Blin1-83/+4
(This used to be commit 3f10527f79dddff703d31588cad3e9f37176565b)
2008-05-20net: Move more utility functions into net_util.cKai Blin1-465/+0
(This used to be commit 0f5ebdf0bc5610bf93a4db67c9f9513683306c66)
2008-05-20net: Split out "net file"Kai Blin1-7/+0
(This used to be commit 84a116be9c849900678e6e0a4b012e819e697c78)
2008-05-20net: Split out "net group"Kai Blin1-11/+0
(This used to be commit 3ddd9c09e3b51df01ac34a9a1537e8954d2b1167)
2008-05-20net: Split out "net user"Kai Blin1-12/+0
(This used to be commit 4ca08a5acc90c77d56f8f3e38443f23f43f034e8)
2008-05-20net: Move "net join" handling into a separate file.Kai Blin1-11/+0
(This used to be commit d0237a736858a48494583ce7f960ea980768aa6c)
2008-05-20net: Use true/false instead of True/False.Kai Blin1-8/+8
(This used to be commit a8b567aac3b0e39cfe67fb97167b10312ca5e73a)
2008-05-10net: Remove globalsKai Blin1-209/+195
(This used to be commit 1e9319cf88b65a2a8d4f5099a1fe5297e405ed2e)
2008-05-10net: Some whitespace clean-up.Kai Blin1-30/+30
(This used to be commit 4dcce8b653671c8ce907f8353df1db8a5c8f8e19)
2008-04-21net: Add libnetapi context to net's impressive list of globals.Günther Deschner1-5/+2
Guenther (This used to be commit 8a5fadf6a183e4e4ccc77283b3ddba0748c6abfb)
2008-04-16net/libnetapi: Include netapi headers early and free on exit.Günther Deschner1-0/+7
Guenther (This used to be commit 020b1e6431601fadf44dbfe8393908c096ecfa4c)
2008-03-28net: add a "net registry" subcommand to locally access the registry.Michael Adam1-0/+1
The interface is like that of net rpc registry. Access is direct local access to the registry tdb through reg_api. Michael (This used to be commit 3250068eb980bd0489f814f702401cdc9c925a8d)
2008-03-23Fix Coverity ID 479Volker Lendecke1-1/+1
(This used to be commit 70b33397ba6e18f40087fb642a1be62ee68d5f3a)
2008-01-05Fix args to cli_force_encryption.Jeremy Allison1-2/+1
Jeremy. (This used to be commit 7b0826aeec284fb129dc1101a5eae2ca96c7cfb6)
2008-01-05Add general '-e' option to enable smb encryptionJeremy Allison1-8/+55
on tools. Jeremy. (This used to be commit 757653966fc1384159bd2d57c5670cd8af0cae96)
2007-12-15s/sid_to_string/sid_to_fstring/Volker Lendecke1-3/+3
least surprise for callers (This used to be commit eb523ba77697346a365589101aac379febecd546)
2007-12-10Remove the char[1024] strings from dynconfig. ReplaceJeremy Allison1-1/+1
them with malloc'ing accessor functions. Should save a lot of static space :-). Jeremy. (This used to be commit 52dc5eaef2106015b3a8b659e818bdb15ad94b05)
2007-12-06Make output of net getdomainsid more meaningful. Unify spelling of SID. ↵Karolin Seeger1-3/+8
Display usage if superfluous arguments are given. Karolin (This used to be commit cb3a2dfeb047d45bb9eec8cb97d3ba288f21887e)
2007-12-03ReformattingVolker Lendecke1-2/+4
(This used to be commit 28c0a77ec1eb4bc69679c00dcdacaa6ee4d8e3f5)
2007-11-30Add "net dom" command suite to "net".Günther Deschner1-0/+1
Guenther (This used to be commit a41f9aef843378b1f85f9b3d672d00f3399fa342)
2007-11-29Allow calling "net rpc join" and "net rpc trustdom" without specifying ↵Michael Adam1-1/+1
server IP. This was a logic bug (typo) in a call to get_pdc_ip() in net_find_server(). Michael (This used to be commit 988c5ff3f47b7508b229464bbed2ca1948d6e27c)
2007-10-27Change all occurrences of zero_addr(&ss,AF_INET) toJeremy Allison1-1/+1
zero_addr(&ss). All current uses were always of the AF_INET form, so simplify the call. If in the future we need to zero an addr to AF_INET6 this can be done separately. Jeremy. (This used to be commit 2e92418a138bf2738b77b7e0fcb2fa37ad84fc0c)
2007-10-24This is a large patch (sorry). Migrate from struct in_addrJeremy Allison1-86/+110
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)
2007-10-19Fix the popt / bool issues. Some places we used BOOLJeremy Allison1-5/+5
where we meant int. Fix this. Thanks to metze for pointing this out. Jeremy. (This used to be commit 793a9d24a163cb6cf5a3a0aa5ae30e9f8cf4744a)
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison1-10/+10
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)
2007-10-10Add start of IPv6 implementation. Currently most of this is avoidingJeremy Allison1-6/+5
IPv6 in winbindd, but moves most of the socket functions that were wrongly in lib/util.c into lib/util_sock.c and provides generic IPv4/6 independent versions of most things. Still lots of work to do, but now I can see how I'll fix the access check code. Nasty part that remains is the name resolution code which is used to returning arrays of in_addr structs. Jeremy. (This used to be commit 3f6bd0e1ec5cc6670f3d08f76fc2cd94c9cd1a08)
2007-10-10r25481: Fix some typos, don't panic as non-root on net getdomainsidVolker Lendecke1-2/+11
Thanks to Karolin Seeger <ks@sernet.de> (This used to be commit 5ae4b2739853e2cd91e839909eb868dbb56be431)
2007-10-10r25197: Change net_make_ipc_connection() and net_make_ipc_connection_ex() toMichael Adam1-9/+15
return NTSTATUS to allow for better error propagation. Michael (This used to be commit 46093004a788dae83a4ddb888ca5d72f555c236c)
2007-10-10r24853: Rename function as Jerry asked.Rafal Szczesniak1-3/+3
s/net_use_upn_machine_account/net_use_krb_machine_account/ rafal (This used to be commit 86af9fedad71697f22cc739518340f7753b8f9da)
2007-10-10r24824: Create an initial talloc stackframe for the net binary.Michael Adam1-0/+3
(This used to be commit c97600b96f6315df8ab0d7ad186423ab75dd4ab5)
2007-10-10r24789: Add implementation of machine-authenticated connection to netlogonRafal Szczesniak1-4/+24
pipe used when connecting to win2k and newer domain controllers. The server may be configured to deny anonymous netlogon connections which would stop domain join verification step. Still, winnt domains require such smb sessions not to be authenticated using machine credentials. Creds employed in smb session cannot have a username in upn form, so provide the separate function to use machine account. rafal (This used to be commit 30d99d8ac3379caadc5bdb353977149d1ee16403)
2007-10-10r23968: Harmonize net's password prompts.Günther Deschner1-11/+33
Guenther (This used to be commit 7e2fb14d6e4f58fe6645b7e7468f925c21cb4c9d)
2007-10-10r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell1-2/+1
(This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)