ira/wip.git
14 years agoRevert "s3: Do not reference the ndr_tables in the server calls directly"
Volker Lendecke [Sun, 8 Nov 2009 18:37:42 +0000 (19:37 +0100)]
Revert "s3: Do not reference the ndr_tables in the server calls directly"

This reverts commit 98fb71782e05ae72cd6abeb38b6e0b96a50c1761.

14 years agoRevert "s3: Do not reference ndr_table when calling rpc_srv_register"
Volker Lendecke [Sun, 8 Nov 2009 18:37:33 +0000 (19:37 +0100)]
Revert "s3: Do not reference ndr_table when calling rpc_srv_register"

This reverts commit 494b2aff8826947e3bd556aecb175746163da485.

14 years agoRevert "s3: Make run_rpc_command take strings instead of a ndr_interface_table"
Volker Lendecke [Sun, 8 Nov 2009 18:37:26 +0000 (19:37 +0100)]
Revert "s3: Make run_rpc_command take strings instead of a ndr_interface_table"

This reverts commit 53f2a1595e76db9fe1b42db65b51895b73365993.

14 years agoRevert "s3: Make libnetapi_open_pipe take strings instead of a ndr_interface_table"
Volker Lendecke [Sun, 8 Nov 2009 18:37:13 +0000 (19:37 +0100)]
Revert "s3: Make libnetapi_open_pipe take strings instead of a ndr_interface_table"

This reverts commit 5fc9d93408effe75abcd231c45cbc14656692ebe.

14 years agos3: Make libnetapi_open_pipe take strings instead of a ndr_interface_table
Volker Lendecke [Sun, 8 Nov 2009 11:31:38 +0000 (12:31 +0100)]
s3: Make libnetapi_open_pipe take strings instead of a ndr_interface_table

14 years agos3: Make run_rpc_command take strings instead of a ndr_interface_table
Volker Lendecke [Sun, 8 Nov 2009 11:24:06 +0000 (12:24 +0100)]
s3: Make run_rpc_command take strings instead of a ndr_interface_table

14 years agos3: Do not reference ndr_table when calling rpc_srv_register
Volker Lendecke [Sun, 8 Nov 2009 10:35:53 +0000 (11:35 +0100)]
s3: Do not reference ndr_table when calling rpc_srv_register

14 years agos3: Do not reference the ndr_tables in the server calls directly
Volker Lendecke [Sun, 8 Nov 2009 09:51:34 +0000 (10:51 +0100)]
s3: Do not reference the ndr_tables in the server calls directly

This involves storing the interface table in the pipes_struct

14 years agos3: Consolidate getting the name out of a pipes_struct
Volker Lendecke [Sun, 8 Nov 2009 09:43:34 +0000 (10:43 +0100)]
s3: Consolidate getting the name out of a pipes_struct

14 years agos3: Do not reference ndr_table_<pipe> in the cli_ routines directly
Volker Lendecke [Sun, 8 Nov 2009 08:53:08 +0000 (09:53 +0100)]
s3: Do not reference ndr_table_<pipe> in the cli_ routines directly

14 years agos3: Do not directly reference the ndr_table_* in rpcclient
Volker Lendecke [Sun, 1 Nov 2009 19:21:52 +0000 (20:21 +0100)]
s3: Do not directly reference the ndr_table_* in rpcclient

14 years agotdb: Fix a C++ warning
Volker Lendecke [Fri, 6 Nov 2009 13:04:49 +0000 (14:04 +0100)]
tdb: Fix a C++ warning

14 years agos4:vfs_ipc - fix "ipc_open" for NTTRANS create requests
Matthias Dieter Wallnöfer [Sat, 7 Nov 2009 19:53:28 +0000 (20:53 +0100)]
s4:vfs_ipc - fix "ipc_open" for NTTRANS create requests

