Volker Lendecke
45e61fcf61
s3: Add a "lock_order" argument to db_open
...
This will be used to enforce a lock hierarchy between the databases. We have
seen deadlocks between locking.tdb, brlock.tdb, serverid.tdb and notify*.tdb.
These should be fixed by refusing a dbwrap_fetch_locked that does not follow a
defined lock hierarchy.
2012-01-18 14:48:04 +01:00
Günther Deschner
e75c436fe6
s3-passdb: trying to decouple passdb and secrets a little.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Jan 18 14:46:18 CET 2012 on sn-devel-104
2012-01-18 14:46:18 +01:00
Günther Deschner
91c04ea04f
s3-waf: fix compile of pdb_ldap as shared module by moving ldap schema helpers to libpdb.so
...
These helpers are used in other parts of Samba as well (like in idmap and in the
net provision code).
Guenther
2012-01-13 09:29:07 +01:00
Günther Deschner
023558aa90
s3-passdb: make pdb_password_change_time_max static.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Nov 29 15:16:51 CET 2011 on sn-devel-104
2011-11-29 15:16:51 +01:00
Amitay Isaacs
cd3f552f4f
s3-py-passdb: Fix handling of uninitialized gid values
...
Uninitialized gid value is set to -1 and return as such from python
passdb api.
Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Fri Nov 18 06:18:33 CET 2011 on sn-devel-104
2011-11-18 06:18:33 +01:00
Andrew Bartlett
e80dbdcab1
s4-s3-upgrade now look for -1 as the special 'not set' value
...
this is possible because we know the py_passdb will always set -1
here, not passing though 0xFFFFFFFF.
Andrew Bartlett
2011-11-18 14:38:27 +11:00
Günther Deschner
7d71747897
s3-smbldap: remove duplicate prototype.
...
Guenther
2011-11-17 02:11:46 +01:00
Günther Deschner
693781db89
s3-waf: create a smbldap.so library.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Nov 16 14:03:05 CET 2011 on sn-devel-104
2011-11-16 14:03:05 +01:00
Günther Deschner
65e2944c67
s3-smbldap: extend smbldap_init() with binddn/bindsecret arguments.
...
Guenther
2011-11-16 12:26:26 +01:00
Günther Deschner
8312ee1367
s3-passdb: split out passdb/pdb_ldap_schema.c
...
Guenther
2011-11-16 12:26:26 +01:00
Günther Deschner
28f8ccbe8b
s3: move smbldap_util to pdb_ldap_util.
...
Guenther
2011-11-16 12:26:26 +01:00
Jeremy Allison
3ede4ffe96
Fix bug #8561 - Password change settings not fully observed.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Nov 16 00:22:41 CET 2011 on sn-devel-104
2011-11-16 00:22:41 +01:00
Amitay Isaacs
29b5a95b1f
py_passdb: Cannot steal an item pointer from an array
...
Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Fri Nov 11 12:04:33 CET 2011 on sn-devel-104
2011-11-11 12:04:33 +01:00
Andrew Bartlett
0f2ff7c5c2
s3-py_passdb Ensure that group mapping list input is initailised
...
This may help to ensure we consistantly crash on an incorrect de-reference.
Andrew Bartlett
2011-11-09 23:38:25 +01:00
Andrew Bartlett
1fb836d863
s3-passdb Initialise the correct level of pointer dereference
...
*pp_rmap may be NULL or un-initialised data.
This was introduced by 995d156726
.
Andrew Bartlett
2011-11-09 23:38:25 +01:00
Günther Deschner
2330e52cac
s3-passdb: use tevent_context in passdb.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Oct 28 13:09:47 CEST 2011 on sn-devel-104
2011-10-28 13:09:47 +02:00
Simo Sorce
605d7d965a
pdb-interface: Do not use unid_t here
...
This interface needs to be publicly available, unid_t here is not really useful
and makes it harder to use it as unid_t is not a public union.
Autobuild-User: Simo Sorce <idra@samba.org>
Autobuild-Date: Tue Oct 18 20:57:16 CEST 2011 on sn-devel-104
2011-10-18 20:57:16 +02:00
Günther Deschner
111372541f
s3-passdb: remove libwbclient header dependency for passdb/lookup_sid.h.
...
Guenther
2011-10-14 12:07:25 +02:00
Günther Deschner
876f48ffb1
s3-passdb: remove fstring from pdb_set_user_sid_from_string().
...
Guenther
2011-10-14 12:07:25 +02:00
Günther Deschner
d47c25401a
s3-passdb: add define guards for machine_sid.h.
...
Guenther
2011-10-14 12:07:24 +02:00
Günther Deschner
d6a1867349
s3-passdb: use uintX_t at least in headers.
...
Guenther
2011-10-14 12:07:24 +02:00
Günther Deschner
d981ceb464
s3-passdb: move passdb prototypes into passdb.h
...
Guenther
2011-10-14 12:07:24 +02:00
Simo Sorce
995d156726
s3-group-mapping: Remove fstrings from GROUP_MAP.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Oct 12 19:28:12 CEST 2011 on sn-devel-104
2011-10-12 19:28:12 +02:00
Michael Adam
6760011761
s3:dbwrap: change dbwrap_store_uint32() to NTSTATUS return type
...
for consistency and better error propagation
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Tue Oct 11 15:51:00 CEST 2011 on sn-devel-104
2011-10-11 15:51:00 +02:00
Michael Adam
c9bc1e4924
s3:dbwrap: change dbwrap_store_int32() to NTSTATUS return type
...
for consistency and better error propagation
2011-10-11 14:17:58 +02:00
Michael Adam
658f72128f
s3:dbwrap: change dbwrap_fetch_uint32() to NTSTATUS return type (instead of bool)
...
for consistency and better error propagation
2011-10-11 14:17:58 +02:00
Michael Adam
603c3e1bcb
s3:dbwrap: convert dbwrap_fetch_int32() to NTSTATUS return code
...
Return the int32 value retrieved from the db by reference.
Before this, return value "-1" was used as a error indication,
but it could also be a valid value from the database.
2011-10-11 14:17:58 +02:00
Michael Adam
f03e4aea66
s3:passdb:account_pol: use dbwrap_fetch_uint32, not dbwrap_fetch_int32 for the DB version
...
This is also stored as uint32_t.
2011-10-11 14:17:58 +02:00
Michael Adam
3f214284c7
s3:secrets: convert to use dbwrap wrapper functions only
...
Avoid direct use of the db_record and db_context structs.
2011-10-11 14:17:57 +02:00
Michael Adam
8b4845bd75
s3:passdb: convert account_pol to use dbwrap wrapper functions only
...
Avoid direct use of the db_record and db_context structs.
2011-10-11 14:17:57 +02:00
Michael Adam
8b4dd99dae
s3:passdb: convert machine_sid to use dbwrap wrapper functions only
...
Avoid direct use of the db_record and db_context structs.
2011-10-11 14:17:57 +02:00
Michael Adam
a91f06a722
s3:passdb: convert pdb_tdb to use dbwrap wrapper functions.
...
Avoid direct use of the db_record and db_context structs
2011-10-11 14:17:57 +02:00
Michael Adam
0e28448a78
s3:dbwrap: convert dbwrap_fetch(), dbwrap_fetch_bystring() and dbwrap_fetch_bystring_upper() to NTSTATUS
2011-10-11 14:17:56 +02:00
Günther Deschner
e5682847fa
s3-passdb: split out passdb/pdb_ipa.h.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Oct 11 12:15:36 CEST 2011 on sn-devel-104
2011-10-11 12:15:36 +02:00
Günther Deschner
6cc2843dc6
s3-passdb: split out passdb/pdb_nds.h.
...
Guenther
2011-10-11 10:41:29 +02:00
Günther Deschner
a1f4fe7e08
s3-passdb: split out passdb/pdb_ldap.h.
...
Guenther
2011-10-11 10:41:29 +02:00
Andrew Bartlett
b21b012756
lib/param move source4 param code to the top level
...
This is done so that the lpcfg_ functions are available across the whole
build, either with the struct loadparm_context loaded from an smb.conf directly
or as a wrapper around the source3 param code.
This is not the final, merged loadparm, but simply one step to make
it easier to solve other problems while we make our slow progress
on this difficult problem.
Andrew Bartlett
2011-10-11 13:41:34 +11:00
Günther Deschner
795aefec0c
s3-passdb: split out passdb/pdb_smbpasswd.h.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Oct 10 20:14:46 CEST 2011 on sn-devel-104
2011-10-10 20:14:46 +02:00
Günther Deschner
8c2f72d6b8
s3-passdb: split out passdb/pdb_wbc_sam.h.
...
Guenther
2011-10-10 18:40:40 +02:00
Günther Deschner
efab0086ba
s3-passdb: split out passdb/pdb_tdb.h.
...
Guenther
2011-10-10 18:40:33 +02:00
Andrew Bartlett
4980cd772a
build: Remove _SAMBA_WAF_BUILD_
...
The _SAMBA_BUILD_ macro can pick the difference between autoconf and waf builds now
Andrew Bartlett
2011-10-07 17:45:20 +11:00
Andrew Bartlett
055f017b36
build: Reduce build systems to just top level waf and autoconf
...
The s3-waf build system is a key component of the top level build, but
with this commit is is no longer available directly. This reduces the
number of build system combinations in master as we prepare for the
Samba 4.0 release.
Andrew Bartlett
2011-10-07 17:42:03 +11:00
Andrew Bartlett
b5cc6a0ad2
s3-pdb_samba4: Remove unused attribute from domain search
2011-09-27 22:43:06 +02:00
Simo Sorce
f7419172f0
s3-passdb: Cleanup use of fstring and move to talloc.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-09-26 18:25:26 +02:00
Sumit Bose
751e7d4d33
s3-pdb_ipa: Add supprted encryption types to struct pdb_trusted_domain
...
Signed-off-by: Günther Deschner <gd@samba.org>
2011-08-31 12:53:36 +02:00
Sumit Bose
4f6de78a12
s3-pdb_ipa: Add posix offset to struct pdb_trusted_domain
...
Signed-off-by: Günther Deschner <gd@samba.org>
2011-08-31 12:52:52 +02:00
Sumit Bose
bb86062f61
s3-pdb_ipa: Derive domain GUID from SID
...
Signed-off-by: Günther Deschner <gd@samba.org>
2011-08-31 11:34:25 +02:00
Amitay Isaacs
322b5253f4
s3-passdb: Allocate talloc stackframe before calling pdb_get_group_sid()
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-26 14:06:07 +02:00
Amitay Isaacs
17c74e5dfd
s3-passdb: Make domain_sid argument optional for search_aliases method
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-26 10:06:33 +10:00
Amitay Isaacs
0cfeb65a0b
s3-passdb: Return assigned number of hours and not MAX_HOURS_LEN
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-26 10:06:33 +10:00