]> git.ipfire.org Git - thirdparty/samba.git/log
thirdparty/samba.git
21 months agolibrpc/idl:security: add claims flag indicating orderly and unique members
Douglas Bagnall [Fri, 10 Nov 2023 03:56:04 +0000 (16:56 +1300)] 
librpc/idl:security: add claims flag indicating orderly and unique members

The same flag will be used in conditional ACE composites, and on
CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1 structures derived from wire
claims and resource attribute ACEs, when we know we have checked the
claim has no duplicate values.

Resource Attribute ACEs contain CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1
at rest, but we are not going to set the flag there on the off chance
that the ACE could fly off to another application and have another
application specific meaning there. We will only check for uniqueness
and set the flag on ephemeral copies of resource claims during access
check operations.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agolibrpc/idl:security: add a couple of claims flags
Douglas Bagnall [Fri, 10 Nov 2023 01:53:44 +0000 (14:53 +1300)] 
librpc/idl:security: add a couple of claims flags

We don't use these.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agolibrpc/idl:condtional_ace: shift CONDITIONAL_ACE_FLAG_TOKEN_FROM_ATTR to last bit
Douglas Bagnall [Fri, 10 Nov 2023 01:31:59 +0000 (14:31 +1300)] 
librpc/idl:condtional_ace: shift CONDITIONAL_ACE_FLAG_TOKEN_FROM_ATTR to last bit

This region is "available for application-specific data" in the
CLAIM_SECURITY_ATTRIBUTE_ space, according to [MS-DTYP] 2.4.10.1,
so it nicer to use that, even though we are not actually setting the
flag on the V1 claims.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agolibrpc/idl:conditional_ace: make a flags field 32 bit
Douglas Bagnall [Fri, 10 Nov 2023 01:24:48 +0000 (14:24 +1300)] 
librpc/idl:conditional_ace: make a flags field 32 bit

This allows it to align with
CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1.flags, with which it shares
values and will soon share more.

It was 16 bit because we needed few flags, and at one point .type was
8 bit, so 16 bits packed nicely into a smaller struct.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agolibcli/security: remove redundant claim SID size check
Douglas Bagnall [Mon, 27 Nov 2023 21:46:40 +0000 (10:46 +1300)] 
libcli/security: remove redundant claim SID size check

blob_string_sid_to_sid() immediately checks the size is within 5-191, so the 1-10000
just gives you a different message in chircumstances you'll never see.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agolibcli/security: avoid leak when converting SID claims
Douglas Bagnall [Mon, 27 Nov 2023 21:35:43 +0000 (10:35 +1300)] 
libcli/security: avoid leak when converting SID claims

Apart from the leak fix, this is faster and stricter, not accepting
SID string buffers with trailing garbage ("S-1-2-3qwerty" would have
been accepted, but not now).

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agos3: smbd: Allow fchmod from the NFS-style mode ACL in set_nt_acl() for a SMB2 POSIX...
Jeremy Allison [Thu, 1 Mar 2018 22:37:52 +0000 (14:37 -0800)] 
s3: smbd: Allow fchmod from the NFS-style mode ACL in set_nt_acl() for a SMB2 POSIX handle.

To set a mode, send a one-element ACL.

Pair-Programmed-With: Ralph Boehme <slow@samba.org>

Signed-off-by: Jeremy Allison <jra@samba.org>
Signed-off-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Mon Nov 27 19:31:01 UTC 2023 on atb-devel-224

21 months agosmbd: bring back "smb3 unix extensions" option
Ralph Boehme [Wed, 8 Nov 2023 16:49:19 +0000 (17:49 +0100)] 
smbd: bring back "smb3 unix extensions" option

This basically reverts commit b3cae8dcf192f65031f143e5bb9135c895611d98
with a few important differences:

* SMB3 UNIX extensions are always built, but disabled by default at runtime.

* They are globally enabled in the fileserver test environment.

* It's now a per-share option, so admins can selectively disable them
  on a per-share basis. This allows clients to detect early that a share
  doesn't support user mount requested POSIX and fail appropiately, passing
  the failure to the requesting application (mount command).