14 years agotorture/basic/denytest - makes the code more compatible for TRU64 (consider buildfarm)
Matthias Dieter Wallnöfer [Sat, 7 Nov 2009 18:51:47 +0000 (19:51 +0100)]
torture/basic/denytest - makes the code more compatible for TRU64 (consider buildfarm)

14 years agos4:lib/messaging - fix up the python bindings
Matthias Dieter Wallnöfer [Sat, 7 Nov 2009 16:57:50 +0000 (17:57 +0100)]
s4:lib/messaging - fix up the python bindings

This fixes up the broken "send" method of the python bindings and corrects some
other parameter lists in parsing functions (this is only cosmetic). The reason
for the bug was a superfluous "|"!

14 years agos4:dsdb/common/util - samdb_result_hashes - use "unsigned int" for counters
Matthias Dieter Wallnöfer [Sat, 7 Nov 2009 11:15:38 +0000 (12:15 +0100)]
s4:dsdb/common/util - samdb_result_hashes - use "unsigned int" for counters

14 years agos3: Do the printing for DEBUGLEVEL>=10 centrally
Volker Lendecke [Sat, 7 Nov 2009 09:28:40 +0000 (10:28 +0100)]
s3: Do the printing for DEBUGLEVEL>=10 centrally

12 insertions(+), 10651 deletions(-)

I think that says it all :-)

14 years agoldb_init: use constant for result of "ldb_setup_wellknown_attributes"
Matthias Dieter Wallnöfer [Sat, 7 Nov 2009 09:18:26 +0000 (10:18 +0100)]
ldb_init: use constant for result of "ldb_setup_wellknown_attributes"

14 years agos3: Register the ndr_interfaces dynamically
Volker Lendecke [Sun, 1 Nov 2009 11:05:14 +0000 (12:05 +0100)]
s3: Register the ndr_interfaces dynamically

14 years agos3: Get rid of a NULL terminator
Volker Lendecke [Sun, 1 Nov 2009 10:33:59 +0000 (11:33 +0100)]
s3: Get rid of a NULL terminator

14 years agos3: Get rid of explicit pipe names
Volker Lendecke [Sat, 31 Oct 2009 19:04:54 +0000 (20:04 +0100)]
s3: Get rid of explicit pipe names

14 years agos3: get_pipe_name_from_iface -> get_pipe_name_from_syntax
Volker Lendecke [Sat, 31 Oct 2009 18:28:16 +0000 (19:28 +0100)]
s3: get_pipe_name_from_iface -> get_pipe_name_from_syntax

14 years agoFix bug 6865 - acl_xattr module: Has dependency that inherit acls = yes or xattrs...
Jeremy Allison [Sat, 7 Nov 2009 05:53:07 +0000 (21:53 -0800)]
Fix bug 6865 - acl_xattr module: Has dependency that inherit acls = yes or xattrs are removed.
Jeremy.

14 years agoFix bug 6841 - "map acl inherit = yes" not working.
Jeremy Allison [Sat, 7 Nov 2009 01:03:29 +0000 (17:03 -0800)]
Fix bug 6841 - "map acl inherit = yes" not working.
The code to read the new V2 SAMBA_PAI entries had
two errors.
Jeremy.

14 years agos4:libnet_passwd - fix pointer type
Matthias Dieter Wallnöfer [Fri, 6 Nov 2009 19:39:43 +0000 (20:39 +0100)]
s4:libnet_passwd - fix pointer type

14 years agos4:dcerpc - fix DEBUG output warning
Matthias Dieter Wallnöfer [Fri, 6 Nov 2009 19:39:15 +0000 (20:39 +0100)]
s4:dcerpc - fix DEBUG output warning

14 years agos4:samdb_check_password - allow the password string to be NULL
Matthias Dieter Wallnöfer [Fri, 6 Nov 2009 14:38:31 +0000 (15:38 +0100)]
s4:samdb_check_password - allow the password string to be NULL

This deactivates the password complexity check, but not the minimum password
length one, since the length is specified.
This change is needed by my password module work.

