1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00
Commit Graph

422 Commits

Author SHA1 Message Date
Günther Deschner
c7c591c19f s3-samr: modify logging in _samr_Connect2 so that it can be called from other calls as well.
Guenther
2008-12-01 21:52:03 +01:00
Günther Deschner
6a627b440e s3-samr: never allow to alter pwdlastset directly.
Guenther
2008-11-27 18:29:10 +01:00
Günther Deschner
257d99d0cd s3-samr: fix return code for invalid password sets in SetUserInfo.
Guenther
2008-11-27 18:28:59 +01:00
Günther Deschner
e398eed15a s3-samr: fix return code for invalid name in _samr_LookupDomain.
Guenther
2008-11-27 18:28:51 +01:00
Günther Deschner
d94f3e3db3 s3-samr: avoid enumeration and user creation on builtin domain handle.
Guenther
2008-11-27 18:28:43 +01:00
Günther Deschner
5f9524a956 s3-samr: support samr_CreateUser as well.
Guenther
2008-11-27 18:28:34 +01:00
Günther Deschner
9c2ed82d07 s3-samr: support samr_QueryUserInfo2 as well.
Guenther
2008-11-27 18:28:25 +01:00
Günther Deschner
bed91c0e46 s3-samr: add support for _samr_QueryUserInfo level 5.
Guenther
2008-11-27 18:27:36 +01:00
Günther Deschner
948218643a s3-samr: fix _samr_LookupNames return code.
Guenther
2008-11-25 15:39:51 +01:00
Volker Lendecke
907f126d3e Get rid of pipes_struct->pipe_user, we have server_info now --- YESSS! 2008-11-24 11:39:03 +01:00
Günther Deschner
a4c24b4d30 s3-samr-idl: cleanup.
Guenther
2008-11-10 21:46:25 +01:00
Günther Deschner
66993ab03a s3-samr: remove duplicate copies of Alias Object specific access rights.
Guenther
2008-10-31 21:14:27 +01:00
Günther Deschner
5e5edbe761 s3-samr: remove duplicate copies of Group Object specific access rights.
Guenther
2008-10-31 21:14:27 +01:00
Günther Deschner
f126371f17 s3-samr: remove duplicate copies of Domain Object specific access rights.
Guenther
2008-10-31 21:14:27 +01:00
Günther Deschner
29d27297d0 s3-samr: remove duplicate copies of SAM user specific access rights.
Guenther
2008-10-31 21:14:26 +01:00
Günther Deschner
700cece822 s3-samr: remove duplicate copies of SAM server specific access rights.
Guenther
2008-10-31 21:14:26 +01:00
Jeremy Allison
8344e94574 Unify se_access_check with the S4 code. Will make
calculation of SEC_FLAG_MAXIMUM_ALLOWED much easier
for files.
Jeremy.
2008-10-31 10:51:45 -07:00
Günther Deschner
3971492301 s3-samr-server: return NT_STATUS_NOT_SUPPORTED for group rename.
Guenther
2008-10-24 00:06:24 +02:00
Günther Deschner
2b364550a9 s3-samr-server: remove unused historic code.
Guenther
2008-10-24 00:06:16 +02:00
Günther Deschner
6e058e5977 s3-samr-server: unify callback convention: _samr_UserSetInfo.
Guenther
2008-10-23 11:46:18 +02:00
Günther Deschner
3566efede2 s3-samr-server: unify callback convention: _samr_QueryDomainInfo.
Guenther
2008-10-23 11:46:18 +02:00
Günther Deschner
29737ab5da s3-samr-server: fix return code in _samr_QueryDisplayInformation.
Guenther
2008-10-23 11:46:18 +02:00
Günther Deschner
74a9a391aa s3-samr-server: _samr_DeleteUser needs to wipe out the user_handle on success.
Guenther
2008-10-23 01:42:27 +02:00
Günther Deschner
f9c6313e66 s3-samr-server: fix access check in _samr_QuerySecurity().
Guenther
2008-10-22 23:17:02 +02:00
Jeremy Allison
4e9db0b100 Cope with MAXIMUM_ALLOWED_ACCESS requests when opening handles.
Jeremy.
2008-10-21 18:05:48 -07:00
Jeremy Allison
f0b1a1bc9b Remove the requirement for ldap call made as root. Add in security
checks for all SAMR calls.
Jeremy.
2008-10-20 16:51:37 -07:00
Günther Deschner
f3843e330f s3-samr-server: be consistent when reporting we do password complexity.
Guenther
2008-10-20 20:16:03 +02:00
Günther Deschner
65dc1eeceb s3: fix various samr callers.
Guenther
2008-10-15 17:11:27 +02:00
Jelmer Vernooij
aa982895e5 Add data_blob_string_const_null() function that includes the terminating
null byte and use it in Samba 3.