Signed-off-by: Ralph Boehme <slow@samba.org>
21 months agosmbd: factor out smb2_negotiate_context_process_posix()
Ralph Boehme [Wed, 22 Nov 2023 11:53:36 +0000 (12:53 +0100)] 
smbd: factor out smb2_negotiate_context_process_posix()

No change in behaviour.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
21 months agosmbd: tweak POSIX check in smbd_do_qfilepathinfo()
Ralph Boehme [Mon, 13 Nov 2023 09:36:14 +0000 (10:36 +0100)] 
smbd: tweak POSIX check in smbd_do_qfilepathinfo()

This check is only needed for SMB2, so check for that, and in the SMB2 codepath
we'll always have a valid fsp, so we can drop that check.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
21 months agosmbd: check is POSIX is enabled on the fsp in fsinfo_unix_valid_level()
Ralph Boehme [Mon, 13 Nov 2023 09:35:30 +0000 (10:35 +0100)] 
smbd: check is POSIX is enabled on the fsp in fsinfo_unix_valid_level()

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
21 months agosmbd: pass fsp to fsinfo_unix_valid_level()
Ralph Boehme [Mon, 13 Nov 2023 07:04:33 +0000 (08:04 +0100)] 
smbd: pass fsp to fsinfo_unix_valid_level()

We need the fsp down in fsinfo_unix_valid_level(), pass it down.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
21 months agosmbd: pass fsp to smbd_do_qfsinfo()
Ralph Boehme [Mon, 13 Nov 2023 06:43:11 +0000 (07:43 +0100)] 
smbd: pass fsp to smbd_do_qfsinfo()

We need the fsp down in fsinfo_unix_valid_level(), start passing it down.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
21 months agosmbd: leave comment on broken SMB1 POSIX open handling of SMB_O_DIRECT
Ralph Boehme [Fri, 24 Nov 2023 15:29:57 +0000 (16:29 +0100)] 
smbd: leave comment on broken SMB1 POSIX open handling of SMB_O_DIRECT

Since e0814dc5082dd4ecca8a155e0ce24b073158fd92 the passed in attributes get
replaced by the mode in create_file_default().

As FILE_FLAG_NO_BUFFERING is never checked when doing the final IO, it doesn't
really matter.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
21 months agosamba-tool: Improve help messages for "samba-tool domain auth policy"
Andrew Bartlett [Thu, 23 Nov 2023 04:31:23 +0000 (17:31 +1300)] 
samba-tool: Improve help messages for "samba-tool domain auth policy"

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Nov 27 04:05:46 UTC 2023 on atb-devel-224

21 months agodocs-xml: Improve and consolidate "samba-tool domain auth policy create/modify" docs
Andrew Bartlett [Wed, 22 Nov 2023 23:47:04 +0000 (12:47 +1300)] 
docs-xml: Improve and consolidate "samba-tool domain auth policy create/modify" docs

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
21 months agonetcmd: auth: set better metavar that matches the docs
Rob van der Linde [Thu, 23 Nov 2023 01:08:04 +0000 (14:08 +1300)] 
netcmd: auth: set better metavar that matches the docs

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agolibcli/security/tests: gunzip the oversized-acls test vectors
Douglas Bagnall [Fri, 24 Nov 2023 04:15:55 +0000 (17:15 +1300)] 
libcli/security/tests: gunzip the oversized-acls test vectors

These are just as readable with `less` as they were with `zless`.

This file has been slightly manually edited to add line-breaks. There
is not an easy setting in Python's json module to get good formatting.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Nov 27 02:10:12 UTC 2023 on atb-devel-224

21 months agolibcli/security/tests: remove duplicate TX-integer tests from oversized-ACLs
Douglas Bagnall [Fri, 24 Nov 2023 03:59:05 +0000 (16:59 +1300)] 
libcli/security/tests: remove duplicate TX-integer tests from oversized-ACLs

We had two sets of test vectors (Windows ground-truth for SDDL
compilation) that got mixed up.

The "oversized ACLs" set is ACLs that contain repeated ACEs, like
"D:P(D;;;;;MP)(D;;;;;MP)" -- Windows will assign a size to the ACL
that is greater than the sum of the ACEs, while Samba will not (in
part because we don't actually store a size for the ACL, instead
calculating it on the fly from the size of the ACEs).