14 years agos4:dcesrv_samr_ValidatePassword - naturally this was only for debugging the failure
Matthias Dieter Wallnöfer [Fri, 6 Nov 2009 14:21:56 +0000 (15:21 +0100)]
s4:dcesrv_samr_ValidatePassword - naturally this was only for debugging the failure

14 years agos4:dcesrv_samr_ValidatePassword - adapt call to "samdb_check_password"
Matthias Dieter Wallnöfer [Fri, 6 Nov 2009 14:17:22 +0000 (15:17 +0100)]
s4:dcesrv_samr_ValidatePassword - adapt call to "samdb_check_password"

I've forgotten that PIDL converts UTF16 parameters automatically back to the
UNIX charset (in most cases UTF16). So I don't have to do this here.

14 years agos4:samdb_validate_password - Adapt the function to use the UNIX charset for the passw...
Matthias Dieter Wallnöfer [Fri, 6 Nov 2009 14:15:53 +0000 (15:15 +0100)]
s4:samdb_validate_password - Adapt the function to use the UNIX charset for the password data blob

14 years agos4:torture/samr - Add status code on "ValidatePassword" test output
Matthias Dieter Wallnöfer [Fri, 6 Nov 2009 11:32:47 +0000 (12:32 +0100)]
s4:torture/samr - Add status code on "ValidatePassword" test output

14 years agos4:torture/samr - Activate "ValidatePassword" test per default
Matthias Dieter Wallnöfer [Fri, 6 Nov 2009 11:16:30 +0000 (12:16 +0100)]
s4:torture/samr - Activate "ValidatePassword" test per default

14 years agos4:dcesrv_samr_ValidatePassword - I forgot to create an out buffer
Matthias Dieter Wallnöfer [Fri, 6 Nov 2009 11:10:42 +0000 (12:10 +0100)]
s4:dcesrv_samr_ValidatePassword - I forgot to create an out buffer

14 years agos3-kerberos: let smb_krb5_get_tkt_from_creds() compile with older heimdal libs.
Günther Deschner [Fri, 6 Nov 2009 13:46:35 +0000 (14:46 +0100)]
s3-kerberos: let smb_krb5_get_tkt_from_creds() compile with older heimdal libs.

Guenther

14 years agos3-netlogon: implement _netr_GetDcName and _netr_GetAnyDcName.
Günther Deschner [Wed, 30 Sep 2009 11:40:17 +0000 (13:40 +0200)]
s3-netlogon: implement _netr_GetDcName and _netr_GetAnyDcName.

Guenther

14 years agos4/drs: Refactor to be more SAMBA.Coding style compliant
Kamen Mazdrashki [Thu, 29 Oct 2009 16:18:54 +0000 (18:18 +0200)]
s4/drs: Refactor to be more SAMBA.Coding style compliant

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4/drs: Remove unused structures and functions
Kamen Mazdrashki [Thu, 29 Oct 2009 14:28:38 +0000 (16:28 +0200)]
s4/drs: Remove unused structures and functions

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4/drs: remove unused num_prefixes and prefixes from dsdb_schema
Kamen Mazdrashki [Thu, 29 Oct 2009 14:24:00 +0000 (16:24 +0200)]
s4/drs: remove unused num_prefixes and prefixes from dsdb_schema

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4/drs(tort): _torture_drs_pfm_compare_same() should not fail tctx by itself
Kamen Mazdrashki [Thu, 29 Oct 2009 01:56:50 +0000 (03:56 +0200)]
s4/drs(tort): _torture_drs_pfm_compare_same() should not fail tctx by itself

The responsibility for failing torture_context sould be for the
caller.
This gives better control in for test case driver function.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4/drs(tort): Test case for dsdb_create_prefix_mapping() implemented
Kamen Mazdrashki [Thu, 29 Oct 2009 01:17:33 +0000 (03:17 +0200)]
s4/drs(tort): Test case for dsdb_create_prefix_mapping() implemented

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4/drs: dsdb_create_prefix_mapping() refactored
Kamen Mazdrashki [Thu, 29 Oct 2009 01:54:12 +0000 (03:54 +0200)]
s4/drs: dsdb_create_prefix_mapping() refactored

