summaryrefslogtreecommitdiffstats
path: root/source/utils/net.h
Commit message (Collapse)AuthorAgeFilesLines
* 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
* [merge]Gerald Carter2003-01-151-0/+1
| | | | | | * removed unused variable from rpcclient code * added container option to net command (patch from SuSE) * Makefile patch for examples/VFS from SuSE
* Merge from HEAD - make Samba compile with -Wwrite-strings without additionalAndrew Bartlett2003-01-031-6/+10
| | | | | | warnings. (Adds a lot of const). Andrew Bartlett
* updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell2002-07-151-0/+5
|
* Add a few option externs for net_ads.cJim McDonough2002-04-101-0/+4
|
* Removed version number from file header.Tim Potter2002-01-301-1/+0
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* Add 'net rpc shutdown' and 'net rpc abortshutdown'.Andrew Bartlett2001-12-311-0/+3
| | | | | | | | These two little features are very useful, but the passing of options about needs some serious work. The popt stuff in the shutdown code is #ifdef'ed out until the main popt loop can be convinced not to chew on the options :-( Andrew Bartlett
* OK. Smbpasswd -j is DEAD.Andrew Bartlett2001-12-051-3/+3
| | | | | | | | | | | | | | | | | | | This moves the rest of the functionality into the 'net rpc join' code. Futhermore, this moves that entire area over to the libsmb codebase, rather than the crufty old rpc_client stuff. I have also fixed up the smbpasswd -a -m bug in the process. We also have a new 'net rpc changetrustpw' that can be called from a cron-job to regularly change the trust account password, for sites that run winbind but not smbd. With a little more work, we can kill rpc_client from smbd entirly! (It is mostly the domain auth stuff - which I can rework - and the spoolss stuff that sombody else will need to look over). Andrew Bartlett
* Add a new flag for anonymous connectionsAndrew Bartlett2001-12-051-0/+3
|
* Some changes to the name resolution code in 'net' to allow us to find aAndrew Bartlett2001-12-041-0/+6
| | | | | | PDC, as well as changes for correctness as per tridge. Andrew Bartlett
* Forgot this one with the last commit...Andrew Bartlett2001-12-031-0/+36
Andrew Bartlett