1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-24 02:04:21 +03:00

1814 Commits

Author SHA1 Message Date
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
Simo Sorce
f09f8b2d82 r18413: Based on the new torture test I added in samba4 it turns out
the flags determines what kind of share is this.
I suppose 0x80000000 means something like (legacy) as it will
fail for any share name longer then 13 chars (same size accepted
for old RAP calls that come from pre NT OSs.

Jerry,
let me know if you want me to commit this to 3_0_23

Simo.
2007-10-10 11:51:22 -05:00
Gerald Carter
2b37079af2 r18404: * swap from POLICY_HND to the struct policy_handle from ndr/misc.h
* move OUR_HANDLE macro to include/rpc_misc.h
2007-10-10 11:51:22 -05:00
Stefan Metzmacher
b2709f4fe5 r18390: give a better error code
metze
2007-10-10 11:51:20 -05:00
Gerald Carter
3da9f80c28 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.
2007-10-10 11:51:18 -05:00
Jelmer Vernooij
1115745cae r18188: merge 3.0-libndr branch 2007-10-10 11:43:56 -05:00
Jeremy Allison
ac06fc42cb r17872: Fix possible null deref found by the Stanford checker.
Jeremy.
2007-10-10 11:38:56 -05:00
Gerald Carter
e6e5412500 r17797: Just say "ok" when trying to rename a local group to its same name. 2007-10-10 11:38:48 -05:00
Volker Lendecke
761cbd52f0 r17554: Cleanup 2007-10-10 11:38:38 -05:00
Volker Lendecke
4ebfc30a28 r17468: To minimize the diff later on, pre-commit some changes independently: Change
internal mapping.c functions to return NTSTATUS instead of BOOL.

Volker
2007-10-10 11:38:36 -05:00
Volker Lendecke
f9856f6490 r17463: A bit of cleanup work:
Remove some unused code: pdb_find_alias is not used anymore, and nobody I
think has ever used the pdb_nop operations for group mapping. smbpasswd and
tdb use the default ones and ldap has its own.

Make the functions pdb_getgr* return NTSTATUS instead of BOOL. Nobody right
now really makes use of it, but it feels wrong to throw away information so
early.

Volker
2007-10-10 11:38:36 -05:00
Günther Deschner
f9bef1f08f 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
2007-10-10 11:38:34 -05:00
Volker Lendecke
873a5a1211 r17451: Change pdb_getgrsid not to take a DOM_SID but a const DOM_SID * as an
argument.

Volker
2007-10-10 11:38:34 -05:00
Jeremy Allison
06aea05c52 r17439: Fix logic error in checking TALLOC return. Spotted by Volker.
Jeremy.
2007-10-10 11:38:33 -05:00
Gerald Carter
c05e2bdc0c r17386: fix inverted logic pointed out by Volker. When deleting a printer return access denied if the printer still exists after the delete_printer_hook() is called 2007-10-10 11:38:30 -05:00