TODO: this function may be refactored further.
Actually we don't need to look up for the OID supplied,
but just call sdb_schema_pfm_make_attid() - it will
search for the OID anyway and add it if necessary

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4/drs: prefixMap lookup by full_OID implementation
Kamen Mazdrashki [Thu, 29 Oct 2009 01:16:30 +0000 (03:16 +0200)]
s4/drs: prefixMap lookup by full_OID implementation

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4/drs(tort): refactor - SCHEMA_INFO_DEFAULT defined on file scope
Kamen Mazdrashki [Wed, 28 Oct 2009 16:33:13 +0000 (18:33 +0200)]
s4/drs(tort): refactor - SCHEMA_INFO_DEFAULT defined on file scope

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4/drs: dsdb_write_prefixes_from_schema_to_ldb() refactored
Kamen Mazdrashki [Tue, 27 Oct 2009 16:35:29 +0000 (18:35 +0200)]
s4/drs: dsdb_write_prefixes_from_schema_to_ldb() refactored

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4/drs: dsdb_read_prefixes_from_ldb() refactored
Kamen Mazdrashki [Tue, 27 Oct 2009 16:06:58 +0000 (18:06 +0200)]
s4/drs: dsdb_read_prefixes_from_ldb() refactored

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4/drs(tort): prefixMap read/write in LDB test case
Kamen Mazdrashki [Tue, 27 Oct 2009 16:03:47 +0000 (18:03 +0200)]
s4/drs(tort): prefixMap read/write in LDB test case

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4/drs(tort): Create temporary LDB for testing purposes
Kamen Mazdrashki [Tue, 27 Oct 2009 14:27:28 +0000 (16:27 +0200)]
s4/drs(tort): Create temporary LDB for testing purposes

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4/drs: refactor dsdb_load_oid_mappings_ldb() to use _dsdb_prefixmap_from_ldb_val()
Kamen Mazdrashki [Mon, 26 Oct 2009 22:16:02 +0000 (00:16 +0200)]
s4/drs: refactor dsdb_load_oid_mappings_ldb() to use _dsdb_prefixmap_from_ldb_val()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4/drs: Load prefixMap from ldb_val moved in separate function
Kamen Mazdrashki [Mon, 26 Oct 2009 21:50:50 +0000 (23:50 +0200)]
s4/drs: Load prefixMap from ldb_val moved in separate function

It is to be used later in several places when we need such conversion.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4/drs(tort): prefixMap to/from ldb_val serialization test case
Kamen Mazdrashki [Mon, 26 Oct 2009 19:04:28 +0000 (21:04 +0200)]
s4/drs(tort): prefixMap to/from ldb_val serialization test case

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4/drs: dsdb_schema_pfm_from_drsuapi_pfm() to accept partial drsuapi_prefixMap
Kamen Mazdrashki [Tue, 3 Nov 2009 06:49:36 +0000 (07:49 +0100)]
s4/drs: dsdb_schema_pfm_from_drsuapi_pfm() to accept partial drsuapi_prefixMap

"partial drsuapi_prefixMap" is a prefix map without last entry
being special - i.e. map that does not contains schema_info entry.