The "TX integers" set is for resource attribute ACEs with octet-string
data that contains pure integers (lacking '#' characters) in their
SDDL, like «(RA;;;;;WD;("bar",TX,0x0,0077,00,0077,00))». We used to
think that was weird, and that RA-TX ACEs should contain octet-strings
in the conditional ACE style. But now we have realised it's not weird,
it's normal, and we have fixed our handling of these ACEs.

As a result of this mix-up, some of the tests labelled as "oversized
ACLs" started passing when we fixed the TX integer problem, and that
was confusing. All of the removed tests are already on the TX integer
set -- the removed ones were duplicates.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agolibcli/security:sddl: remove vestiges of shared conditional/resource ACE SID parsing
Douglas Bagnall [Thu, 2 Nov 2023 02:48:20 +0000 (15:48 +1300)] 
libcli/security:sddl: remove vestiges of shared conditional/resource ACE SID parsing

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agolibcli/security: improve error messages in RA ACE SDDL
Douglas Bagnall [Thu, 2 Nov 2023 02:42:11 +0000 (15:42 +1300)] 
libcli/security: improve error messages in RA ACE SDDL

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agolibcli/security: conditional ACE sid parser no longer expects RA ACEs
Douglas Bagnall [Thu, 2 Nov 2023 02:41:33 +0000 (15:41 +1300)] 
libcli/security: conditional ACE sid parser no longer expects RA ACEs

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agolibcli/security: parse resource attribute ace SIDs separately
Douglas Bagnall [Thu, 2 Nov 2023 02:37:33 +0000 (15:37 +1300)] 
libcli/security: parse resource attribute ace SIDs separately

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agolibcli/security/sddl: write RA octet strings the Windows way
Douglas Bagnall [Fri, 24 Nov 2023 03:24:00 +0000 (16:24 +1300)] 
libcli/security/sddl: write RA octet strings the Windows way

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agolibcli/security: add a parser for resource attribute ACE byte strings
Douglas Bagnall [Thu, 2 Nov 2023 02:28:15 +0000 (15:28 +1300)] 
libcli/security: add a parser for resource attribute ACE byte strings

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agolibcli/security: sddl_conditional_ace: remove check_resource_attr_type()
Douglas Bagnall [Wed, 22 Nov 2023 00:17:17 +0000 (13:17 +1300)] 
libcli/security: sddl_conditional_ace: remove check_resource_attr_type()

This is unneeded, as now all the checks are done in the relevant
parse_* functions.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agolibcli/security: sddl_conditional_ace: add parse_bool for RA aces
Douglas Bagnall [Wed, 22 Nov 2023 00:24:21 +0000 (13:24 +1300)] 
libcli/security: sddl_conditional_ace: add parse_bool for RA aces

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agolibcli/security: sddl_conditional_ace: add parse_uint for RA aces
Douglas Bagnall [Wed, 22 Nov 2023 00:23:26 +0000 (13:23 +1300)] 
libcli/security: sddl_conditional_ace: add parse_uint for RA aces

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agolibcli/security: un-invert parse_resource_attr_list, check type first
Douglas Bagnall [Thu, 2 Nov 2023 02:25:06 +0000 (15:25 +1300)] 
libcli/security: un-invert parse_resource_attr_list, check type first

We were reusing parse_literal() because it almost does what we need,
but it is different enough that check_resource_attr_type() is large
and complicated, and can't handle all the cases (in particular octet-
strings and SIDs are different in resource ACEs).

This way is better because we know the type in advance, so we can use
that to choose the parser, which will help with octet-strings that are
only digits.

In this commit we're leaving the check there, but it soon won't do
anything that the parse_* functions don't, and we will remove it.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agolibcli/security/test_sddl_conditional_ace: adjust RA octet parse tests
Douglas Bagnall [Thu, 9 Nov 2023 22:35:42 +0000 (11:35 +1300)] 
libcli/security/test_sddl_conditional_ace: adjust RA octet parse tests