This matches the behaviour prior to my data_blob changes.
2008-10-13 05:20:26 +02:00
Jeremy Allison
e5692d4cbe Remove SEC_ACCESS. It's a uint32_t.
Jeremy.
2008-10-09 09:49:03 -07:00
Volker Lendecke
747a580952 Now that we have p->server_info, use p->server_info->user_session_key
(This used to be commit aefad64e3a)
2008-06-26 13:13:23 +02:00
Günther Deschner
7aa839bba0 Fix typo.
Guenther
(cherry picked from commit d3dd7ea5a7)
(This used to be commit 68d6b0053f)
2008-05-20 17:51:48 +02:00
Volker Lendecke
6a286a7bf4 Fix a valgrind error in _samr_LookupNames
(cherry picked from commit fb0a25d59d)
(This used to be commit 89f87efa23)
2008-05-20 17:51:38 +02:00
Günther Deschner
08971abdad Fix Bug #5461 and implement a very basic _samr_GetDisplayEnumerationIndex().
Citrix PM cannot use a Samba DC when having more then 900 groups as citrix
insists on calling _samr_GetDisplayEnumerationIndex() after receiving the first
900 groups via _samr_QueryDisplayInfo() to get the continuation index.

Guenther
(This used to be commit 1c4adc8dda)
2008-05-16 13:51:09 +02:00
Günther Deschner
8337291250 Fix _samr_GetUserPwInfo() (to return more then just zeros).
Guenther
(This used to be commit 624371ce32)
2008-04-04 23:41:56 +02:00
Günther Deschner
8c9d6322de Fix _samr_GetDomPwInfo (to return more then zeros).
Guenther
(This used to be commit 1cde9579f1)
2008-04-04 23:41:56 +02:00
Günther Deschner
edcbb657de Fix build warning.
Guenther
(This used to be commit c40522cfe9)
2008-04-01 00:26:33 +02:00
Günther Deschner
4369c14a66 Re-add support for the samr parameters string.
(dialin settings, terminal server settings, etc.)

Guenther
(This used to be commit c4f248df8e)
2008-03-31 20:55:40 +02:00
Günther Deschner
e8775623bd Add init_samr_parameters_string().
Guenther
(This used to be commit 8f6f0d1601)
2008-03-31 20:55:40 +02:00
Volker Lendecke
dd80c452a2 A level 25 setuserinfo does change the pwdlastset
(This used to be commit f65cb5d4b5)
2008-03-20 23:19:33 +01:00
Günther Deschner
700438dbbd Fix samr querydispinfo w.r.t. lsa_AsciiStringLarge.
Thanks metze for the fix.

Guenther
(This used to be commit dcffb885bc)
2008-02-28 23:37:47 +01:00
Günther Deschner
7269a504fd Add my copyright.
Guenther
(This used to be commit d078a87571)
2008-02-27 19:38:48 +01:00
Günther Deschner
d61831dcd4 Move MAX_SAM_ENTRIES defines to samr rpc_server and to samr.idl.
Guenther
(This used to be commit 6c64551573)
2008-02-27 17:14:39 +01:00
Tim Potter
2cd374db8d Replace C++-style comments with C.
(This used to be commit a1d0746923)
2008-02-18 10:15:22 +01:00
Jeremy Allison
a6997bb2ff Prevent "parameters" being used without initialization.
Jeremy.
(This used to be commit f0195e937d)
2008-02-12 17:21:17 -08:00
Günther Deschner
e2b3aad817 Collect all init_lsa_string varients in one place.
Guenther
(This used to be commit f4581e9f44)
2008-02-12 22:05:39 +01:00
Günther Deschner
befc71c942 Re-add support for samr_QueryDisplayInfo2/samr_QueryDisplayInfo3.
(This used to be commit cac740d87f)
2008-02-12 21:35:42 +01:00
Günther Deschner
4974200f30 Use pidl for _samr_QueryUserInfo.
Guenther
(This used to be commit 53dc913b2d)
2008-02-12 14:52:25 +01:00
Günther Deschner
4867e1ff93 Merge _samr_SetUserInfo and _samr_SetUserInfo2 into one call.
Guenther
(This used to be commit 8ee7dfad2e)
2008-02-12 14:49:59 +01:00
Günther Deschner
6aa84ad8c5 Move some samr init functions around (to allow easier identification of new
calls).

Guenther
(This used to be commit c51c126049)
2008-02-12 12:30:51 +01:00