Test for dsdb_schema_pfm_from_drsuapi_pfm() were also extended to
cover both 'full' and 'partial' map conversion.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4/drs: dsdb_map_int2oid() replaced by dsdb_schema_pfm_oid_from_attid()
Kamen Mazdrashki [Mon, 26 Oct 2009 01:47:41 +0000 (03:47 +0200)]
s4/drs: dsdb_map_int2oid() replaced by dsdb_schema_pfm_oid_from_attid()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4/drs: dsdb_map_oid2int() replaced by dsdb_schema_pfm_make_attid()
Kamen Mazdrashki [Mon, 26 Oct 2009 01:35:29 +0000 (03:35 +0200)]
s4/drs: dsdb_map_oid2int() replaced by dsdb_schema_pfm_make_attid()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4/drs: dsdb_verify_oid_mappings_drsuapi() replaced by dsdb_schema_pfm_contains_drsua...
Kamen Mazdrashki [Mon, 26 Oct 2009 01:06:16 +0000 (03:06 +0200)]
s4/drs: dsdb_verify_oid_mappings_drsuapi() replaced by dsdb_schema_pfm_contains_drsuapi_pfm()

dsdb_schema_pfm_contains_drsuapi_pfm() is part of reimplemented
prefixMap interface.

This name was choosen to clearly show, that this a week verification
in case we want to determine if remote schema is changed.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4/drs: dsdb_get_oid_mappings_drsuapi() to use new prefixMap interface
Kamen Mazdrashki [Mon, 26 Oct 2009 00:41:46 +0000 (02:41 +0200)]
s4/drs: dsdb_get_oid_mappings_drsuapi() to use new prefixMap interface

dsdb_get_oid_mappings_drsuapi() just need to call
dsdb_drsuapi_pfm_from_schema_pfm() to get filled-in DRSUAPI
prefixMap.

Perhaps it won't be bad to rename this function to have
more expressive name in the future

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4/drs: dsdb_load_oid_mappings_drsuapi() -> dsdb_load_prefixmap_from_drsuapi()
Kamen Mazdrashki [Tue, 3 Nov 2009 08:05:51 +0000 (09:05 +0100)]
s4/drs: dsdb_load_oid_mappings_drsuapi() -> dsdb_load_prefixmap_from_drsuapi()

Also, dsdb_load_oid_mappings_drsuapi() was reimplemented to use
dsdb_schema_pfm_from_drsuapi_pfm() function to load
drsuapi_prefixMap into schema->prefixmap

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4/drs: dsdb_schema uses dsdb_schema_prefixmap definition
Kamen Mazdrashki [Sun, 25 Oct 2009 22:31:28 +0000 (00:31 +0200)]
s4/drs: dsdb_schema uses dsdb_schema_prefixmap definition

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4: DRS-RPC tests added to RPC group of tests
Kamen Mazdrashki [Sun, 25 Oct 2009 20:43:04 +0000 (22:43 +0200)]
s4: DRS-RPC tests added to RPC group of tests

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4: Add DRS-UNIT test suite to LOCAL group of tests to be executed
Kamen Mazdrashki [Sun, 25 Oct 2009 20:07:18 +0000 (22:07 +0200)]
s4: Add DRS-UNIT test suite to LOCAL group of tests to be executed

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4/drs: Move schema_prefixMap allocation in separate function
Kamen Mazdrashki [Sun, 25 Oct 2009 18:57:18 +0000 (20:57 +0200)]
s4/drs: Move schema_prefixMap allocation in separate function

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4/drs: schema_prefixMap to/from drsuapi_prefixMap conversion implementation
Kamen Mazdrashki [Sun, 25 Oct 2009 18:34:17 +0000 (20:34 +0200)]
s4/drs: schema_prefixMap to/from drsuapi_prefixMap conversion implementation

