Günther Deschner
f7100156a7
Finally enable pidl generated SAMR & NETLOGON headers and clients.
...
Guenther
2008-01-17 16:54:46 +01:00
Jeremy Allison
ec003f3936
Remove next_token - all uses must now be next_token_talloc.
...
No more temptations to use static length strings.
Jeremy.
2007-12-07 17:32:32 -08:00
Jeremy Allison
bac3bb2f6e
More trivial pstring removal.
...
Jeremy.
2007-11-20 15:31:37 -08:00
Jeremy Allison
f35a266b3c
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.
2007-10-18 17:40:25 -07:00
Andrew Tridgell
87c91e4362
r23801: The FSF has moved around a lot. This fixes their Mass Ave address.
2007-10-10 12:28:27 -05:00
Jeremy Allison
407e6e695b
r23779: Change from v2 or later to v3 or later.
...
Jeremy.
2007-10-10 12:28:20 -05:00
Günther Deschner
5e75ea7f2b
r23380: netr_getdcname returns WERROR not NTSTATUS.
...
Guenther
2007-10-10 12:23:12 -05:00
Günther Deschner
def6464c87
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
2007-10-10 12:22:54 -05:00
Günther Deschner
37ae7f4197
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
2007-10-10 12:22:48 -05:00
Volker Lendecke
123290d094
r23091: Add rpccli_netlogon_sam_network_logon_ex, fix its parsing. This does not
...
use the credential chain and only works over netlogon, but it would
allow multiple outstanding auth requests for a single workstation
account.
2007-10-10 12:22:44 -05:00
Jeremy Allison
9a10736e6f
r23080: Fix bug #4637 - we hads missed some cases where
...
we were calling PRS_ALLOC_MEM with zero count.
Jeremy.
2007-10-10 12:22:43 -05:00
Jeremy Allison
c622fb8536
r22585: Get us into a consistent state with TALLOC_ZERO_ARRAY also.
...
Jeremy.
2007-10-10 12:19:47 -05:00
Jeremy Allison
3df99006f8
r22577: Change all of parse/*.c to use standard form. Fix some
...
marshalling bugs.
Jeremy.
2007-10-10 12:19:46 -05:00
Jeremy Allison
f6fa3080fe
r22542: Move over to using the _strict varients of the talloc
...
calls. No functional changes. Looks bigger than it is :-).
Jeremy.
2007-10-10 12:19:44 -05:00
Stefan Metzmacher
fa322f0cc9
r22001: change prototype of dump_data(), so that it takes unsigned char * now,
...
which matches what samba4 has.
also fix all the callers to prevent compiler warnings
metze
2007-10-10 12:18:59 -05:00
Günther Deschner
7bbb3409a5
r21393: Fix typo.
...
Guenther
2007-10-10 12:18:01 -05:00
Herb Lewis
41be182f78
r20269: merge -r20264:20267 from SAMBA_3_0_24
...
more no previous prototype warnings
2007-10-10 12:16:38 -05:00
Günther Deschner
6091c8152a
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
2007-10-10 12:15:18 -05:00
Günther Deschner
44e228ac79
r19143: getdcname on the NETLOGON pipe returns WERROR, not NTSTATUS.
...
Guenther
2007-10-10 12:15:16 -05:00
Jelmer Vernooij
5de76767e8
r18654: Rename "struct uuid" => "struct GUID" for consistency.
2007-10-10 11:52:19 -05:00
Jelmer Vernooij
1115745cae
r18188: merge 3.0-libndr branch
2007-10-10 11:43:56 -05:00
Jeremy Allison
ee1b9207d3
r16126: Janitor for Volker..... This looks correct to me.
...
Jeremy.
Fix a parsing error that became apparent in 'make test': If we have no
group
rids in the info3 we set the array buffer pointer to "1" but fail to
actually
ship the array.
Volker.
2007-10-10 11:17:22 -05:00
Günther Deschner
7616317f9f
r14061: Some debugging for the new LOGON/ACB-flags.
...
Guenther
2007-10-10 11:11:09 -05:00
Volker Lendecke
29b4b986cc
r14025: Remove unused code. When we want to export samsync, we better first port
...
pidl...
Fix Coverity # 15.
Volker
2007-10-10 11:11:06 -05:00
Günther Deschner
5b89e8bc24
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
2007-10-10 11:10:25 -05:00
Jeremy Allison
9437ffc84f
r13439: Fix NET_SAM_LOGON_EX.
...
Jeremy.
2007-10-10 11:10:02 -05:00
Jeremy Allison
666b03b4a9
r13433: Get ready to implement NET_SAM_LOGON_EX.
...
Jeremy.
2007-10-10 11:10:01 -05:00
Jeremy Allison
8ae70122b7
r13399: Get closer to passing RPC-SCHANNEL test.
...
Jeremy.
2007-10-10 11:09:59 -05:00
Gerald Carter
17e63ac4ed
r13316: Let the carnage begin....
...
Sync with trunk as off r13315
2007-10-10 11:06:23 -05:00
Jeremy Allison
c65b752604
r12043: It's amazing the warnings you find when compiling on a 64-bit
...
box with gcc4 and -O6...
Fix a bunch of C99 dereferencing type-punned pointer will break
strict-aliasing rules errors. Also added prs_int32 (not uint32...)
as it's needed in one place. Find places where prs_uint32 was being
used to marshall/unmarshall a time_t (a big no no on 64-bits).
More warning fixes to come.
Thanks to Volker for nudging me to compile like this.
Jeremy.
2007-10-10 11:05:42 -05:00
Günther Deschner
c54430a7b5
r11853: Add Dsr_GetSiteName (handy for experimenting with GPOs).
...
Guenther
2007-10-10 11:05:30 -05:00
Volker Lendecke
62d01ce7e6
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
2007-10-10 11:05:24 -05:00
Volker Lendecke
9741818d2c
r11326: Fix alignment in getdc response
2007-10-10 11:05:12 -05:00
Jeremy Allison
d720867a78
r11137: Compile with only 2 warnings (I'm still working on that code) on a gcc4
...
x86_64 box.
Jeremy.
2007-10-10 11:05:02 -05:00
Günther Deschner
3d5d5ddce2
r10782: Only parse the group rid_array in net_user_info3() when num_group is > 0.
...
This fixes the PAC parsing for win2k DCs up to SP3. (Where full SIDs
are stored in the PAC instead of RIDs).
Guenther
2007-10-10 11:04:54 -05:00
Gerald Carter
939c3cb5d7
r10656: BIG merge from trunk. Features not copied over
...
* \PIPE\unixinfo
* winbindd's {group,alias}membership new functions
* winbindd's lookupsids() functionality
* swat (trunk changes to be reverted as per discussion with Deryck)
2007-10-10 11:04:48 -05:00
Günther Deschner
fdba056a2f
r10205: fix obvious typo in the NET_USER_INFO_3 parsing
...
Guenther
2007-10-10 11:03:37 -05:00
Volker Lendecke
dbcc1de3f8
r8869: Get rid of a warning.
...
Volker
2007-10-10 11:00:18 -05:00
Gerald Carter
28d433351c
r6232: more cleanups; remove BUFFER3; rename BUFFER4 -> RPC_DATA_BLOB; rename REG_CREATE_VALE -> REG_SET_VALUE
2007-10-10 10:56:30 -05:00
Andrew Bartlett
bae18aaaff
r5536: Avoid intermediate copy of NT and LM responses in NETLOGON client.
...
This copy was length-limited, which broke when the NTLMv2 response was
more than 128 bytes in length.
Andrew Bartlett
2007-10-10 10:55:45 -05:00
Volker Lendecke
a0a6388830
r4946: Our notion the other_sids in the info3 SamLogon struct was
...
...hmmm... completely bogus. This does not affect us as a domain controller,
as we never set other_sids, but I have *no* idea how winbind got away with it.
Please review thoroughly, samba4 idl looks closer to reality here.
Test case: Member of w2k3 domain, authenticate as a user who is member of one
or more domain local groups. Easiest review with 'client schannel = no'.
Thanks,
Volker
2007-10-10 10:55:08 -05:00
Günther Deschner
721bf50d74
r4287: Vampire SAM_DELTA_DOMAIN_INFO.
...
Based on samba4-idl. The decoding of account-lockout-string is somewhat
experimental though.
Guenther
2007-10-10 10:53:41 -05:00
Günther Deschner
bd4c5125d6
r4286: Give back 8 byte lm_session_key in Netrsamlogon-reply.
...
The old #ifdef JRATEST-block was copying 16 bytes and thus overwriting
acct_flags with bizarre values, breaking a lot of things.
This patch is successfully running in a production environment for quite
some time now and is required to finally allow Exchange 5.5 to access
another Exchange Server when both are running on NT4 in a
samba-controlled domain. This also allows Exchange Replication to take
place, Exchange Administrator to access other Servers in the network,
etc. Fixes Bugzilla #1136 .
Thanks abartlet for helping me with that one.
Guenther
2007-10-10 10:53:41 -05:00
Jeremy Allison
620f2e608f
r4088: Get medieval on our ass about malloc.... :-). Take control of all our allocation
...
functions so we can funnel through some well known functions. Should help greatly with
malloc checking.
HEAD patch to follow.
Jeremy.
2007-10-10 10:53:32 -05:00
Jeremy Allison
cd910ffc51
r2396: Fix bug found by Cornelio Bondad Jr <Corny.Bondad@hp.com>.
...
To correct “net rpc vampire” core dump.
Jeremy.
2007-10-10 10:52:42 -05:00
Gerald Carter
e9f109d1b3
r991: Allow winbindd to use the domain trust account password
...
for setting up an schannel connection. This solves the problem
of a Samba DC running winbind, trusting a native mode AD domain,
and needing to enumerate AD users via wbinfo -u.
2007-10-10 10:51:53 -05:00
Andrew Bartlett
724e8d3f33
r69: Global rename of 'nt_session_key' -> 'user_session_key'. The session key could
...
be anything, and may not be based on anything 'NT'. This is also what microsoft
calls it.
2007-10-10 10:51:06 -05:00
Volker Lendecke
ae6840320f
Implement NETLOGON GetDCName client side. You can ask a DC for the name of
...
a DC it trusts.
Volker
-
Gerald Carter
344e113368
commiting jra's fix for Exchange clear test auth
-
Andrew Bartlett
de3c3cbeeb
Add the alignment required before all 2-byte quantities in NDR. Allows us
...
to correctly parse plaintext netlogon calls with odd-length passwords
Andrew Bartlett
-