Günther Deschner
5eca35e0ca
Add cmd_wkssvc_enumeratecomputernames to rpcclient.
...
Guenther
(This used to be commit 289151393a
)
2007-12-19 11:15:05 +01:00
Michael Adam
1394b91888
Fix an error when accessing unallocated sid in error path.
...
Michael
(This used to be commit 2a0585d309
)
2007-12-18 16:33:35 +01:00
Volker Lendecke
2e07c2ade8
s/sid_to_string/sid_to_fstring/
...
least surprise for callers
(This used to be commit eb523ba776
)
2007-12-15 22:47:30 +01:00
Volker Lendecke
7b01537679
Replace sid_string_static with sid_string_tos
...
In utils/ I was a bit lazy...
(This used to be commit 60e830b0f4
)
2007-12-15 22:09:36 +01:00
Günther Deschner
0439fdd777
Replace "unknown" with access_mask when calling samr_CreateUser2().
...
Guenther
(This used to be commit cfc6e7a2e6
)
2007-12-11 15:26:09 +01:00
Jeremy Allison
7faee02d0d
Remove the char[1024] strings from dynconfig. Replace
...
them with malloc'ing accessor functions. Should save a
lot of static space :-).
Jeremy.
(This used to be commit 52dc5eaef2
)
2007-12-10 11:30:37 -08:00
Jeremy Allison
5b3459e340
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
...
(This used to be commit 0c21c5fa84
)
2007-12-07 09:57:19 -08:00
Günther Deschner
b2fac35adf
Allow to set custom message in wkssvc messagebuffer.
...
Guenther
(This used to be commit 4c03cbdc81
)
2007-12-07 11:56:48 +01:00
Günther Deschner
61dbd449b8
Fix build with new werror based pidl rpc.
...
Guenther
(This used to be commit 0e8fdfac8a
)
2007-12-07 11:54:01 +01:00
Günther Deschner
783afeb5fa
Add cmd_wkssvc_messagebuffersend().
...
Guenther
(This used to be commit 71e512efab
)
2007-12-07 11:43:00 +01:00
Günther Deschner
09c4b72a57
Add getjoininformation to rpcclient.
...
Guenther
(This used to be commit 699f6b1bc3
)
2007-12-07 11:42:24 +01:00
Jeremy Allison
e2ae63bcf7
Make all the tools use the proper accessor functions.
...
Jeremy.
(This used to be commit 6d61bb8797
)
2007-12-06 18:58:01 -08:00
Jeremy Allison
1b92ea5559
Remove pstrings from client/client.c by doing a large rewrite.
...
Mostly compiles....
Jeremy.
(This used to be commit c87f3eba9a
)
2007-12-06 17:16:33 -08:00
Günther Deschner
7bfe569b7d
Allow to set level in cmd_wkssvc_wkstagetinfo().
...
Guenther
(This used to be commit 2c287ce050
)
2007-12-06 19:17:57 +01:00
Günther Deschner
6b37d8e627
Fix wkssvc callers.
...
Guenther
(This used to be commit b734cd8aab
)
2007-12-03 18:43:19 +01:00
Günther Deschner
f942b8852d
Fix dfs callers.
...
Guenther
(This used to be commit 0a8759d011
)
2007-12-03 18:43:19 +01:00
Günther Deschner
9cc7b8e2a0
Reanimate rpcclient wkssvc command.
...
Guenther
(This used to be commit 1d615e3ac3
)
2007-12-03 13:08:20 +01:00
Volker Lendecke
f4e4df66e7
Fix some C++ warnings
...
I think were are actually bugs.
(This used to be commit 1be19f0788
)
2007-12-01 10:43:11 -08:00
Michael Adam
ddcaaae4ff
Give rpcclient a talloc stackframe.
...
Michael
(This used to be commit 3330394d2d
)
2007-11-28 15:24:53 +01:00
Volker Lendecke
1011b32678
Remove some statics
...
(This used to be commit 1fab16ffb8
)
2007-11-27 14:18:47 +01:00
Jeremy Allison
c049b8157d
More trivial pstring removal.
...
Jeremy.
(This used to be commit bac3bb2f6e
)
2007-11-20 15:31:37 -08:00
Jeremy Allison
d4307679b9
Change all occurrences of zero_addr(&ss,AF_INET) to
...
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 2e92418a13
)
2007-10-27 20:29:36 -07:00
Jeremy Allison
f88b7a076b
This is a large patch (sorry). Migrate from struct in_addr
...
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 98e154c312
)
2007-10-24 14:16:54 -07:00
Jeremy Allison
30191d1a57
RIP BOOL. Convert BOOL -> bool. I found a few interesting
...
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 f35a266b3c
)
2007-10-18 17:40:25 -07:00
Gerald (Jerry) Carter
e5a951325a
[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.
...
(This used to be commit 5c6c8e1fe9
)
2007-10-10 15:34:30 -05:00
Jelmer Vernooij
277c1baee9
r25572: Fix warnings (values are always true).
...
(This used to be commit 2c77c3c58e
)
2007-10-10 12:31:15 -05:00
Gerald Carter
5221ebb299
r25407: Revert Longhorn join patch as it is not correct for the 3.2 tree.
...
The translate_name() used by cli_session_setup_spnego() cann rely
Winbindd since it is needed by the join process (and hence before
Winbind can be run).
(This used to be commit 00a93ed336
)
2007-10-10 12:31:03 -05:00
Gerald Carter
3529156971
r25400: Windows 2008 (Longhorn) Interop fixes for AD specific auth2 flags,
...
and client fixes. Patch from Todd Stetcher <todd.stetcher@isilon.com>.
(This used to be commit 8304ccba73
)
2007-10-10 12:31:02 -05:00
Michael Adam
c97fe37ea3
r25294: Tidy up callers of unistr2_to_ascii() to pass sizeof(target_area) to
...
the maxeln parameter instead of sizeof(target_area) - 1 (or even
sizeof(fstring) - 1 in some places.
I hope these were really all there were.
Michael
(This used to be commit 9a28be220d
)
2007-10-10 12:30:58 -05:00
Michael Adam
91b276e4ea
r25285: Fix some more callers of unistr2_to_ascii to use the size of
...
destination instead of source as maxlen.
Michael
(This used to be commit 76cb05deec
)
2007-10-10 12:30:57 -05:00
Michael Adam
3b5666bb00
r25281: Fix a caller of unistr2_to_ascii():
...
The maxlen parameter should be set to the size of the
destination, not to the size of the soruce.
Michael
(This used to be commit 841ff0beee
)
2007-10-10 12:30:57 -05:00
Günther Deschner
84bce05e71
r24742: Add experimental DsGetDcName() call (will be used by krb5 locator for fine
...
grained KDC DNS queries).
Guenther
(This used to be commit 3263cd680f
)
2007-10-10 12:30:16 -05:00
Volker Lendecke
87165a81d9
r24167: Fix Coverity ID 365
...
We checked argc>=3 some lines above
(This used to be commit fa385e9f3c
)
2007-10-10 12:29:17 -05:00
Volker Lendecke
d5ca533043
r24068: Fix Coverity id 366 (dead code). We have checked for argc >= 3 above.
...
(This used to be commit b876bca6bc
)
2007-10-10 12:29:01 -05:00
Volker Lendecke
7ba884db5d
r23883: Fix Coverity ID 380
...
(This used to be commit 5eda562f2b
)
2007-10-10 12:28:38 -05:00
Andrew Tridgell
5e54558c6d
r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text
...
(This used to be commit b0132e94fc
)
2007-10-10 12:28:22 -05:00
Jeremy Allison
d824b98f80
r23779: Change from v2 or later to v3 or later.
...
Jeremy.
(This used to be commit 407e6e695b
)
2007-10-10 12:28:20 -05:00
Günther Deschner
6024286ee7
r23628: Add LSA lookupnames_level to rpcclient.
...
Guenther
(This used to be commit dee99e4045
)
2007-10-10 12:23:38 -05:00
Günther Deschner
7eb828135b
r23627: Allow to pass down the lookup-level to rpccli_lsa_lookup_names().
...
Guenther
(This used to be commit e9a7512a9f
)
2007-10-10 12:23:38 -05:00
Günther Deschner
6eb18630f7
r23623: Fix rpcclient and rpc_server with new DFS idl.
...
Guenther
(This used to be commit bffe33dd26
)
2007-10-10 12:23:37 -05:00
Jeremy Allison
d0daf1a0c1
r23555: Fix some uninitialiazed variable uses.
...
Jeremy
(This used to be commit dc287adff2
)
2007-10-10 12:23:28 -05:00
Günther Deschner
1ea5dfae04
r23380: netr_getdcname returns WERROR not NTSTATUS.
...
Guenther
(This used to be commit 5e75ea7f2b
)
2007-10-10 12:23:12 -05:00
Jeremy Allison
713ee9242a
r23372: Remove restriction on string length for rpcclient commands.
...
Jeremy.
(This used to be commit a2cf87f58a
)
2007-10-10 12:23:11 -05:00
Gerald Carter
05c68d98c1
r23249: another sync from 3.0.26 for the echo work to rpcclient
...
(This used to be commit 7aa1f89eb3
)
2007-10-10 12:22:59 -05:00
Volker Lendecke
d807dec0f4
r23219: Two warnings
...
(This used to be commit eccd50abda
)
2007-10-10 12:22:54 -05:00
Günther Deschner
d8e454664a
r23210: Very funny, we thought to use netr_GetDcName (e.g. in winbind) but were using
...
netr_GetDcAnyName all the time (which is the correct thing to do).
Fix the naming and opcode mixup in all branches.
Guenther
(This used to be commit def6464c87
)
2007-10-10 12:22:54 -05:00
Günther Deschner
94e4a468f0
r23127: Fill in some more netlogon dsgetdcname flavours (netr_DsRGetDCNameEx,
...
netr_DsRGetDCNameEx2) and add new ds request and reply flags, also add some
more WERROR codes.
Guenther
(This used to be commit 37ae7f4197
)
2007-10-10 12:22:48 -05:00
Jeremy Allison
be8b0685a5
r22589: Make TALLOC_ARRAY consistent across all uses.
...
Jeremy.
(This used to be commit 8968808c3b
)
2007-10-10 12:19:49 -05:00
Jeremy Allison
79de0ad946
r22588: Make all uses of TALLOC_MEMDUP consistent.
...
Jeremy.
(This used to be commit 8ad13718af
)
2007-10-10 12:19:48 -05:00
Michael Adam
992fac30a5
r22489: Add a deletedomgroup command to rpcclient (samr).
...
Corresponding to deletedomuser.
Michael
(This used to be commit 9775de56b8
)
2007-10-10 12:19:38 -05:00
Jeremy Allison
7f8d89bc54
r22062: Fix the parsing of info level 3. Flags is not a flags
...
field, but an offset. Fixed 64-bit display of ACLs on
printers.
Jeremy.
(This used to be commit 0c8949ff5d
)
2007-10-10 12:19:07 -05:00
Jeremy Allison
8e00e9d7a6
r21609: Fix memory leaks in error code paths (and one in winbindd_group.c).
...
Patch from Zack Kirsch <zack.kirsch@isilon.com>.
Jeremy.
(This used to be commit df07a662e3
)
2007-10-10 12:18:16 -05:00
Günther Deschner
9918e74984
r21320: Display query_user info level 16 in rpcclient.
...
Guenther
(This used to be commit bc77622134
)
2007-10-10 12:17:56 -05:00
Jeremy Allison
c635c57d75
r21259: Fix coverity bug id #340 . No way to process
...
logon parameter as the code was written.
Jeremy.
(This used to be commit 7f1aee96a0
)
2007-10-10 12:17:52 -05:00
Günther Deschner
52b5ca933b
r21117: Add rpccli_samr_chgpasswd_user to rpcclient for testing.
...
Guenther
(This used to be commit 4036cb5169
)
2007-10-10 12:17:40 -05:00
Günther Deschner
aeb834036d
r20970: Allow to define workstation for samlogon in rpcclient (for testing).
...
Guenther
(This used to be commit 5d4747fdf2
)
2007-10-10 12:17:22 -05:00
Jelmer Vernooij
203622b734
r20839: Fix other C++ warnings
...
(This used to be commit d948d828d5
)
2007-10-10 12:17:11 -05:00
Jelmer Vernooij
62e11c4f17
r20832: Remove extra pointers previously added to unique [out] pointers. Instead,
...
add [ref] pointers where necessary (top-level [ref] pointers,
by spec, don't appear on the wire).
This brings us closer to the DCE/RPC standard again.
(This used to be commit 580f2a7197
)
2007-10-10 12:17:11 -05:00
Jeremy Allison
63609fbb04
r20090: Fix a class of bugs found by James Peach. Ensure
...
we never mix malloc and talloc'ed contexts in the
add_XX_to_array() and add_XX_to_array_unique()
calls. Ensure that these calls always return
False on out of memory, True otherwise and always
check them. Ensure that the relevent parts of
the conn struct and the nt_user_tokens are
TALLOC_DESTROYED not SAFE_FREE'd.
James - this should fix your crash bug in both
branches.
Jeremy.
(This used to be commit 0ffca7559e
)
2007-10-10 12:16:24 -05:00
Volker Lendecke
ecf90c495e
r19991: Sorry for this 2000-liner...
...
The main thing here is a rewrite of srv_winreg_nt.c. The core functionality
has moved to registry/reg_api.c which is then usable by the rest of Samba as
well.
On that way it fixes creating keys with more than one element in the
path. This did not work before.
Two things that sneaked in (sorry :-) is the change of some routines from
NTSTATUS to WERROR the removed "parent" argument to regkey_open_internal.
Volker
(This used to be commit fea52801de
)
2007-10-10 12:16:18 -05:00
Jelmer Vernooij
19d7a9c315
r19849: Fix compilation after idl changes.
...
(This used to be commit b7f22408e9
)
2007-10-10 12:16:02 -05:00
Volker Lendecke
202f63e476
r19811: Decode REG_MULTI_SZ and REG_BINARY
...
(This used to be commit 6793301751
)
2007-10-10 12:15:57 -05:00
Volker Lendecke
01367cdfd0
r19797: Convert the remaining pipes to the "new" unique out ptr handling
...
(This used to be commit bc4e0a388a
)
2007-10-10 12:15:56 -05:00
Volker Lendecke
3372adce58
r19794: Convert DFS
...
(This used to be commit 2efd3b3509
)
2007-10-10 12:15:56 -05:00
Volker Lendecke
9849f04868
r19790: Check in the PIDL change and the converted unixinfo and winbind pipes without
...
waiting for comments. This is what version control is for, and it does fix a
segfault I ran into ;-)
Nevertheless, Jelmer & Jerry, please take a look!
Thanks,
Volker
(This used to be commit 95c14a822c
)
2007-10-10 12:15:55 -05:00
Volker Lendecke
e6b56f9f0c
r19487: Fix coverity # 313
...
(This used to be commit 0eb5a0f7b8
)
2007-10-10 12:15:39 -05:00
Volker Lendecke
ef05328552
r19451: Another cleanup of 18802. Referring to structures after the block has been
...
left is not a good idea.
Volker
(This used to be commit 88ac17db19
)
2007-10-10 12:15:36 -05:00
Günther Deschner
dbcb4b1266
r19355: Add getdispenumindex2 wrapper for rpcclient.
...
Guenther
(This used to be commit 27c35848eb
)
2007-10-10 12:15:31 -05:00
Günther Deschner
8b31fccafe
r19354: adjust usage printf for rpcclient's timeout command.
...
Guenther
(This used to be commit fb21c9c58b
)
2007-10-10 12:15:31 -05:00
Günther Deschner
fb183ebd92
r19353: Add "timeout" command for rpcclient.
...
Guenther
(This used to be commit 4106a56d3f
)
2007-10-10 12:15:30 -05:00
Günther Deschner
258f7b50dc
r19340: Wait longer then 10 seconds for a samr_query_groupmem lookup to succeed.
...
Guenther
(This used to be commit 37dd019e21
)
2007-10-10 12:15:29 -05:00
Günther Deschner
7b84b133fe
r19161: Add NET_GETANYDCNAME (getdcname only gives the PDC while getanydcname
...
gives just any DC), also make sure to set timeouts in rpcclient
accordingly so that we actually get the DC's reply.
Guenther
(This used to be commit 6091c8152a
)
2007-10-10 12:15:18 -05:00
Günther Deschner
adc299bd08
r19143: getdcname on the NETLOGON pipe returns WERROR, not NTSTATUS.
...
Guenther
(This used to be commit 44e228ac79
)
2007-10-10 12:15:16 -05:00
Volker Lendecke
bb5c820542
r19013: Fix some 64-bit warnings.
...
Jelmer, Jerry, in cmd_unixinfo.c:159 there is still the warning that "info" is
being used uninitialized which I don't really know how to fix.
Any hints?
Volker
(This used to be commit 4a5d11e194
)
2007-10-10 12:15:02 -05:00
Günther Deschner
efffbc9036
r18935: Make "netshareenum" work again. There is most probably a better way to
...
do this... Any pointers?
Guenther
(This used to be commit 1f09e54fec
)
2007-10-10 12:14:48 -05:00
Volker Lendecke
323b724ce9
r18874: Fix some NTSTATUS/WERROR mixups
...
(This used to be commit ecac9b5959
)
2007-10-10 12:14:40 -05:00
Andrew Tridgell
0c3194816b
r18865: fixed some of the most obvious NTSTATUS/WERROR mixups in Samba3. It
...
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)
(This used to be commit 8438a6a7d4
)
2007-10-10 12:01:06 -05:00
Jelmer Vernooij
7ba2554d88
r18802: Use the pidl-generated code for the srvsvc interface, both client 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.
(This used to be commit ef10672399
)
2007-10-10 12:00:59 -05:00
Gerald Carter
05ba38f754
r18747: replace rpccli_lsa_close() with rpccli_lsa_Close()
...
(This used to be commit 50d74ce048
)
2007-10-10 12:00:54 -05:00
Jelmer Vernooij
4db7642caa
r18745: Use the Samba4 data structures for security descriptors and security descriptor
...
buffers.
Make security access masks simply a uint32 rather than a structure
with a uint32 in it.
(This used to be commit b41c52b9db
)
2007-10-10 12:00:54 -05:00
Günther Deschner
5cadb91622
r18732: Fix build warning as pointed out by Volker.
...
Guenther
(This used to be commit fccaff3713
)
2007-10-10 12:00:53 -05:00
Gerald Carter
a6ddf9bf5d
r18711: Replace the following hand code client routines:
...
* rpccli_reg_abort_shutdown()
* rpccli_reg_flush_key()
Remove the cmd_reg.c from rpcclient since the entire file
was unused
(This used to be commit c4788f0c13
)
2007-10-10 12:00:51 -05:00
Jim McDonough
47bb2e1839
r18702: re-enable non-decimal specification of rid
...
(This used to be commit f3ff074046
)
2007-10-10 12:00:49 -05:00
Günther Deschner
7eca40ba3e
r18681: Although we have commandline completion in rpcclient, just also allow
...
"debug" to be set instead of "debuglevel" - just for convenience.
Guenther
(This used to be commit ffec64730b
)
2007-10-10 12:00:47 -05:00
Günther Deschner
5864fb9fc5
r18677: quickly add samr_GetDisplayEnumerationIndex for debugging to rpcclient.
...
Guenther
(This used to be commit bd546edc48
)
2007-10-10 12:00:46 -05:00
Günther Deschner
a812e2d7db
r18619: Add rpcclient helper for samr_querydispinfo2|3 for testing.
...
Guenther
(This used to be commit 1a307954e5
)
2007-10-10 11:52:00 -05:00
Gerald Carter
ab91674753
r18617: fix unixinfo call after change to IDL (change from pointer)
...
(This used to be commit fd0579b963
)
2007-10-10 11:52:00 -05:00
Jelmer Vernooij
e5db7fee0f
r18572: Use the autogenerated client and server for the echo interface and implement
...
some of the missing functions. RPC-ECHO now passes against Samba3.
(This used to be commit 9e9a053661
)
2007-10-10 11:51:51 -05:00
Gerald Carter
c4013df0c1
r18560: * Add in the winreg and initshutdown IDL files
...
* rename PI_SHUTDOWN from include/smb.h to PI_INITSHUTDOWN
for compatibility with pidl libndr output
(This used to be commit 23a8828613
)
2007-10-10 11:51:50 -05:00
Jelmer Vernooij
8be112a81b
r18469: Use new pidl-generated DFS client code.
...
(This used to be commit e277fb067b
)
2007-10-10 11:51:43 -05:00
Gerald Carter
85e4a7a5b3
r18394: get the lsa client code to link
...
(This used to be commit 96e412a04c
)
2007-10-10 11:51:21 -05:00
Gerald Carter
2b27c93a9a
r18271: Big change:
...
* 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.
(This used to be commit 3da9f80c28
)
2007-10-10 11:51:18 -05:00
Jelmer Vernooij
1779e3f104
r18233: Use the autogenerated cli_unixinfo rather than the old one.
...
(This used to be commit eec8b915d1
)
2007-10-10 11:51:17 -05:00
Jelmer Vernooij
995205fc60
r18188: merge 3.0-libndr branch
...
(This used to be commit 1115745cae
)
2007-10-10 11:43:56 -05:00
Günther Deschner
72c605b4fc
r17454: Adding dfs_EnumEx for rpcclient (Samba4 IDL to follow).
...
Guenther
(This used to be commit 8c1198c159
)
2007-10-10 11:38:35 -05:00
Günther Deschner
11673dc07a
r17453: Fix msdfs RPC management (this broke with the autogenerated dfs rpcs).
...
* Remove "unknown" from dfs_Enum (samba4 dfs IDL updates to follow).
* When encountering an unsupported infolevel the rpc server must reply
with a dfs_info_0 structure and WERR_OK (observed from w2k3 when talking
to nt4).
Guenther
(This used to be commit f9bef1f08f
)
2007-10-10 11:38:34 -05:00
Volker Lendecke
e23781b3b3
r17316: More C++ warnings -- 456 left
...
(This used to be commit 1e4ee728df
)
2007-10-10 11:38:25 -05:00
Jeremy Allison
fbdcf2663b
r16945: Sync trunk -> 3.0 for 3.0.24 code. Still need
...
to do the upper layer directories but this is what
everyone is waiting for....
Jeremy.
(This used to be commit 9dafb7f48c
)
2007-10-10 11:19:14 -05:00
Jeremy Allison
3c9a5c7b58
r16654: Fix bug #3893 reported by jason@ncac.gwu.edu.
...
Jeremy.
(This used to be commit 7875394898
)
2007-10-10 11:19:06 -05:00
Jeremy Allison
2b8abc030b
r16644: Fix bug #3887 reported by jason@ncac.gwu.edu
...
by converting the lookup_XX functions to correctly
return SID_NAME_TYPE enums.
Jeremy.
(This used to be commit ee2b2d96b6
)
2007-10-10 11:19:05 -05:00
Volker Lendecke
8961048d24
r16339: Fix Klocwork ID
...
277 278 (cmd_*)
485 487 488 (ldap.c)
Volker
(This used to be commit 5b1eba76b3
)
2007-10-10 11:17:36 -05:00
Jeremy Allison
a041b6b672
r15556: Better fix for leading // or \\ from "David R. Linn"
...
<drl@vuse.vanderbilt.edu>.
Jeremy.
(This used to be commit 502f3e911a
)
2007-10-10 11:16:59 -05:00
Günther Deschner
c8baac2fd6
r15553: minor rpcclient cleanup: length is already set in data_blob.
...
Guenther
(This used to be commit a80f366057
)
2007-10-10 11:16:59 -05:00
Jeremy Allison
2dd8857dcb
r15537: Ignore // or \\ in //server or \\server.
...
Jeremy.
(This used to be commit 45cfba12cf
)
2007-10-10 11:16:56 -05:00
Günther Deschner
0fe21ac560
r15442: Add some more client rpc for the querydominfo calls (from samba4 idl).
...
Also return the hostname for the level 6 call (to be consistent with the
server name in level 2).
Guenther
(This used to be commit 41b72e77ae
)
2007-10-10 11:16:44 -05:00
Günther Deschner
655b04e4f8
r15041: Adding rpc client calls to manipulate auditing policies on remote CIFS
...
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
(This used to be commit 0fed66926f
)
2007-10-10 11:15:59 -05:00
Jeremy Allison
4f53350b43
r14833: Fix resource leak on error code path. Coverity #280 .
...
Jeremy.
(This used to be commit b985bdcb87
)
2007-10-10 11:15:50 -05:00
Günther Deschner
20204ab040
r14646: Adding samr querygroup infolevels 2 & 5.
...
Guenther
(This used to be commit 6c4fe819c6
)
2007-10-10 11:15:42 -05:00
Günther Deschner
736ba57efe
r14579: Add REJECT_REASON_OTHER in the rpcclient chgpasswd3.
...
Guenther
(This used to be commit 9de3e9e6b2
)
2007-10-10 11:15:38 -05:00
Günther Deschner
99a3f68eb5
r14495: Allow to play with the logon_param flag when testing samlogons.
...
Guenther
(This used to be commit 52d721b638
)
2007-10-10 11:15:34 -05:00
Jeremy Allison
568f28284a
r14399: Fix deadcode coverity bug #3 .
...
Jeremy.
(This used to be commit 3799f18b35
)
2007-10-10 11:15:28 -05:00
Jeremy Allison
abafc0d887
r14340: Fix coverity #78 , resource leak in error path.
...
Jeremy.
(This used to be commit 76c4f2c4dc
)
2007-10-10 11:15:26 -05:00
Volker Lendecke
8790a2e257
r14245: We've dereferenced argv before, no point in checking.
...
Fix Coverity bug # 144.
Volker
(This used to be commit d47ee82f06
)
2007-10-10 11:15:20 -05:00
Volker Lendecke
e6f82d5c36
r14217: Fix Coverity Bug # 7
...
(This used to be commit b3cfa292cf
)
2007-10-10 11:15:17 -05:00
Volker Lendecke
0fcd3e1095
r14216: Fix Coverity bug # 8
...
(This used to be commit e4c9cba2f9
)
2007-10-10 11:15:17 -05:00
Günther Deschner
c34e73cfcf
r14146: Just some typos.
...
Guenther
(This used to be commit ade86cc787
)
2007-10-10 11:15:13 -05:00
Günther Deschner
e443866f76
r14144: allow to set sec_info in rpcclients lsa_query_secobj.
...
Guenther
(This used to be commit 18ee669c60
)
2007-10-10 11:15:13 -05:00
Günther Deschner
7aa07a4832
r13945: Move display_sec.c to lib/ (as suggested by Volker).
...
Guenther
(This used to be commit 7e80d5358e
)
2007-10-10 11:11:00 -05:00
Günther Deschner
9f2e29799e
r13864: Some cleanup and the samr set security object function client-side.
...
Guenther
(This used to be commit 0ae3fddf95
)
2007-10-10 11:10:57 -05:00
Günther Deschner
e54786b535
r13711: * Correctly handle acb_info/acct_flags as uint32 not as uint16.
...
* Fix a couple of related parsing issues.
* in the info3 reply in a samlogon, return the ACB-flags (instead of
returning zero)
Guenther
(This used to be commit 5b89e8bc24
)
2007-10-10 11:10:25 -05:00
Gerald Carter
fb5362c069
r13571: Replace all calls to talloc_free() with thye TALLOC_FREE()
...
macro which sets the freed pointer to NULL.
(This used to be commit b65be8874a
)
2007-10-10 11:10:14 -05:00
Günther Deschner
ee078e61a6
r13523: Fix indent.
...
Guenther
(This used to be commit 85435bf961
)
2007-10-10 11:10:09 -05:00
Günther Deschner
6a6f2463f6
r13522: Add SAMR_GET_USRDOM_PWINFO client-side.
...
Guenther
(This used to be commit 290a581b75
)
2007-10-10 11:10:09 -05:00
Günther Deschner
8675ab8787
r13448: Fix the build (again).
...
Guenther
(This used to be commit 7eacb47660
)
2007-10-10 11:10:03 -05:00
Günther Deschner
e83c7d0141
r13442: Implement samr_chgpasswd_user3 server-side.
...
Guenther
(This used to be commit f60eddc0a4
)
2007-10-10 11:10:03 -05:00
Volker Lendecke
1e68cce96d
r13394: Fix rpcclient to obey the -W parameter. Not that I *like* the smbclient
...
solution, but it does this particular job... :-)
Volker
(This used to be commit df6d67cd10
)
2007-10-10 11:09:58 -05:00
Volker Lendecke
845e49bdab
r13379: Andrew correctly noted that this breaks -s. Not sure what to do...
...
(This used to be commit 5f9f772c25
)
2007-10-10 11:09:57 -05:00
Volker Lendecke
b2d98799e6
r13378: Not sure what this breaks, but we have to do the popt processing after the
...
lp_load, because otherwise the lp_load overwrites the -W setting again.
Volker
(This used to be commit c7cc625d63
)
2007-10-10 11:09:57 -05:00
Gerald Carter
0af1500fc0
r13316: Let the carnage begin....
...
Sync with trunk as off r13315
(This used to be commit 17e63ac4ed
)
2007-10-10 11:06:23 -05:00
Derrell Lipman
9c15bd311d
r13212: r12414@cabra: derrell | 2006-01-28 17:52:17 -0500
...
lp_load() could not be called multiple times to modify parameter settings based
on reading from multiple configuration settings. Each time, it initialized all
of the settings back to their defaults before reading the specified
configuration file.
This patch adds a parameter to lp_load() specifying whether the settings should
be initialized. It does, however, still force the settings to be initialized
the first time, even if the request was to not initialize them. (Not doing so
could wreak havoc due to uninitialized values.)
(This used to be commit f2a24de769
)
2007-10-10 11:06:18 -05:00
Günther Deschner
abfc68fdc3
r13162: Allow to set the flags for a ds_enum_domain_trusts query in rpcclient.
...
Guenther
(This used to be commit e52b77b0a4
)
2007-10-10 11:06:16 -05:00
Alexander Bokovoy
a02415bf36
r12935: After discussion with Volker fix bug #3397 using a variant of the patch by Alex Deiter (tiamat@komi.mts.ru).
...
Introduces level 9 of getuserinfo and allows to successfully install MS SMS2003
on a member of a Samba domain. Also added support for this level in rpcclient.
The code for infolevel 9 is modelled upon Samba-TNG by Alex Deiter.
Jerry, we need this in 3.0.21b.
(This used to be commit 93461646ce
)
2007-10-10 11:06:08 -05:00
Günther Deschner
967ab90b17
r12901: Fix netfileenum returning WERR_BUF_TOO_SMALL.
...
Guenther
(This used to be commit b8ff07b04a
)
2007-10-10 11:06:06 -05:00
Volker Lendecke
7773676c1d
r12581: And another one :-)
...
(This used to be commit 3247a4cfc1
)
2007-10-10 11:06:00 -05:00
Günther Deschner
107fe91d2b
r12414: Remove the unnecessary SMB_STRDUP in server_role_str() + reuse the role
...
translation elsewhere.
Guenther
(This used to be commit 6c4a6da3dc
)
2007-10-10 11:05:55 -05:00
Günther Deschner
5ffc3b18ef
r12131: Fix it really, this time :)
...
Guenther
(This used to be commit 4a506dbc3c
)
2007-10-10 11:05:46 -05:00
Günther Deschner
09c1b2a20e
r12130: display domain GUID.
...
Guenther
(This used to be commit 8e63da0366
)
2007-10-10 11:05:46 -05:00
Volker Lendecke
e30b176ea3
r11998: Add lookupname to rpcclient query_user as a fallback, we now accept both rid
...
and username.
Volker
(This used to be commit 8fefafcbb8
)
2007-10-10 11:05:41 -05:00
Günther Deschner
6ffd82ea77
r11964: rename flag to password_properties in SAM_UNK_INFO_1 because that's what
...
it is. (SAM_UNK_INFO_1 should get a better name as well).
Guenther
(This used to be commit d94aaeb625
)
2007-10-10 11:05:40 -05:00
Volker Lendecke
10bc204efb
r11923: Add samr_lookup_rids for the builtin domain. Doing it this way feels a bit
...
wrong, but so far we don't have proper multi-domain support in passdb yet...
Volker
(This used to be commit c917cfc320
)
2007-10-10 11:05:36 -05:00
Günther Deschner
1b624b69bd
r11858: Fill in the clientside TRUSTED_DOMAIN_INFO_EX query.
...
Guenther
(This used to be commit 02f13dee6d
)
2007-10-10 11:05:31 -05:00
Günther Deschner
4c34e1b7e2
r11857: Fix the build.
...
Guenther
(This used to be commit 6508cb1c80
)
2007-10-10 11:05:31 -05:00
Günther Deschner
2770e98aec
r11856: Replace unknown1 with group_attr.
...
Can anyone remember why we initialize groups only with 0x03 instead of 0x07 ?
Guenther
(This used to be commit 3282c7c458
)
2007-10-10 11:05:30 -05:00
Günther Deschner
63addcb4d7
r11853: Add Dsr_GetSiteName (handy for experimenting with GPOs).
...
Guenther
(This used to be commit c54430a7b5
)
2007-10-10 11:05:30 -05:00
Günther Deschner
e09cc27d3b
r11852: Fill in samr_get_dom_pwinfo based on Samba4.
...
Guenther
(This used to be commit a8bc4bc902
)
2007-10-10 11:05:30 -05:00
Volker Lendecke
32cf16f3cf
r11706: Implement dsr_getdcname client code. It's handy: It not only gives you the IP
...
address but also the fqdn of the remote dc and site info.
Volker
(This used to be commit 62d01ce7e6
)
2007-10-10 11:05:24 -05:00
Jeremy Allison
fcceedd67c
r11573: Adding Andrew Bartlett's patch to make machine account
...
logons work if the client gives the MSV1_0_ALLOW_SERVER_TRUST_ACCOUNT
or MSV1_0_ALLOW_WORKSTATION_TRUST_ACCOUNT flags. This changes
the auth module interface to 2 (from 1). The effect of this is
that clients can access resources as a machine account if they
set these flags. This is the same as Windows (think of a VPN
where the vpn client authenticates itself to a VPN server
using machine account credentials - the vpn server checks
that the machine password was valid by performing a machine
account check with the PDC in the same was as it would a
user account check. I may add in a restriction (parameter)
to allow this behaviour to be turned off (as it was previously).
That may be on by default.
Andrew Bartlett please review this change carefully.
Jeremy.
(This used to be commit d1caef8663
)
2007-10-10 11:05:20 -05:00
Jeremy Allison
5678e4abb0
r11492: Fix bug #3224 (I hope). Correctly use machine_account_name
...
and client_name when doing netlogon credential setup.
Jeremy.
(This used to be commit 37e6ef9389
)
2007-10-10 11:05:18 -05:00
Jeremy Allison
d6a68f8739
r11454: Last 2 uninitialized warnings.
...
Jeremy.
(This used to be commit 5f10368ff0
)
2007-10-10 11:05:17 -05:00
Volker Lendecke
f0dab6ba20
r11286: Fix a potential segfault
...
(This used to be commit f4c310d556
)
2007-10-10 11:05:10 -05:00