Along with this, dsdb_schema_pfm_contains_drsuapi_pfm()
function is implemented to replace previous implementation
for dsdb_verify_oid_mappings_drsuapi().
Name of the function clearly implies how week this verification is,
as currently it is used to indicate "Schema modified on remote"
condition.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4/drs(tort): test for schema_prefixMap to/from drsuapi_prefixMap conversion
Kamen Mazdrashki [Sun, 25 Oct 2009 18:31:39 +0000 (20:31 +0200)]
s4/drs(tort): test for schema_prefixMap to/from drsuapi_prefixMap conversion

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4/drs(tort): implement prefixMap comparison function
Kamen Mazdrashki [Sat, 24 Oct 2009 00:01:01 +0000 (03:01 +0300)]
s4/drs(tort): implement prefixMap comparison function

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4/drs: Implement binary-oid-lookup into prefixMap
Kamen Mazdrashki [Fri, 23 Oct 2009 21:48:55 +0000 (00:48 +0300)]
s4/drs: Implement binary-oid-lookup into prefixMap

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4/drs: Move making of partial-binary-oid to a separate function
Kamen Mazdrashki [Fri, 23 Oct 2009 21:48:14 +0000 (00:48 +0300)]
s4/drs: Move making of partial-binary-oid to a separate function

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4/drs: Fix memory leek in prefixMap
Kamen Mazdrashki [Fri, 23 Oct 2009 21:02:24 +0000 (00:02 +0300)]
s4/drs: Fix memory leek in prefixMap

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4/ldb: Fix double allocation for "ldb_url"
Kamen Mazdrashki [Fri, 23 Oct 2009 21:02:02 +0000 (00:02 +0300)]
s4/ldb: Fix double allocation for "ldb_url"

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4:torture/drs: move intern/ => unit/
Stefan Metzmacher [Wed, 4 Nov 2009 10:12:17 +0000 (11:12 +0100)]
s4:torture/drs: move intern/ => unit/

metze

14 years agoRevert "s3-kerberos: add smb_krb5_parse_name_flags()."
Günther Deschner [Fri, 6 Nov 2009 12:48:23 +0000 (13:48 +0100)]
Revert "s3-kerberos: add smb_krb5_parse_name_flags()."

This reverts commit 17ef153b68795fec681f9ce17c198236aba2b1c2.

14 years agos3-kerberos: support S4U2SELF impersionation through cli_krb5_get_ticket().
Günther Deschner [Thu, 5 Nov 2009 18:10:55 +0000 (19:10 +0100)]
s3-kerberos: support S4U2SELF impersionation through cli_krb5_get_ticket().

Guenther

14 years agos3-kerberos: use smb_krb5_get_credentials in ads_krb5_mk_req.
Günther Deschner [Thu, 5 Nov 2009 16:49:00 +0000 (17:49 +0100)]
s3-kerberos: use smb_krb5_get_credentials in ads_krb5_mk_req.

Guenther

14 years agos3-kerberos: modify cli_krb5_get_ticket to take a new impersonate_princ_s arg.
Günther Deschner [Mon, 13 Oct 2008 15:29:22 +0000 (17:29 +0200)]
s3-kerberos: modify cli_krb5_get_ticket to take a new impersonate_princ_s arg.

Guenther

14 years agos3-net: better use memory credential cache in net_ads_kerberos_pac().
Günther Deschner [Fri, 6 Nov 2009 11:51:29 +0000 (12:51 +0100)]
s3-net: better use memory credential cache in net_ads_kerberos_pac().

Guenther

14 years agos3-net: allow to call "net ads kerberos pac <impersonation principal> -P".
Günther Deschner [Mon, 13 Oct 2008 15:28:39 +0000 (17:28 +0200)]
s3-net: allow to call "net ads kerberos pac <impersonation principal> -P".

Guenther

14 years agos3-kerberos: add impersonate_principal for kerberos_return_pac_X calls.
Günther Deschner [Mon, 13 Oct 2008 15:27:21 +0000 (17:27 +0200)]
s3-kerberos: add impersonate_principal for kerberos_return_pac_X calls.

Guenther

14 years agos3-kerberos: add smb_krb5_get_tkt_from_creds().
Günther Deschner [Mon, 13 Oct 2008 15:25:35 +0000 (17:25 +0200)]
s3-kerberos: add smb_krb5_get_tkt_from_creds().

Guenther

14 years agos3-kerberos: fix some build warnings when building against heimdal.
Günther Deschner [Fri, 6 Nov 2009 09:25:53 +0000 (10:25 +0100)]
s3-kerberos: fix some build warnings when building against heimdal.

