1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-05 09:18:06 +03:00
Commit Graph

451 Commits

Author SHA1 Message Date
Andrew Bartlett
f28f113d8e Rework Samba3 to use new libcli/auth code (partial)
This commit is mostly to cope with the removal of SamOemHash (replaced
by arcfour_crypt()) and other collisions (such as changed function
arguments compared to Samba3).

We still provide creds_hash3 until Samba3 uses the credentials code in
netlogon server

Andrew Bartlett
2009-04-14 16:23:35 +10:00
Günther Deschner
12d9765177 s3-samr: add support for _samr_Connect3() while planning to pass a s4 smbtorture test.
Guenther
2009-04-06 22:37:11 +02:00
Günther Deschner
df29f49edd s3-samr: add support for setting password hashes via samr_SetUserInfo level 21.
Guenther
2009-04-03 13:14:26 +02:00
Günther Deschner
842edcd2b0 s3-samr: try to to fix password_expired flag handling.
Guenther
2009-03-20 10:39:18 +01:00
Günther Deschner
531af136f9 s3: remove POLICY_HND.
Guenther
2009-03-18 23:22:29 +01:00
Volker Lendecke
46bcb10b5a Shape up pdb_search a bit by making it a talloc ctx with a destructor 2009-03-07 17:51:21 +01:00
Volker Lendecke
c975ce15eb Fix resume handle for _samr_EnumDomainGroups 2009-02-07 19:25:34 +01:00
Volker Lendecke
8b618d0ba9 Fix some real bugs found by "type-punned" gcc warnings
Type-casting does not the right thing if used the way it used to be. The
function arguments have not been uint32_t's, but the type cast made the calling
routine believe so. Not good...

The assignment xxx=account_policy_temp does however type-convert properly,
potentially cutting off the top-bits.
2009-01-18 13:26:21 +01:00
Volker Lendecke
84292022bf Now that all policy_handle free_fn's are just TALLOC_FREE, dump free_fn 2009-01-08 22:29:54 +01:00
Volker Lendecke
52b6756c4e Make samr_info a talloc context of its own 2009-01-08 22:29:53 +01:00
Günther Deschner
20ba0a947a s3-samr: avoid all init_samr_alias* functions.
Guenther
2009-01-06 16:02:12 +01:00
Günther Deschner
05784d0fa8 s3-samr: avoid all init_samr_group* functions.
Guenther
2009-01-06 16:02:11 +01:00
Günther Deschner
d2d8d7a087 s3-samr: avoid all init_samr_Domain* functions.
Guenther
2009-01-06 16:02:11 +01:00
Günther Deschner
46f55ef5bc s3-samr: avoid all init_samr_user* functions.
Guenther
2009-01-06 16:02:10 +01:00
Stefan Metzmacher
c34d5f445a s3:events: change event_add_timed() prototype to match samba4
metze
2009-01-05 15:07:35 +01:00
Jeremy Allison
d7d525bc9d Make the LookupRid access check match LookupName until
we know the correct bits to use here.
Jeremy.
2008-12-10 17:03:53 -08:00
Jeremy Allison
c4c6e1e463 Fix usrmgr opening a user object as non-root.
Jeremy.
2008-12-10 15:29:14 -08:00
Günther Deschner
8608fd87b0 s3-samr: a level 18 password set needs to set the pwdlastset as well.
Guenther
2008-12-09 13:20:36 +01:00
Günther Deschner
3656cb2e57 s3-samr: fix samr_SetUserInfo level 18 server-side.
Guenther
2008-12-05 16:35:22 +01:00
Günther Deschner
b8204ffd03 s3-samr: fix samr callers of samr_UserInfo18.
Guenther
2008-12-05 14:27:03 +01:00
Günther Deschner
7423b6a4b8 s3-samr: fix SAMR_FIELD_PASSWORD callers.
Guenther
2008-12-05 14:27:03 +01:00
Günther Deschner
eb906e1d2d s3-samr: fix init_samr_user_info2{1,3,5} callers.
Guenther
2008-12-05 14:27:02 +01:00
Günther Deschner
9ccd1174f7 s3-samr: simplify _samr_QueryUserInfo a lot and fix some few potential memleaks.
Guenther
2008-12-02 10:08:11 +01:00
Günther Deschner
8e5cd8f81c s3-samr: fix samr_SetUserInfo{2} level 23.
Do not just start decoding/setting passwords when fields_present
do not indicate there is a password to be set.

Guenther
2008-12-02 10:08:10 +01:00
Günther Deschner
931f16f622 s3-samr: _samr_EnumDomainUsers always returns a sam array (even w/o users).
Guenther
2008-12-02 00:53:27 +01:00
Günther Deschner
b07d3794d2 s3-samr: refuse do process UserSetInfo with 0 fields_present.
Guenther
2008-12-02 00:52:11 +01:00
Günther Deschner
798c4b3e6a s3-samr: use samr_DomainServerState in client tools.
Guenther
2008-12-02 00:37:39 +01:00
Günther Deschner
0b7430b054 s3-samr: fix various potential memleaks in samr_SetUserInfo.
Was there any reason why we did all these individual TALLOC_FREEs ?

Guenther
2008-12-01 22:30:17 +01:00
Günther Deschner
24fec0a8d7 s3-samr: avoid code duplication for identical code in _samr_Connect2, 4 and 5.
Guenther
2008-12-01 21:56:28 +01:00
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