1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

1828 Commits

Author SHA1 Message Date
Volker Lendecke
8df6544fa8 r19803: Fix problem reported by Chetan S: QueryInfoKey needs to report the max name
length in *bytes* for UTF-16, not the string length. This got lost during the
conversion.

This took a while to figure out :-)

Thanks to Chetan!

Volker
2007-10-10 12:15:56 -05:00
Volker Lendecke
f808182346 r19780: Ok, regkey_open_internal needs a regkey_close_internal. Giving a talloc ctx is
misleading here. This needs fixing properly :-)

Volker
2007-10-10 12:15:55 -05:00
Volker Lendecke
cb7f4211b8 r19778: Make regkey_open_internal take a talloc ctx 2007-10-10 12:15:55 -05:00
Volker Lendecke
e2a35ceffe r19776: Hmmm. I should have done one instead of three commits. Sorry :-) 2007-10-10 12:15:54 -05:00
Volker Lendecke
370e29ebb9 r19775: Fix typo 2007-10-10 12:15:54 -05:00
Volker Lendecke
287d68daab r19689: Fix a NULL dereference found by coverity (the call to strlen).
Jerry, please check this. The way I understood alpha_strcpy the last arg needs
to be the size of the target, not of the source.

Thanks,

Volker
2007-10-10 12:15:47 -05:00
Volker Lendecke
53eaa603eb r19669: set_share_security does not need a mem_ctx passed 2007-10-10 12:15:46 -05:00
Volker Lendecke
c8ed412976 r19468: Fix some potential NULL dereferences 2007-10-10 12:15:37 -05:00
Volker Lendecke
c73d0815a3 r19448: Convert delete_share_security to struct share_params plus some cleanups 2007-10-10 12:15:36 -05:00
Volker Lendecke
d48ac0726a r19292: Avoid some potential segfaults: In winreg_EnumValue all pointers are unique
pointers and can thus be independently NULL.

Thanks,

Volker
2007-10-10 12:15:29 -05:00
Volker Lendecke
99e54a213a r19224: Add setting the rng_fault_state to the already converted pipes.
Convert the low-hanging fruit of the LSA server. This provides a sample how
the server calls can be converted one by one, see the "proxy_lsa_call"
function.

Volker
2007-10-10 12:15:23 -05:00
Volker Lendecke
21c08e7ef4 r19220: Check if a backend has set rng_fault_state and send a dce-level fault pdu.
Volker
2007-10-10 12:15:22 -05:00
Volker Lendecke
9b1759617c r19156: Make enumprinters use the share iterators.
Volker
2007-10-10 12:15:18 -05:00
Volker Lendecke
c48bb4b37b r19154: Trivial logic simplification: Get rid of two indentation levels. Survives the
consistency checks just checked into Samba4.

Volker
2007-10-10 12:15:17 -05:00
Jim McDonough
21abbeaee9 r19058: Implement "user cannot change password", and complete "user must change
password at next logon" code.  The "password last set time" of zero now
means "user must change password", because that's how windows seems to
use it.  The "can change" and "must change" times are now calculated
based on the "last set" time and policies.

We use the "can change" field now to indicate that a user cannot change
a password by putting MAX_TIME_T in it (so long as "last set" time isn't
zero).  Based on this, we set the password-can-change bit in the
faked secdesc.
2007-10-10 12:15:06 -05:00
Volker Lendecke
d7248b6cfa r19028: Implement getprinterinfo level 6 (only the status) and get rid of snum in the
getprinter calls. Survives the RPC-SAMBA3-SPOOLSS test which I will activate
when the Samba4 build farm has picked it up.

Volker
2007-10-10 12:15:03 -05:00
Gerald Carter
5381dcbde3 r18962: * Add IDL for SaveKey() and RestoreKey() and regenerated
* Tested RegSaveKey() using win32 app.  Apparently
  this code has been brokne for a really long time.
2007-10-10 12:14:51 -05:00
Gerald Carter
6e9e9f8fac r18954: Fix segv in QueryValue and Enumvalue. regedit.exe now
is happy again when creating keys and values
2007-10-10 12:14:50 -05:00
Gerald Carter
e7e3e35c1d r18940: Fix a few memory corruption bugs to make CreateKey() and DeleteKey() work 2007-10-10 12:14:49 -05:00
Gerald Carter
92f22f67ed r18934: fix a segv in CreateKey() 2007-10-10 12:14:48 -05:00
Gerald Carter
e11108024a r18932: In RegEnumvalue() and RegQueryValue(), the output buffer
size must match the real value of the data.
2007-10-10 12:14:48 -05:00
Gerald Carter
f520a9d0fb r18931: * Fix the IDL for QueryInfoKey. teh Classname in an
in,out ref pointer
* Clarify variable names in EnumValue IDL
* Fix server code for _winreg_EnumValue() and _winreg_QueryInfoKe()
2007-10-10 12:14:48 -05:00
Gerald Carter
435d7bfc37 r18929: * Clarify QueryValue IDL and regenerate code
* Fix server _winreg_Query_Value() implementation so that
  usrmgr.exe starts now