Guenther

14 years agos3-kerberos: add smb_krb5_get_{creds,credentials} incl. support for S4U2SELF imperson...
Günther Deschner [Mon, 13 Oct 2008 15:22:37 +0000 (17:22 +0200)]
s3-kerberos: add smb_krb5_get_{creds,credentials} incl. support for S4U2SELF impersonation.

Guenther

14 years agos3-kerberos: remove duplicate prototype.
Günther Deschner [Mon, 13 Oct 2008 15:27:43 +0000 (17:27 +0200)]
s3-kerberos: remove duplicate prototype.

Guenther

14 years agos3-kerberos: add smb_krb5_parse_name_flags().
Günther Deschner [Thu, 5 Nov 2009 18:02:55 +0000 (19:02 +0100)]
s3-kerberos: add smb_krb5_parse_name_flags().

Guenther

14 years agos3-kerberos: add configure checks for krb5_get_creds_X api.
Günther Deschner [Mon, 13 Oct 2008 15:21:22 +0000 (17:21 +0200)]
s3-kerberos: add configure checks for krb5_get_creds_X api.

Guenther

14 years agoGot the logic simplification worked out so we still pass
Jeremy Allison [Fri, 6 Nov 2009 06:58:12 +0000 (22:58 -0800)]
Got the logic simplification worked out so we still pass
BASE-DELAYWRITE and also RAW-CLOSE.
Jeremy.