We are going to parse octet strings like Windows (as opposed to like
Windows docs), so the tests need changing.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agolibcli/security:sddl_condtional_ace: log compiler errors at some debug levels
Douglas Bagnall [Thu, 2 Nov 2023 02:11:58 +0000 (15:11 +1300)] 
libcli/security:sddl_condtional_ace: log compiler errors at some debug levels

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agolibcli/security: initialise conditional ACE token flags
Douglas Bagnall [Fri, 17 Nov 2023 03:34:23 +0000 (16:34 +1300)] 
libcli/security: initialise conditional ACE token flags

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agopytest: security_descriptors tests get enumerator in name
Douglas Bagnall [Sun, 19 Nov 2023 22:45:32 +0000 (11:45 +1300)] 
pytest: security_descriptors tests get enumerator in name

This will make knownfails easier, given the names contain so many
regular expression metacharacters.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agodosmode: prefer capabilities over become_root
Björn Jacke [Mon, 20 Nov 2023 11:36:00 +0000 (12:36 +0100)] 
dosmode: prefer capabilities over become_root

Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agolibgpo: fix wrong lineending in admx files
Björn Jacke [Wed, 22 Nov 2023 17:46:30 +0000 (18:46 +0100)] 
libgpo: fix wrong lineending in admx files

When changing or reviewing admx file patches, make sure, that those files are
dos fileformat and they need to have the magic ^M at the end of each line ...

Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agoRevert "README.Coding.md: add DBG_STARTUP_NOTICE macro"
Stefan Metzmacher [Thu, 23 Nov 2023 12:20:23 +0000 (13:20 +0100)] 
Revert "README.Coding.md: add DBG_STARTUP_NOTICE macro"

This reverts commit bb370b9381e5d223ff4ac62f612888f90a63fcc5.

We no longer use log level -1

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15377

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Björn Jacke <bjacke@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Nov 24 10:34:58 UTC 2023 on atb-devel-224