2007-10-10 12:14:47 -05:00
Jeremy Allison
ceefb8dd3c r18898: Fix for bug #4100 from Udo Eberhardt <udo.eberhardt@thesycon.de>.
Ensure we initialize values for smb_io_notify_info_data_strings to
fix crash.
Jeremy.
2007-10-10 12:14:44 -05:00
Volker Lendecke
94b53f2f2a r18888: Fix a 64-bit warning 2007-10-10 12:14:41 -05:00
Jelmer Vernooij
f0508ecb44 r18823: Fix some errors in the srsvc handling code and start running the RPC-SRVSVC
test against samba3.
2007-10-10 12:01:03 -05:00
Stefan Metzmacher
8736262342 r18804: resume_hnd isn't a ref pointer and can be NULL
metze
2007-10-10 12:00:59 -05:00
Jelmer Vernooij
ef10672399 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.
2007-10-10 12:00:59 -05:00
Gerald Carter
7ead5ac792 r18794: Make ENumKey() work again in the registry server 2007-10-10 12:00:58 -05:00
Gerald Carter
b11558c232 r18792: small fix for server QueryValue code 2007-10-10 12:00:58 -05:00
Gerald Carter
44851d7afa r18790: Correct the IDL (still a bug in pidl) for QueryValue() 2007-10-10 12:00:58 -05:00
Gerald Carter
cf1404a0d7 r18789: Replace the winreg server code with the libndr parsing code.
Many things work (OpenHKLM, etc...) but some still don't.
This shouldn't block anyone so I'm checking it in.
Will probably move to a bzr tree after this for
longer dev cycles between checkins.
2007-10-10 12:00:57 -05:00
Gerald Carter
18b24e0fe9 r18756: cleanup copyrights after moving to new wkssvc implementation code 2007-10-10 12:00:55 -05:00
Jim McDonough
3840d3785f r18754: Get rid of some more invalid time sets 2007-10-10 12:00:54 -05:00
Jelmer Vernooij
b41c52b9db 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.
2007-10-10 12:00:54 -05:00
Stefan Metzmacher
d6f5a0cc7a r18742: this function returns WERROR
gix the build on RedHat 7.0

metze
2007-10-10 12:00:53 -05:00
Gerald Carter
0cb79ee13f r18739: * Get the wkssvc patch right this time.
* Remove the old wkssvc server, client, & parsing code.
* Update srv_wkssvc_nt.c with stubs for the remaining
  stubs
2007-10-10 12:00:53 -05:00
Gerald Carter
8e0b801c8b r18730: readd missing files (one more) 2007-10-10 12:00:53 -05:00
Gerald Carter
57d8519185 r18728: revert previous commit until I fix the wkssvc_nt.c changes 2007-10-10 12:00:52 -05:00
Gerald Carter
bb9b7a058d r18725: Replace out one wkssvc call (wkssrv_GetInfo()) with autogenerated
code.  Removed first rpc_parse/*.c file.  w00t!
2007-10-10 12:00:52 -05:00
Jim McDonough
6b17af0769 r18724: Fixup time(0) -> time(NULL) 2007-10-10 12:00:52 -05:00
Jim McDonough
fd5761c9e5 r18722: Fix up password change times. The can change and must change times are
calculated based on the last change time, policies, and acb flags.

Next step will be to not bother storing them.  Right now I'm just trying to
get them reported correctly.
2007-10-10 12:00:52 -05:00
Günther Deschner
41c79ee5ac r18680: Fix last struct uuids (in uncommented code).
Guenther
2007-10-10 12:00:47 -05:00
Jelmer Vernooij
5de76767e8 r18654: Rename "struct uuid" => "struct GUID" for consistency. 2007-10-10 11:52:19 -05:00
Günther Deschner
23d6656427 r18621: Fix samr server build.
Guenther
2007-10-10 11:52:01 -05:00
Jelmer Vernooij
9e9a053661 r18572: Use the autogenerated client and server for the echo interface and implement
some of the missing functions. RPC-ECHO now passes against Samba3.
2007-10-10 11:51:51 -05:00
Jelmer Vernooij
a5c0606d76 r18526: Use generated server for unixinfo RPC interface. 2007-10-10 11:51:46 -05:00
Jelmer Vernooij
3df11307f8 r18487: Add NULL checks 2007-10-10 11:51:44 -05:00
Jelmer Vernooij
3f337c104d r18481: Use pidl-generated server side code for dfs. 2007-10-10 11:51:43 -05:00
Gerald Carter
4faa5004fb r18429: fix a regression renaming local group introduced by trying to handle renames to the same name 2007-10-10 11:51:23 -05:00