Günther Deschner
59192bf03f
s3-samr: in _samr_QueryUserInfo() make sure to not return any info in error case.
...
Guenther
2009-05-15 15:37:50 +02:00
Günther Deschner
0e9f03c727
s3-samr: Fix samr access checks in _samr_SetDomainInfo().
...
Guenther
2009-05-15 13:55:39 +02:00
Günther Deschner
140d4cabca
s3-samr: Fix samr access checks in _samr_QueryDomainInfo().
...
Guenther
2009-05-15 13:55:32 +02:00
Günther Deschner
7d653ae277
s3-samr: use normal integer in r->in.level switch statements.
...
Guenther
2009-05-15 13:55:15 +02:00
Jeremy Allison
57e03b6a1d
Fix the core of the SAMR access functions. This passes make test, but
...
usrmgr fails against it. The core of this patch is to move all the
access mask setup into the _samr_OpenXXX functions, and then have
each specific function check the attached access_mask against the
required bits. We can then go through the MS-SAMR doc and match
things up. Signed off by Guenther, and writespace cleanup removal
by Volker.
Jeremy.
2009-05-14 15:11:50 -07:00
Günther Deschner
652251701d
s3-printing: no need to define struct table_node 4 times.
...
Guenther
2009-05-13 15:27:06 +02:00
Jeremy Allison
b4c9cfb2af
Fix a bunch of compiler warnings about wrong format types.
...
Should make Solaris 10 builds look cleaner.
Jeremy.
2009-05-11 21:56:57 -07:00
Günther Deschner
0dc1b239eb
s3-samr: implement _samr_RidToSid().
...
Guenther
2009-05-12 00:27:24 +02:00
Günther Deschner
4beb4395eb
s3-samr: Let _samr_TestPrivateFunctionsDomain() return NT_STATUS_NOT_SUPPORTED to make RPC-SAMR happy.
...
Guenther
2009-05-12 00:27:24 +02:00
Günther Deschner
6d1e21bd1b
s3-samr: Fix Bug #5859 , renaming of samr objects failed due to samr setuserinfo access checks.
...
Torture test to follow...
Guenther
2009-05-11 18:48:54 +02:00
Günther Deschner
a82bb4bd51
s3-lsa: Fix _lsa_LookupNames2() server implementation which always returned a NULL sid_array since 3.2.0.
...
Found by torture test.
This makes it possible to search for users while adding them to groups via
windows usermanager.
Guenther
2009-05-11 18:31:46 +02:00
Günther Deschner
b1a4649438
s3-net: add "net dom renamecomputer" to rename machines in a domain.
...
dmarkey, please test :)
Guenther
2009-05-11 10:55:40 +02:00
Günther Deschner
a21bfc4daf
s3-samr: Fix SetUserInfo level 16 and 21 w.r.t. ACB_AUTOLOCK acct_flag.
...
It is not allowed to *set* this flag remotely if it has been not set already.
Found by torture test.
Guenther
2009-05-09 00:03:50 +02:00
Günther Deschner
705f36b804
s3-samr: Fix SetUserInfo level 7 when there has been no name change.
...
Found by torture test.
Guenther
2009-05-09 00:02:00 +02:00
Günther Deschner
b7925cb3f2
s3-samr: more accurateness in _samr_SetDomainInfo().
...
Guenther
2009-05-08 22:15:31 +02:00
Günther Deschner
266b79e004
s3-samr: implement more info levels in _samr_QueryDomainInfo().
...
Gets us closer to pass RPC-SAMR.
Guenther
2009-05-08 09:55:10 +02:00
Günther Deschner
d7b32b51f8
s3-samr: Fix potential memory leak in _samr_ChangePasswordUser().
...
Guenther
2009-05-08 01:24:28 +02:00
Günther Deschner
6f4b5798c9
s3-selftest: need to enable lanman auth in order make RPC-SAMR-PASSWORDS pass.
...
Guenther
2009-05-08 00:46:54 +02:00
Günther Deschner
227b61d7ea
s3-samr: Do not leak information whether a user exist or not in pwd change calls.
...
Found by torture test.
Guenther
2009-05-08 00:46:54 +02:00
Günther Deschner
5773d7d102
s3-samr: implement _samr_ChangePasswordUser().
...
This is vastly copied from samba4 samr server.
Guenther
2009-05-08 00:46:49 +02:00
Günther Deschner
d17c6af57c
s3-samr: implement _samr_OemChangePasswordUser2().
...
Guenther
2009-05-08 00:44:46 +02:00
Günther Deschner
6aca5fca8d
s3-samr: Let _samr_TestPrivateFunctionsUser() return not supported.
...
This is to get us closer to pass RPC-SAMR-USERS.
Guenther
2009-05-08 00:41:40 +02:00
Günther Deschner
b96fdae1f4
s3-samr: Do not return users in _samr_QueryDisplayInfo() for builtin domain.
...
Found by torture test.
Guenther
2009-05-08 00:41:40 +02:00
Günther Deschner
f05d888d7a
s3-samr: let set_user_info_16 and 20 follow the same pattern as all other levels.
...
Guenther
2009-05-08 00:41:40 +02:00
Günther Deschner
f93f713898
s3-samr: support some more info levels in samr_SetUserInfo calls.
...
Guenther
2009-05-08 00:41:40 +02:00
Günther Deschner
b0df0e8cc7
s3-samr: support some more info levels in samr_QueryUser calls.
...
Guenther
2009-05-08 00:41:40 +02:00
Günther Deschner
599b9fe86e
s3-samr: Fix _samr_Connect5(). In error case it still needs to return empty info1.
...
Guenther
2009-05-07 14:33:33 +02:00
Jeremy Allison
78fb479325
After getting confirmation from Guenther, add 3 changes we'll
...
ultimately need to fix bug #6099 Samba returns incurrate capabilities list.
1). Add a comment to point out that r->in.negotiate_flags is an aliased pointer to
r->out.negotiate_flags.
2). Ensure we return NETLOGON_NEG_STRONG_KEYS in our flags
return if the client requested it.
3). Clean up the error exits so we always return the same
way.
Signed off by Guenther.
Jeremy.
2009-05-06 16:10:20 -07:00
Günther Deschner
78754ab2c9
s3-netlogon: Fix NETLOGON credential chain. Fixes Bug #6099 (Windows 7 joining Samba3) and probably many, many more.
...
Jeremy, with 9a5d5cc1db
you alter the in negotiate
flags (which are a pointer to the out negotiate flags assigned in the generated
netlogon server code). So, while you wanted to just set the *out* negflags, you
did in fact reset the *in* negflags, effectively eliminating the
NETLOGON_NEG_STRONG_KEYS bit (formerly known as NETLOGON_NEG_128BIT) which then
caused creds_server_init() to generate 64bit creds instead of 128bit, causing
the whole chain to break. *Please* check.
Guenther
2009-05-06 19:37:39 +02:00
Günther Deschner
9966541f89
s3-printing: simplify print_queue helper functions and return WERROR.
...
Guenther
2009-05-06 10:19:04 +02:00
Günther Deschner
af5a71d528
s3-lsa: use LSA_POLICY_MODE flags in _lsa_GetSystemAccessAccount().
...
Guenther
2009-04-30 14:28:38 +02:00
Günther Deschner
d22965e2e5
s3-spoolss: avoid referring to uid 0 in spoolss server (use sec_initial_uid() instead).
...
Guenther
2009-04-30 11:22:23 +02:00
Günther Deschner
dd33abf649
s3-svcctl: Fix crash in _svcctl_EnumServicesStatusW().
...
The resume handle is a unique pointer, always check before dereference.
Guenther
2009-04-28 10:37:34 +02:00
Michael Adam
8185d31fb0
s3:registry: replace typedef REGISTRY_VALUE by struct regval_blob
...
Michael
2009-04-27 11:21:03 +02:00
Michael Adam
221151a2a2
s3:registry: replace typedef REGVAL_CTR by struct regval_ctr.
...
This paves the way for hiding the typedef and the implementation
from the surface.
Michael
2009-04-27 11:21:02 +02:00
Günther Deschner
aa26bdd719
s3-svcctl: fix _svcctl_ControlService.
...
Guenther
2009-04-24 13:38:34 +02:00
Jeremy Allison
2012770393
Fix coverity #908 , #909 , uninitialized variable.
...
Jeremy.
2009-04-23 01:47:04 -07:00
Jeremy Allison
1e315b0013
Fix coverity #910 , uninitialized variable.
...
Jeremy.
2009-04-23 01:38:21 -07:00
Volker Lendecke
8bc88aae5d
Move serverinfo_to_SamInfo3() to rpc_server/
...
Normally I hate moving around stuff, but this function is only called from the
RPC server side and it pulls in passdb when trying to link in our rpc client
routines. That seems unnecessary to me.
2009-04-22 12:33:46 +02:00
Jelmer Vernooij
f4195183a4
s3: Use common security_descriptor_equal().
2009-04-21 18:17:40 +02:00
Volker Lendecke
4024abb0a8
Remove "struct samr_info"
2009-04-21 14:18:34 +02:00
Volker Lendecke
3f39df75d8
Fix _samr_QuerySecurity
2009-04-21 14:18:34 +02:00
Volker Lendecke
512cf3ea24
Fix samr_SetSecurity
2009-04-21 14:18:34 +02:00
Volker Lendecke
922f836b82
Convert the alias handles to type-safe policy handles
2009-04-21 12:02:28 +02:00
Volker Lendecke
228c56f8ec
Convert the group handles to type-safe policy handles
2009-04-21 12:02:28 +02:00
Volker Lendecke
95a76d3c98
Convert the user handles to type-safe policy handles
2009-04-21 12:02:28 +02:00
Andrew Bartlett
a11ecbbff0
Merge branch 'master' of ssh://git.samba.org/data/git/samba into libcli-auth-merge-without-netlogond
2009-04-20 17:19:45 +02:00
Andrew Bartlett
6c9caed481
Merge commit 'origin/master' into libcli-auth-merge-without-netlogond
2009-04-20 16:53:02 +02:00
Volker Lendecke
e3db09cf02
Do not vasprint stuff where not necessary
2009-04-20 16:51:44 +02:00
Jeremy Allison
86b0d56897
Fix warning in use of talloc_set_name.
...
Jeremy.
2009-04-20 04:05:12 -07:00