21 months agolib/util: convert DBG_STARTUP_NOTICE() to use debug_set_forced_log_priority(DBGLVL_NO...
Stefan Metzmacher [Wed, 22 Nov 2023 16:18:29 +0000 (17:18 +0100)] 
lib/util: convert DBG_STARTUP_NOTICE() to use debug_set_forced_log_priority(DBGLVL_NOTICE)

Using -1 as log level is not compatible without our infrastructure.

As all backends are initialized with .log_level = -1, which means
they don't log the message, but now they all try to handle the
startup message even if they are not configured.

E.g. is means that systemd's journalctl get the message twice
now, first via the syslog and also the systemd backend.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15377

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Björn Jacke <bjacke@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agolib/util: add debug_set_forced_log_priority()
Stefan Metzmacher [Wed, 22 Nov 2023 16:03:30 +0000 (17:03 +0100)] 
lib/util: add debug_set_forced_log_priority()

By default the priority for syslog/systemd is derived from
the log level of the debug message.

But for things like startup messages we want to
change the priority temporary, like this:

debug_set_forced_log_priority(DBGLVL_NOTICE);
D_ERR("Startup...\n");
debug_set_forced_log_priority(-1);

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15377

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Björn Jacke <bjacke@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agoClaims initial black box tests
Rob van der Linde [Mon, 13 Nov 2023 10:48:52 +0000 (23:48 +1300)] 
Claims initial black box tests

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org>
Autobuild-Date(master): Thu Nov 23 00:32:33 UTC 2023 on atb-devel-224

21 months agonetcmd: auth policy: add allowed-to-authenticate-from-device-group attributes
Rob van der Linde [Tue, 21 Nov 2023 02:23:59 +0000 (15:23 +1300)] 
netcmd: auth policy: add allowed-to-authenticate-from-device-group attributes

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agonetcmd: auth policy: fix missing 'by' in help string
Rob van der Linde [Tue, 21 Nov 2023 02:41:31 +0000 (15:41 +1300)] 
netcmd: auth policy: fix missing 'by' in help string

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agonetcmd: auth policy: add allowed-to-authenticate-to-by-group attributes
Rob van der Linde [Tue, 21 Nov 2023 02:09:05 +0000 (15:09 +1300)] 
netcmd: auth policy: add allowed-to-authenticate-to-by-group attributes

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agonetcmd: auth policy: rename "from silo" to "from device silo"
Rob van der Linde [Tue, 21 Nov 2023 02:03:24 +0000 (15:03 +1300)] 
netcmd: auth policy: rename "from silo" to "from device silo"

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agonetcmd: auth policy: document allowed to authenticate from silo and to by silo attributes
Rob van der Linde [Thu, 16 Nov 2023 00:39:23 +0000 (13:39 +1300)] 
netcmd: auth policy: document allowed to authenticate from silo and to by silo attributes

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agonetcmd: auth policy: add allowed to authenticate to by silo attributes
Rob van der Linde [Mon, 13 Nov 2023 10:48:36 +0000 (23:48 +1300)] 
netcmd: auth policy: add allowed to authenticate to by silo attributes

--user-allowed-to-authenticate-to-by-silo
--service-allowed-to-authenticate-to-by-silo
--computer-allowed-to-authenticate-to-by-silo

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agonetcmd: models: add field test for SIDField
Rob van der Linde [Wed, 22 Nov 2023 04:18:20 +0000 (17:18 +1300)] 
netcmd: models: add field test for SIDField

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agonetcmd: models: add a Group model
Rob van der Linde [Tue, 21 Nov 2023 03:00:18 +0000 (16:00 +1300)] 
netcmd: models: add a Group model

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agonetcmd: models: make systemFlags and systemOnly fields readonly
Rob van der Linde [Wed, 22 Nov 2023 02:38:55 +0000 (15:38 +1300)] 
netcmd: models: make systemFlags and systemOnly fields readonly

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agonetcmd: models: ensure that backlinks are always readonly
Rob van der Linde [Wed, 22 Nov 2023 02:35:38 +0000 (15:35 +1300)] 
netcmd: models: ensure that backlinks are always readonly

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agonetcmd: models: add readonly attribute on fields to exclude it from save
Rob van der Linde [Wed, 22 Nov 2023 01:13:08 +0000 (14:13 +1300)] 
netcmd: models: add readonly attribute on fields to exclude it from save

There was trouble when saving fields like is system object, these need to be excluded on save.

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agonetcmd: models: get_base_dn returns default rather than be abstract
Rob van der Linde [Tue, 21 Nov 2023 02:57:14 +0000 (15:57 +1300)] 
netcmd: models: get_base_dn returns default rather than be abstract

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agonetcmd: models: add SIDField field
Rob van der Linde [Mon, 20 Nov 2023 23:42:03 +0000 (12:42 +1300)] 
netcmd: models: add SIDField field

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agonetcmd: models: use correct SDDL for authentication silos
Rob van der Linde [Mon, 13 Nov 2023 10:46:57 +0000 (23:46 +1300)] 
netcmd: models: use correct SDDL for authentication silos

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agonetcmd: fix typo in groups and computer commands
Rob van der Linde [Mon, 20 Nov 2023 23:40:03 +0000 (12:40 +1300)] 
netcmd: fix typo in groups and computer commands

Everywhere else it is using Group's except for one place which makes it obvious this was incorrect.

Same goes for Computers's vs Computer's

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agoselftest: move planoldpythontestsuite up so it can be used by blackbox tests
Rob van der Linde [Wed, 8 Nov 2023 02:07:41 +0000 (15:07 +1300)] 
selftest: move planoldpythontestsuite up so it can be used by blackbox tests

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agotests: gensec: docstrings in the middle of code should be comments
Rob van der Linde [Wed, 8 Nov 2023 01:37:12 +0000 (14:37 +1300)] 
tests: gensec: docstrings in the middle of code should be comments

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agosmbd: Fix Coverity ID 1499372 Uninitialized scalar variable
Volker Lendecke [Wed, 15 Nov 2023 13:53:06 +0000 (14:53 +0100)] 
smbd: Fix Coverity ID 1499372 Uninitialized scalar variable

This is real.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Nov 21 18:33:51 UTC 2023 on atb-devel-224

21 months agowinbind: Fix Coverity ID 1398910
Volker Lendecke [Wed, 15 Nov 2023 13:48:20 +0000 (14:48 +0100)] 
winbind: Fix Coverity ID 1398910

Coverity isn't smart enough for talloc

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
21 months agolsa4: Fix Coverity ID 1499410
Volker Lendecke [Wed, 15 Nov 2023 13:39:33 +0000 (14:39 +0100)] 
lsa4: Fix Coverity ID 1499410

It complains about uninitialized access, and I'm not sure it isn't
right. Just initialize the structure.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
21 months agosamr4: Fix Coverity ID 1499378
Volker Lendecke [Wed, 15 Nov 2023 13:36:20 +0000 (14:36 +0100)] 
samr4: Fix Coverity ID 1499378

Coverity isn't smart enough to see this is initialized. As it's good
practice to initialize vars, just do it.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
21 months agoutils: Fix Coverity ID 240113
Volker Lendecke [Wed, 15 Nov 2023 13:26:09 +0000 (14:26 +0100)] 
utils: Fix Coverity ID 240113

Not a leak, but Coverity does not understand talloc well enough.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
21 months agosmbd: Fix/remove a comment that became irrelevant
Volker Lendecke [Wed, 15 Nov 2023 05:24:15 +0000 (06:24 +0100)] 
smbd: Fix/remove a comment that became irrelevant

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
21 months agosmbd: Fix a comment
Volker Lendecke [Sat, 18 Nov 2023 16:38:09 +0000 (17:38 +0100)] 
smbd: Fix a comment

See 84cf205ff435

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
21 months agosmbd: Convert a void* into the real DIR*
Volker Lendecke [Thu, 16 Nov 2023 19:39:50 +0000 (20:39 +0100)] 
smbd: Convert a void* into the real DIR*

Not sure why this was a void*

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
21 months agos3:rpc_client: Remove unused rpccli_lsa_open_policy2()
Andreas Schneider [Thu, 31 Aug 2023 16:09:37 +0000 (18:09 +0200)] 
s3:rpc_client: Remove unused rpccli_lsa_open_policy2()

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue Nov 21 12:21:18 UTC 2023 on atb-devel-224

21 months agos3:winbind: Always close the policy handle we opened
Andreas Schneider [Tue, 24 Oct 2023 07:39:09 +0000 (09:39 +0200)] 
s3:winbind: Always close the policy handle we opened

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
21 months agos3:winbind: Use dcerpc_lsa_open_policy_fallback() in winbindd_cm.c
Andreas Schneider [Thu, 31 Aug 2023 16:08:56 +0000 (18:08 +0200)] 
s3:winbind: Use dcerpc_lsa_open_policy_fallback() in winbindd_cm.c

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
21 months agos3:utils: Use any_nt_status_not_ok() in rpc_rights_grant_internal()
Andreas Schneider [Thu, 2 Nov 2023 07:31:32 +0000 (08:31 +0100)] 
s3:utils: Use any_nt_status_not_ok() in rpc_rights_grant_internal()

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
21 months agos3:utils: Use goto to close the policy in rpc_rights_grant_internal()
Andreas Schneider [Thu, 2 Nov 2023 07:30:36 +0000 (08:30 +0100)] 
s3:utils: Use goto to close the policy in rpc_rights_grant_internal()

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
21 months agos3:utils: Use dcerpc_lsa_open_policy_fallback() in net_rpc_rights.c
Andreas Schneider [Thu, 31 Aug 2023 15:57:09 +0000 (17:57 +0200)] 
s3:utils: Use dcerpc_lsa_open_policy_fallback() in net_rpc_rights.c

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
21 months agos3:utils: Use dcerpc_lsa_open_policy_fallback() in net_rpc.c
Andreas Schneider [Thu, 31 Aug 2023 14:22:02 +0000 (16:22 +0200)] 
s3:utils: Use dcerpc_lsa_open_policy_fallback() in net_rpc.c

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
21 months agos3:rpcclient: Use dcerpc_lsa_open_policy_fallback() in cmd_lsarpc.c
Andreas Schneider [Thu, 31 Aug 2023 14:08:39 +0000 (16:08 +0200)] 
s3:rpcclient: Use dcerpc_lsa_open_policy_fallback() in cmd_lsarpc.c

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
21 months agos3:rpcclient: Remove trailing white spaces from cmd_lsarpc.c
Andreas Schneider [Thu, 31 Aug 2023 13:39:51 +0000 (15:39 +0200)] 
s3:rpcclient: Remove trailing white spaces from cmd_lsarpc.c

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
21 months agos3:libnetapi: Use dcerpc_lsa_open_policy_fallback() in localgroup.c
Andreas Schneider [Thu, 31 Aug 2023 09:23:03 +0000 (11:23 +0200)] 
s3:libnetapi: Use dcerpc_lsa_open_policy_fallback() in localgroup.c

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
21 months agos3:utils: Use dcerpc_lsa_open_policy_fallback() in net_rpc_trust.c
Andreas Schneider [Thu, 31 Aug 2023 08:27:12 +0000 (10:27 +0200)] 
s3:utils: Use dcerpc_lsa_open_policy_fallback() in net_rpc_trust.c

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
21 months agos3:rpc_server: Use dcerpc_lsa_open_policy_fallback() for netlogon
Andreas Schneider [Thu, 31 Aug 2023 08:19:08 +0000 (10:19 +0200)] 
s3:rpc_server: Use dcerpc_lsa_open_policy_fallback() for netlogon

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
21 months agos3:rpc_client: Implement dcerpc_lsa_open_policy_fallback()
Andreas Schneider [Mon, 23 Oct 2023 13:35:38 +0000 (15:35 +0200)] 
s3:rpc_client: Implement dcerpc_lsa_open_policy_fallback()

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
21 months agos3:rpc_client: Implement dcerpc_lsa_open_policy3()
Andreas Schneider [Thu, 31 Aug 2023 08:18:23 +0000 (10:18 +0200)] 
s3:rpc_client: Implement dcerpc_lsa_open_policy3()

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
21 months agos4:torture: Implement lsa_OpenPolicy3 tests
Andreas Schneider [Thu, 13 Jul 2023 19:19:37 +0000 (21:19 +0200)] 
s4:torture: Implement lsa_OpenPolicy3 tests

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
21 months agos3:rpc_server: Implement _lsa_OpenPolicy3()
Andreas Schneider [Thu, 31 Aug 2023 07:19:35 +0000 (09:19 +0200)] 
s3:rpc_server: Implement _lsa_OpenPolicy3()

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
21 months agos4:rpc_server: Implement dcesrv_lsa_OpenPolicy3()
Andreas Schneider [Wed, 30 Aug 2023 12:48:23 +0000 (14:48 +0200)] 
s4:rpc_server: Implement dcesrv_lsa_OpenPolicy3()

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
21 months agos4:torture: Adapt LSA tests for newer Windows versions
Andreas Schneider [Wed, 30 Aug 2023 05:46:42 +0000 (07:46 +0200)] 
s4:torture: Adapt LSA tests for newer Windows versions

Newer Windows version directly disconnect the client. This is what
happens if the test is run against Windows Server 2022.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
21 months agolsa.idl: Backport changes from wireshark
Stefan Metzmacher [Fri, 18 Mar 2022 14:46:09 +0000 (15:46 +0100)] 
lsa.idl: Backport changes from wireshark

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
21 months agolsa.idl: Add new functions and types
Stefan Metzmacher [Fri, 18 Mar 2022 12:34:38 +0000 (13:34 +0100)] 
lsa.idl: Add new functions and types

[MS-LSAD] got new functions in order to use AES encryption
and other security related features.

For our servers we still pretent we don't
know about the new functions and return DCERPC_FAULT_OP_RNG_ERROR.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
21 months agos4:rpc_server: Remove trailing white spaces from lsa_init.c
Andreas Schneider [Wed, 30 Aug 2023 07:24:06 +0000 (09:24 +0200)] 
s4:rpc_server: Remove trailing white spaces from lsa_init.c

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
21 months agopython:tests: Add ndrdump test for GMSA Managed Password blobs
Joseph Sutton [Mon, 20 Nov 2023 03:05:13 +0000 (16:05 +1300)] 
python:tests: Add ndrdump test for GMSA Managed Password blobs

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Nov 20 22:51:17 UTC 2023 on atb-devel-224

21 months agotests/ndr: Add tests for GMSA Managed Password blobs
Joseph Sutton [Mon, 13 Nov 2023 04:08:58 +0000 (17:08 +1300)] 
tests/ndr: Add tests for GMSA Managed Password blobs

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agopython:tests: Move NDR tests to their own directory
Joseph Sutton [Mon, 20 Nov 2023 02:46:16 +0000 (15:46 +1300)] 
python:tests: Move NDR tests to their own directory

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agolibrpc: Add NDR test for GMSA Managed Password blobs
Joseph Sutton [Wed, 15 Nov 2023 21:54:42 +0000 (10:54 +1300)] 
librpc: Add NDR test for GMSA Managed Password blobs

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agogmsa.idl: Add definition for MANAGEDPASSWORD_BLOB
Joseph Sutton [Fri, 17 Nov 2023 01:59:20 +0000 (14:59 +1300)] 
gmsa.idl: Add definition for MANAGEDPASSWORD_BLOB

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agopidl: Add new ‘u16string’ type
Joseph Sutton [Sun, 19 Nov 2023 21:07:22 +0000 (10:07 +1300)] 
pidl: Add new ‘u16string’ type

This type represents a UTF‐16–encoded string. These strings are kept
UTF‐16–encoded rather than converted to the Unix charset to be stored in
memory; this avoids issues regarding NULL termination and conversion
between character sets. We want to be able to handle strings that are
not valid UTF‐16.

Not bumping the NDR ABI version, because there hasn’t been an NDR
release since commit c4f281e9ae36c225b6003e0fa1cb8fb2e67bf543.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agopidl: Add a helper function to determine whether a type is a string type
Joseph Sutton [Sun, 19 Nov 2023 21:03:59 +0000 (10:03 +1300)] 
pidl: Add a helper function to determine whether a type is a string type

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agos4:librpc: Produce more helpful error message when bytes length is odd
Joseph Sutton [Thu, 16 Nov 2023 23:56:17 +0000 (12:56 +1300)] 
s4:librpc: Produce more helpful error message when bytes length is odd

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agoutil/charset: Have talloc_utf16_str[n]dup() accept NULL pointers
Joseph Sutton [Thu, 16 Nov 2023 23:52:29 +0000 (12:52 +1300)] 
util/charset: Have talloc_utf16_str[n]dup() accept NULL pointers

This is in line with ‘talloc_str[n]dup()’.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agolibrpc:ndr: Don’t try to log always‐NULL string
Joseph Sutton [Thu, 16 Nov 2023 21:45:29 +0000 (10:45 +1300)] 
librpc:ndr: Don’t try to log always‐NULL string

Commit c51795c747198f9e002505ffa39ad710beff0358 reorganized
ndr_pull_string() so that when we reach this DEBUG(), we don’t yet have
a string to log — ‘as’ will always be NULL. Attempting to log a NULL
string invokes undefined behaviour.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agogitlab-ci: Update Fedora to version 39
Andreas Schneider [Wed, 8 Nov 2023 12:12:21 +0000 (13:12 +0100)] 
gitlab-ci: Update Fedora to version 39

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Mon Nov 20 16:38:20 UTC 2023 on atb-devel-224

21 months agopython:tests: SHA1 is no longer supported by cryptography module
Andreas Schneider [Thu, 9 Nov 2023 21:27:03 +0000 (22:27 +0100)] 
python:tests: SHA1 is no longer supported by cryptography module

See https://github.com/pyca/cryptography/issues/8213#issuecomment-1419060001

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15513

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agopython:tests: Fix assertEquals which doesn't exist in Python 3.12
Andreas Schneider [Thu, 9 Nov 2023 20:43:54 +0000 (21:43 +0100)] 
python:tests: Fix assertEquals which doesn't exist in Python 3.12

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15513

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agothird_party: Build pypamtest with -Wno-error=declaration-after-statement
Andreas Schneider [Thu, 9 Nov 2023 16:16:17 +0000 (17:16 +0100)] 
third_party: Build pypamtest with -Wno-error=declaration-after-statement

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15513

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
21 months agoUse python.h from libreplace
Andreas Schneider [Thu, 9 Nov 2023 10:35:56 +0000 (11:35 +0100)] 
Use python.h from libreplace

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15513

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>