14 years agoRevert commit "0551284dc08eb93ef7b2b2227a45e5ec21d482fb" - simplify
Jeremy Allison [Fri, 6 Nov 2009 05:27:25 +0000 (21:27 -0800)]
Revert commit "0551284dc08eb93ef7b2b2227a45e5ec21d482fb" - simplify
the logic. This was incorrect (I'll revisit this tomorrow).
Jeremy.

14 years agoRemove the smbd:writetimeupdatedelay change Metze added. Metze please
Jeremy Allison [Fri, 6 Nov 2009 01:43:33 +0000 (17:43 -0800)]
Remove the smbd:writetimeupdatedelay change Metze added. Metze please
explain why you added this. Change --maximum-runtime=900 for smbtorture4
with BASE-DELAYWRITE. Should allow it to successfully complete now.
Jeremy.

14 years agoSimplify the logic - remove extraneous argument and calls to set_close_write_time().
Jeremy Allison [Fri, 6 Nov 2009 01:40:01 +0000 (17:40 -0800)]
Simplify the logic - remove extraneous argument and calls to set_close_write_time().
We were treating a file time set on close as a sticky write time set, and I don't
think it is. I will add a torture test later to RAW-CLOSE to confirm this.
Jeremy.

14 years agoFix explicit set of write time on close.
Jeremy Allison [Fri, 6 Nov 2009 01:12:11 +0000 (17:12 -0800)]
Fix explicit set of write time on close.
Jeremy.

14 years agoGet closer to an accurate model of Windows timestamp changes.
Jeremy Allison [Fri, 6 Nov 2009 00:20:11 +0000 (16:20 -0800)]
Get closer to an accurate model of Windows timestamp changes.
"Normal" non truncate writes always cause the timestamp to
be set on close. Once a close is done on a handle this can
reset the sticky write time to current time also.
Updated smbtorture4 confirms this.
Jeremy.

14 years agoFix up some of the timing constants for DELAYWRITE. Add some extra tests up test_dela...
Jeremy Allison [Thu, 5 Nov 2009 23:37:26 +0000 (15:37 -0800)]
Fix up some of the timing constants for DELAYWRITE. Add some extra tests up test_delayed_write_update6
to investigate what happens to a sticky write handle after a second handle close.
Jeremy.

14 years agoPython tests for the acl module.
Zahari Zahariev [Thu, 5 Nov 2009 15:40:54 +0000 (17:40 +0200)]
Python tests for the acl module.

Signed-off-by: Nadezhda Ivanova <nadezhda.ivanova@postpath.com>
Author:    Zahari Zahariev <zahari.zahariev@postpath.com>

14 years agoVersion 1.0 of the directory service acls module.
Nadezhda Ivanova [Thu, 5 Nov 2009 15:34:12 +0000 (17:34 +0200)]
Version 1.0 of the directory service acls module.

At this point, support for checks on LDAP add, delete, rename and modify.
Old kludge_acl is still there to handle the searches.
This module is synchronous as the async version was impossible to debug,
will be converted to async after some user testing.

14 years agos3: Fix a crash in notify_remove_onelevel when "change notify = no"
Volker Lendecke [Thu, 5 Nov 2009 14:06:21 +0000 (15:06 +0100)]
s3: Fix a crash in notify_remove_onelevel when "change notify = no"

14 years agos3: Fix the talloc hierarchy in notify_remove_onelevel
Volker Lendecke [Thu, 5 Nov 2009 13:29:05 +0000 (14:29 +0100)]
s3: Fix the talloc hierarchy in notify_remove_onelevel

We want to free the record early, not when talloc_tos() is free'ed.

14 years agos4:torture/rpc/samr - Add a comment for "ValidatePassword" test
Matthias Dieter Wallnöfer [Thu, 5 Nov 2009 11:37:16 +0000 (12:37 +0100)]
s4:torture/rpc/samr - Add a comment for "ValidatePassword" test

14 years agos4:dcesrv_samr - Implement "dcesrv_samr_ValidatePassword" using my new check password...
Matthias Dieter Wallnöfer [Wed, 4 Nov 2009 11:02:02 +0000 (12:02 +0100)]
s4:dcesrv_samr - Implement "dcesrv_samr_ValidatePassword" using my new check password call

This implements a very basic method for password validation using my new
"samdb_check_password" call.

14 years agos4:dsdb/common/util - Add a new utility function "samdb_check_password"
Matthias Dieter Wallnöfer [Sat, 24 Oct 2009 18:21:04 +0000 (20:21 +0200)]
s4:dsdb/common/util - Add a new utility function "samdb_check_password"

This function performs basic password checks and will be used by the
"samrValidatePassword" call and the "password_hash" module.

14 years agos4:samdb_set_password/samdb_set_password_sid - Better comments and cosmetics
Matthias Dieter Wallnöfer [Sat, 24 Oct 2009 17:31:01 +0000 (19:31 +0200)]
s4:samdb_set_password/samdb_set_password_sid - Better comments and cosmetics

14 years agos3: Add parameter "ctdb timeout"
Volker Lendecke [Tue, 3 Nov 2009 04:41:02 +0000 (05:41 +0100)]
s3: Add parameter "ctdb timeout"

When something in the cluster blocks, it can happen that we wait indefinitely
long for ctdb, just adding to the blocking condition. In theory, nothing should
block, but as someone said "In practice the difference between theory and
practice is larger than in theory". This adds a timeout parameter in seconds,
after which we stop waiting for ctdb and panic.

14 years agos4:samdb python bindings - add a wrapper for "dsdb_make_schema_global"
Matthias Dieter Wallnöfer [Tue, 27 Oct 2009 22:24:46 +0000 (23:24 +0100)]
s4:samdb python bindings - add a wrapper for "dsdb_make_schema_global"

14 years agos4:samdb python bindings - make the python wrap connect more like the C one
Matthias Dieter Wallnöfer [Tue, 27 Oct 2009 18:52:21 +0000 (19:52 +0100)]
s4:samdb python bindings - make the python wrap connect more like the C one

Add call for setting the create permissions.

14 years agos4:samdb python bindings - Reorder some function bodies to match the order in "ldb_wr...
Matthias Dieter Wallnöfer [Tue, 27 Oct 2009 18:50:33 +0000 (19:50 +0100)]
s4:samdb python bindings - Reorder some function bodies to match the order in "ldb_wrap_connect"