summaryrefslogtreecommitdiffstats
path: root/source/utils/net_rpc.c
Commit message (Collapse)AuthorAgeFilesLines
* r22867: With Samba4's IDL, we now have two new flags for share types: ↵Alexander Bokovoy2007-05-141-1/+1
| | | | | | | | | STYPE_TEMPORARY and STYPE_HIDDEN Strip them out when referencing share_type[] entries. Apparently, some Windows XP installs create shares set to STYPE_HIDDEN by default, found by Damir Shayhutdinov <damir@altlinux.org>. This also fixes smb4k crashes as it does call 'net share -l'.
* r21856: Re-merge svn r16619 from trunk that was lost when adding PIDLGerald Carter2007-03-161-5/+4
| | | | | | | | | and then not merging PIDL to SAMBA_3_0_25. * Rework parsing for NetFileEnum() and NetSessionEnum() * Add server stub for NetFileClose() * Return correct information for sessions and open files including session duration, number of open files, and open pipes.
* r21768: Fix the client dfs code such that smbclient canJeremy Allison2007-03-081-2/+10
| | | | | | | | | process deep dfs links (ie. links that go to non root parts of a share). Make the directory handling conanonical in POSIX and Windows pathname processing. dfs should not be fully working in client tools. Please bug me if not. Jeremy.
* r21755: Memory leak fixes from Zack Kirsch <zack.kirsch@isilon.com>.Jeremy Allison2007-03-071-0/+9
| | | | Jeremy.
* r21609: Fix memory leaks in error code paths (and one in winbindd_group.c).Jeremy Allison2007-03-011-0/+22
| | | | | Patch from Zack Kirsch <zack.kirsch@isilon.com>. Jeremy.
* r20917: Fix missing error returns pointed out by "Li, Ying (ESG)" ↵Jeremy Allison2007-01-191-0/+3
| | | | | | <ying.li2@hp.com> Jeremy.
* r19814: Fix 'make everything build'Gerald Carter2006-11-211-7/+7
| | | | | | | The only major remaining pieces that are not being merged are: * The IDL work * The security descriptor merge.
* r19806: merge time.c changesGerald Carter2006-11-201-1/+1
|
* r19796: * copy libgpo and grab libads changesGerald Carter2006-11-191-2/+2
|\ | | | | | | | | * update net to include dns and gpo commands * include server name rap call in net
| * r19447: Do not throw away informationVolker Lendecke2006-10-211-4/+1
| |
| * r19446: Comment can be NULL nowVolker Lendecke2006-10-211-1/+2
| |
| * r19445: Attempt to fix net rpc shareVolker Lendecke2006-10-211-1/+42
| |
| * r18919: * Get the new rpccli_winreg_XXXX() functions into the treeGerald Carter2006-09-261-33/+20
| | | | | | | | | | There some broken functionality here that I'm still working on. * remove unneeded parsing routines
| * r18865: fixed some of the most obvious NTSTATUS/WERROR mixups in Samba3. ItAndrew Tridgell2006-09-241-33/+33
| | | | | | | | | | | | | | | | | | | | | | still doesn't compile with immediate structures and the NTSTATUS/WERROR separation, as there are still several places where the two error types are mixed up. I haven't fixed those as they require decisions about the rpcclient code that I really don't want to get into (the error handling there is a mess) So samba3 compiles now, but only becaise HAVE_IMMEDIATE_STRUCTURES is not used (look for HAVE_IMMEDIATE_STRUCTURES_XX_DISABLED)
| * r18802: Use the pidl-generated code for the srvsvc interface, both client ↵Jelmer Vernooij2006-09-211-258/+122
| | | | | | | | | | | | | | and server code. This has had some basic testing. I'll do more during the next couple of days and hopefully also make RPC-SRVSVC from Samba4 pass against it.
| * r18747: replace rpccli_lsa_close() with rpccli_lsa_Close()Gerald Carter2006-09-201-6/+6
| |
| * r18727: set the winreg_AbortSystemShutdown() server * to NULL rather than a ↵Gerald Carter2006-09-201-2/+1
| | | | | | | | dummy placeholder
| * r18714: fix the build after replaceing rpccli_reg_abort_shutdown()Gerald Carter2006-09-201-1/+2
| |
| * r18643: Fix a 64-bit warningVolker Lendecke2006-09-181-1/+1
| |
| * r18560: * Add in the winreg and initshutdown IDL filesGerald Carter2006-09-151-2/+2
| | | | | | | | | | * rename PI_SHUTDOWN from include/smb.h to PI_INITSHUTDOWN for compatibility with pidl libndr output
| * r18271: Big change:Gerald Carter2006-09-081-9/+9
| | | | | | | | | | | | | | | | | | | | | | * autogenerate lsa ndr code * rename 'enum SID_NAME_USE' to 'enum lsa_SidType' * merge a log more security descriptor functions from gen_ndr/ndr_security.c in SAMBA_4_0 The most embarassing thing is the "#define strlen_m strlen" We need a real implementation in SAMBA_3_0 which I'll work on after this code is in.
| * r18188: merge 3.0-libndr branchJelmer Vernooij2006-09-061-1/+1
| |
| * r16945: Sync trunk -> 3.0 for 3.0.24 code. Still needJeremy Allison2006-07-111-12/+11
| | | | | | | | | | | | | | to do the upper layer directories but this is what everyone is waiting for.... Jeremy.
| * r16644: Fix bug #3887 reported by jason@ncac.gwu.eduJeremy Allison2006-06-281-3/+3
| | | | | | | | | | | | by converting the lookup_XX functions to correctly return SID_NAME_TYPE enums. Jeremy.
| * r16638: Fix bug #3885, reported by jason@ncac.gwu.edu. UseJeremy Allison2006-06-281-1/+1
| | | | | | | | | | the correct enumerated type in the macro. Jeremy.
| * r16360: Fix Klocwork ID 136 520 521 522 523 542 574 575 576 607Volker Lendecke2006-06-191-4/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in net_rpc.c: 715 716 732 734 735 736 737 738 739 749 in net_rpc_audit.c: 754 755 756 in net_rpc_join.c: 757 in net_rpc_registry: 766 767 in net_rpc_samsync.c: 771 773 in net_sam.c: 797 798 Volker
| * r16345: Improve the chance that our users can discover one of the coolest 'net'Günther Deschner2006-06-191-0/+1
| | | | | | | | | | | | features. Guenther
| * r16344: Allow to set passwords directly when creating users via "net rpc userGünther Deschner2006-06-191-1/+55
| | | | | | | | | | | | | | add" (as the documentation says, and currently onle "net ads user add" did). Fixes #3843. Guenther
| * r16284: Start fixing up gcc4 -O6 warnings on an x86_64 box. size_t != unsignedJeremy Allison2006-06-161-2/+2
| | | | | | | | | | | | int in a format string. Jeremy.
| * r15657: Fix some Tru64 warningsVolker Lendecke2006-05-171-2/+2
| |
| * r15543: New implementation of 'net ads join' to be more like Windows XP.Gerald Carter2006-05-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * r15471: Clarify error messageVolker Lendecke2006-05-061-2/+2
| |
| * r15198: Mention the auditing tool in "net rpc help".Günther Deschner2006-04-241-0/+1
| | | | | | | | Guenther
| * r15194: We need to be able to join as PDC as well. Thanks to Andrew Bartlett.Günther Deschner2006-04-241-3/+2
| | | | | | | | Guenther
| * r15137: Refuse to join if our netbios name is longer than 15 chars. I think ↵Volker Lendecke2006-04-191-0/+7
| | | | | | | | | | | | | | | | this is sufficient to fix bug #3659. Volker
| * r15136: Fix join consistency checkVolker Lendecke2006-04-191-1/+1
| |
* | r19795: * bring the 'enum lsa_SidType', 'struct GUID', & 'structGerald Carter2006-11-191-6/+6
| | | | | | | | policy_handle' over from SAMBA_3_0.
* | r16674: After removing each individual post-3.0.23rc3 change:Gerald Carter2006-06-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This pulls is what I considered safe fixes from SAMBA_3_0. This boiled down to either Klocwork fixes or obvious compiler warning fixes. I did not include any changes to fnuction signatures not the version change to the passdb API. Also pulled in the 3 nmbd fixes requested by Jeremy and the wildcard delete fix. This code will sit for a few days in the cooker and then become 3.0.23 if nothing blows up. I don't care how many more compile warning fixes people throw into SAMBA_3_0.
* | r16418: Pull in more Klocwork fixes (up to r16415)Gerald Carter2006-06-201-4/+28
| |
* | r16348: * merging changes from SAMBA_3_0 r16346Gerald Carter2006-06-191-3/+58
| | | | | | | | * updating release notes to match
* | r15837: starting sync up for 3.0.23rc1 (in sync with SAMBA_3_0 r15822)Gerald Carter2006-05-231-8/+8
| |
* | r15144: final code changes for 3.0.23pre1 (SAMBA_3_0 r15141)Gerald Carter2006-04-201-1/+8
|/
* r15123: Don't even try to join with an inproper configuration.Günther Deschner2006-04-181-0/+6
| | | | Guenther
* r15053: fix portabilities issues between 32-bit winbind clients and a 64-bit ↵Gerald Carter2006-04-121-6/+6
| | | | winbindd server
* r15041: Adding rpc client calls to manipulate auditing policies on remote CIFSGünther Deschner2006-04-111-0/+1
| | | | | | | | | servers. Also add a new "net rpc audit" tool. The lsa query infolevels were taken from samb4 IDL, the lsa policy flags and categories are partly documented on msdn. I need to cleanup the double lsa_query_info_policy{2}{_new} calls next. Guenther
* r15011: Fix bug # 2413. net rpc info can't reliably work anonymously anymore.Volker Lendecke2006-04-091-1/+3
| | | | Volker
* r14101: Fix a segfault in trustdom establish, cli is NULL here.Volker Lendecke2006-03-091-1/+1
|
* r13915: Fixed a very interesting class of realloc() bugs found by Coverity.Jeremy Allison2006-03-071-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | realloc can return NULL in one of two cases - (1) the realloc failed, (2) realloc succeeded but the new size requested was zero, in which case this is identical to a free() call. The error paths dealing with these two cases should be different, but mostly weren't. Secondly the standard idiom for dealing with realloc when you know the new size is non-zero is the following : tmp = realloc(p, size); if (!tmp) { SAFE_FREE(p); return error; } else { p = tmp; } However, there were *many* *many* places in Samba where we were using the old (broken) idiom of : p = realloc(p, size) if (!p) { return error; } which will leak the memory pointed to by p on realloc fail. This commit (hopefully) fixes all these cases by moving to a standard idiom of : p = SMB_REALLOC(p, size) if (!p) { return error; } Where if the realloc returns null due to the realloc failing or size == 0 we *guarentee* that the storage pointed to by p has been freed. This allows me to remove a lot of code that was dealing with the standard (more verbose) method that required a tmp pointer. This is almost always what you want. When a realloc fails you never usually want the old memory, you want to free it and get into your error processing asap. For the 11 remaining cases where we really do need to keep the old pointer I have invented the new macro SMB_REALLOC_KEEP_OLD_ON_ERROR, which can be used as follows : tmp = SMB_REALLOC_KEEP_OLD_ON_ERROR(p, size); if (!tmp) { SAFE_FREE(p); return error; } else { p = tmp; } SMB_REALLOC_KEEP_OLD_ON_ERROR guarentees never to free the pointer p, even on size == 0 or realloc fail. All this is done by a hidden extra argument to Realloc(), BOOL free_old_on_error which is set appropriately by the SMB_REALLOC and SMB_REALLOC_KEEP_OLD_ON_ERROR macros (and their array counterparts). It remains to be seen what this will do to our Coverity bug count :-). Jeremy.
* r13711: * Correctly handle acb_info/acct_flags as uint32 not as uint16. Günther Deschner2006-02-271-2/+2
| | | | | | | | * Fix a couple of related parsing issues. * in the info3 reply in a samlogon, return the ACB-flags (instead of returning zero) Guenther
* r13382: added server affinity cache stores for 'net rpc join' and trusted ↵Gerald Carter2006-02-081-0/+4
| | | | domain code