summaryrefslogtreecommitdiffstats
path: root/source/utils/net.h
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* 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
* 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
* net rpc vampire: rename --repl-nodiff to --force-full-repl.Michael Adam2008-08-011-1/+1
| | | | | | This more clear. Michael
* 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
* net: add "-k" switch for kerberos authentication (in preparation for #5416).Günther Deschner2008-07-311-0/+1
| | | | Guenther
* Refactoring: net_sh_run uses ndr_syntax_id instead of pipe_idxVolker Lendecke2008-07-211-1/+1
|
* net: add basic support for sealed RPC connections (using NET_FLAGS_SEAL).Günther Deschner2008-06-241-0/+2
| | | | Guenther
* net_vampire: move some samsync functions to libnet.Günther Deschner2008-06-171-43/+0
| | | | Guenther
* net_vampire: restructure internal code more.Günther Deschner2008-06-131-0/+30
| | | | Guenther
* net_vampire: start using talloc for the ldif vampire code.Günther Deschner2008-06-131-6/+6
| | | | Guenther
* net: Fix bug #5542 (samsync contains empty passwords).Günther Deschner2008-06-131-0/+1
| | | | | Guenther (cherry picked from commit 1a22e975dd1255f3557c1cd873d877aa35822afc)
* net: Rename functable3 to functable, get rid of old functablesKai Blin2008-06-101-11/+0
|
* net: Autogenerate "net help" output from net's functable.Kai Blin2008-06-101-0/+1
|
* net: Use functable3Kai Blin2008-06-101-1/+1
|
* net: Add net_run_function3Kai Blin2008-06-101-0/+1
|
* net: Move includes to net.hKai Blin2008-06-101-40/+64
|
* 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
* net: Split out common help functions.Kai Blin2008-05-201-0/+1
|
* net: Remove globalsKai Blin2008-05-101-40/+48
|
* net: Some whitespace clean-up.Kai Blin2008-05-101-10/+10
|
* net: Add libnetapi context to net's impressive list of globals.Günther Deschner2008-04-211-0/+1
| | | | Guenther
* net/libnetapi: Include netapi headers early and free on exit.Günther Deschner2008-04-161-0/+2
| | | | Guenther
* Apply const to rpccli_lsa_query_info_policy() and ↵Günther Deschner2008-01-151-1/+1
| | | | | | rpccli_lsa_query_info_policy2(). Guenther
* 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.
* 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.
* 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.
* [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.samba-misc-tags/initial-v3-2-testGerald (Jerry) Carter2007-10-101-2/+0
|
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
|
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r22135: Check in most of Michael Adam's net conf utility. A good share of ↵Volker Lendecke2007-10-101-0/+1
| | | | | | | | | | | | this patch is moving functions around to fix some linker dependencies for the registry. Michael, I've renamed your auth_utils2.c to token_utils.c. Thanks! Volker
* r18981: * cleanup some vestiges of old cli_reg.c code and mark some TODOGerald Carter2007-10-101-0/+2
| | | | | | | | | | | | | | | items in cac_winreg.c * Get 'net rpc registry enumerate' to list values again * Fix winreg.idl QueryInfoKey(). The max_subkeysize is the max_classlen (we previously had this correct in Samba3") * fix valgrind error about uninitialized memory and use-before-set on size value inmemset() call * Fix key enumeration in 'net rpc registry enumerate' * regenerate gen_dir files based on local pidl patches Please note that the generated ndr files are from my local copy of pidl. If you need to regenerate, please apply the patch that I posted to the samba-technical list earlier today.
* r15701: change 'net ads leave' to disable the machine account in the domain ↵Gerald Carter2007-10-101-0/+2
| | | | (since removal implies greater permissions that Windows clients require)
* r15543: New implementation of 'net ads join' to be more like Windows XP.Gerald Carter2007-10-101-18/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | The motivating factor is to not require more privileges for the user account than Windows does when joining a domain. The points of interest are * net_ads_join() uses same rpc mechanisms as net_rpc_join() * Enable CLDAP queries for filling in the majority of the ADS_STRUCT->config information * Remove ldap_initialized() from sam/idmap_ad.c and libads/ldap.c * Remove some unnecessary fields from ADS_STRUCT * Manually set the dNSHostName and servicePrincipalName attribute using the machine account after the join Thanks to Guenther and Simo for the review. Still to do: * Fix the userAccountControl for DES only systems * Set the userPrincipalName in order to support things like 'kinit -k' (although we might be able to just use the sAMAccountName instead) * Re-add support for pre-creating the machine account in a specific OU
* r13316: Let the carnage begin....Gerald Carter2007-10-101-0/+23
| | | | Sync with trunk as off r13315
* r10656: BIG merge from trunk. Features not copied overGerald Carter2007-10-101-4/+9
| | | | | | | * \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck)
* r8189: commit vampire ldif patch, mostly from Don Watson ↵Jim McDonough2007-10-101-0/+13
| | | | | | | | | | (dwatson@us.ibm.com). Yes, that's my copyright...that's just how we have to do things at big blue. Adds subcommand to vampire to allow data to be put into an ldif file instead of actually writing to the passdb. See "net rpc help vampire" for usage info. This should be added to docs as well.
* r7852: Correct fix from Lars for the argv issue.Jeremy Allison2007-10-101-1/+0
| | | | Jeremy.
* r7609: Move top level dir handling in from of the loop. This makes the codeLars Müller2007-10-101-1/+0
| | | | | | | | | | | | much straither. copy_top_level_perms() is jra's work. I modified the copy_top_level_perms() function to use the copy_clistate. And I don't forget trunk. Lars
* r7512: Fix net share migrate files to also migrate the ACLs of the top levelLars Müller2007-10-101-0/+13
| | | | | | | | | | | | | | | | | dir of a share. Till now we excluded '.' and '..' in general. For the fix the information about top or lower level dir is stored in the copy_clistate. src and dst share are now also part of this struct and we only pass a pointer to the struct to the functions. This bug was found by Bill Calero of Novell. Thanks Bill! With this checkin no new functionality was added. But the copy_clistate already knows about a mode. Later beside the migrate an additional report mode will be added. This changes are coordinated with Günther <gd>. Lars
* r4820: add beginnings of 'net rpc rights' for managing privilege assignmentsGerald Carter2007-10-101-0/+13
|
* r2835: Since we always have -I. and -I$(srcdir) in CFLAGS, we can get rid ofTim Potter2007-10-101-1/+1
| | | | | '..' from all #include preprocessor commands. This fixes bugzilla #1880 where OpenVMS gets confused about the '.' characters.
* r2080: Remove last traces of static migration to localhost. Needed to allow aGünther Deschner2007-10-101-0/+1
| | | | | | | | | local netbios-alias bound to non-loopback interface as a migration target. It's now possible to migrate printers|shares|files from Server A to Server B while running the net-command on client C. Guenther
* r1966: further work on and cleanup of the net-migration-tool.Günther Deschner2007-10-101-0/+2
| | | | | | | It's now possible to migrate files preserving dos-attributes and correct timestamps. Also added some small docu- and syntax-fixes. Guenther
* r1692: first commit :)Günther Deschner2007-10-101-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add IA64 to the architecture table of printer-drivers * add new "net"-subcommands: net rpc printer migrate {drivers|printers|forms|security|settings|all} [printer] net rpc share migrate {shares|files|all} [share] this is the first part of the migration suite. this will will (once feature-complete) allow to do 1:1 server-cloning in the best possible way by making heavy use of samba's rpc_client-functions. all migration-steps are implemented as rpc/smb-client-calls; net communicates via rpc/smb with two servers at the same time (a remote, source server and a destination server that currently defaults to the local smbd). this allows e. g. printer-driver migration including driverfiles, recursive mirroring of file-shares including file-acls, etc. almost any migration step can be called with a migrate-subcommand to provide more flexibility during a migration process (at the cost of quite some redundancy :) ). "net rpc printer migrate settings" is still in a bad condition (many open questions that hopefully can be adressed soon). "net rpc share migrate security" as an isolated call to just migrate share-ACLs will be added later. Before playing with it, make sure to use a test-server. Migration is a serious business and this tool-set can perfectly overwrite your existing file/print-shares. * along with the migration functions had to make I the following changes: - implement setprinter level 3 client-side - implement net_add_share level 502 client-side - allow security descriptor to be set in setprinterdata level 2 serverside guenther
* r269: Patch from Krischan Jodies <kj@sernet.de>: Implement 'net rpc group ↵Volker Lendecke2007-10-101-0/+1
| | | | | | delete'. Volker
* Implement 'net groupmap set' and 'net groupmap cleanup'.Volker Lendecke2004-02-261-0/+5
| | | | | | | | | | | | | | | | | | | | | | I was rather annoyed by the net groupmap syntax, I could never get it right. net groupmap set "domain admins" domadm creates a mapping, net groupmap set "domain admins" -C "Comment" -N "newntname" should also do what you expect. I'd like to have some feedback on the usability of this. net groupmap cleanup solves a problem I've had two times now: Our SID changed, and a user's primary group was mapped to a SID that is not ours. net groupmap cleanup removes all mappings that are not from our domain sid. Volker
* Make it possible to 'net rpc samdump' of any domain you are currently joinedAndrew Bartlett2004-02-081-0/+2
| | | | | | | | | to, despite any smb.conf settings. Work to allow the same for 'net rpc vampire', but instead give a clear error message on what is incorrect. Andrew Bartlett
* Fix bug 451. Stop net -P from prompting for machine account password.Jim McDonough2003-10-231-0/+1
| | | | Based on work by Ken Cross (kcross@nssolutions.com).
* Merge from HEAD - save the type of channel used to contact the DC.Andrew Bartlett2003-04-211-1/+1
| | | | | | | | | | | This allows us to join as a BDC, without appearing on the network as one until we have the database replicated, and the admin changes the configuration. This also change the SID retreval order from secrets.tdb, so we no longer require a 'net rpc getsid' - the sid fetch during the domain join is sufficient. Also minor fixes to 'net'. Andrew Bartlett