summaryrefslogtreecommitdiffstats
path: root/source3/passdb
Commit message (Collapse)AuthorAgeFilesLines
* use usleep rather than sys_usleep in various places, in anticipation of ↵Jelmer Vernooij2012-03-241-1/+1
| | | | usleep moving to libreplace.
* lib/util: Remove obsolete sys_getpid() and sys_fork().Jelmer Vernooij2012-03-242-2/+2
| | | | | | | | | The performance of these is minimal (these days) and they can return invalid results when used as part of applications that do not use sys_fork(). Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Mar 24 21:55:41 CET 2012 on sn-devel-104
* lib/util: Remove dummy wrapper for getpwuid().Jelmer Vernooij2012-03-241-1/+1
|
* s3: Fix bug 8567 -- segfault in dom_sid_compareVolker Lendecke2012-02-201-0/+1
| | | | | | | | The underlying problem was that with ldapsam:trusted we require the a group mapping for the primary group of every user, including root. Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Mon Feb 20 22:36:23 CET 2012 on sn-devel-104
* s3-secrets: Remove unused secrets_delete_generic()Andrew Bartlett2012-02-181-16/+0
| | | | | | | | | Found by callcatcher. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Sat Feb 18 09:01:15 CET 2012 on sn-devel-104
* s3-secrets: Remove unused secrets_delete_machine_password()Andrew Bartlett2012-02-181-13/+0
| | | | | | Found by callcatcher. Andrew Bartlett
* s3-passdb: Remove #if _SAMBA_BUILD_ == 4 from pdb_samba4Andrew Bartlett2012-02-081-2/+0
| | | | | | | | | pdb_samba4 is only built with waf anyway. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Feb 8 09:17:40 CET 2012 on sn-devel-104
* s3-waf: Link tdbsam against needed libraries.Andreas Schneider2012-02-071-1/+1
| | | | | Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Tue Feb 7 12:49:59 CET 2012 on sn-devel-104
* s3-waf: Link against tdb_compat instead of tdb.Andreas Schneider2012-02-071-2/+2
|
* s3: Fix unused variable warningsVolker Lendecke2012-01-291-0/+4
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Jan 29 16:33:29 CET 2012 on sn-devel-104
* s3-pdb: Make ADS-type backends updates secrets.tdb.Simo Sorce2012-01-273-0/+127
| | | | | | | | | | Make the backends that have ADS capability the only ones that can change the SID and GUID in secrets.tdb at initialization time. Signed-off-by: Andreas Schneider <asn@samba.org> Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Fri Jan 27 19:42:17 CET 2012 on sn-devel-104
* s3-pdb: Break SECRETS3 dependency on PDB.Simo Sorce2012-01-271-50/+49
| | | | | | | | | | | | | | | This is causing circular depdnendcies that bring libpdb in all code and this is BAD. This change 'protects' the sid and guid of the domain by adding a special key that makes them effectively read only. Limit this temporarily to the samba 4 build, once it gets some good testing the samba4 ifdefs can be dropped. fix pdb dependencies Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-waf: Add missing dependency of pdb_wbc_sam to wbclient.Andreas Schneider2012-01-271-1/+1
|
* Finally remove all malloc()'s from the substitute code. Now totallyJeremy Allison2012-01-271-3/+3
| | | | | | | talloc() based. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Jan 27 03:43:21 CET 2012 on sn-devel-104
* s3-passdb: Fix pdb_samba4 setting of plaintext passwordsAndrew Bartlett2012-01-241-1/+9
| | | | | | | | We were setting a UTF8 password into the UTF16 clearTextPassword. Converting from CH_UNIX to CH_UTF16 should fix this. Andrew Bartlett
* s3-passdb: Use DSDB_PASSWORD_BYPASS_LAST_SET flags in pdb_samba4Andrew Bartlett2012-01-241-9/+9
|
* s3: Add a "lock_order" argument to db_openVolker Lendecke2012-01-183-6/+11
| | | | | | | 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.
* s3-passdb: trying to decouple passdb and secrets a little.Günther Deschner2012-01-185-100/+169
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Jan 18 14:46:18 CET 2012 on sn-devel-104
* s3-waf: fix compile of pdb_ldap as shared module by moving ldap schema ↵Günther Deschner2012-01-131-1/+1
| | | | | | | | | 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
* s3-passdb: make pdb_password_change_time_max static.Günther Deschner2011-11-291-1/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Tue Nov 29 15:16:51 CET 2011 on sn-devel-104
* s3-py-passdb: Fix handling of uninitialized gid valuesAmitay Isaacs2011-11-181-1/+1
| | | | | | | | 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
* s4-s3-upgrade now look for -1 as the special 'not set' valueAndrew Bartlett2011-11-181-1/+1
| | | | | | | this is possible because we know the py_passdb will always set -1 here, not passing though 0xFFFFFFFF. Andrew Bartlett
* s3-smbldap: remove duplicate prototype.Günther Deschner2011-11-171-0/+1
| | | | Guenther
* s3-waf: create a smbldap.so library.Günther Deschner2011-11-161-0/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Nov 16 14:03:05 CET 2011 on sn-devel-104
* s3-smbldap: extend smbldap_init() with binddn/bindsecret arguments.Günther Deschner2011-11-161-2/+12
| | | | Guenther
* s3-passdb: split out passdb/pdb_ldap_schema.cGünther Deschner2011-11-166-1/+378
| | | | Guenther
* s3: move smbldap_util to pdb_ldap_util.Günther Deschner2011-11-164-1/+369
| | | | Guenther
* Fix bug #8561 - Password change settings not fully observed.Jeremy Allison2011-11-161-4/+34
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Nov 16 00:22:41 CET 2011 on sn-devel-104
* py_passdb: Cannot steal an item pointer from an arrayAmitay Isaacs2011-11-111-4/+9
| | | | | Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Fri Nov 11 12:04:33 CET 2011 on sn-devel-104
* s3-py_passdb Ensure that group mapping list input is initailisedAndrew Bartlett2011-11-091-1/+2
| | | | | | This may help to ensure we consistantly crash on an incorrect de-reference. Andrew Bartlett
* s3-passdb Initialise the correct level of pointer dereferenceAndrew Bartlett2011-11-091-1/+1
| | | | | | | | *pp_rmap may be NULL or un-initialised data. This was introduced by 995d1567265be178b4e45f79ea4562a7041ffa52. Andrew Bartlett
* s3-passdb: use tevent_context in passdb.Günther Deschner2011-10-282-6/+6
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Oct 28 13:09:47 CEST 2011 on sn-devel-104
* pdb-interface: Do not use unid_t hereSimo Sorce2011-10-186-46/+52
| | | | | | | | 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
* s3-passdb: remove libwbclient header dependency for passdb/lookup_sid.h.Günther Deschner2011-10-141-1/+3
| | | | Guenther
* s3-passdb: remove fstring from pdb_set_user_sid_from_string().Günther Deschner2011-10-141-1/+1
| | | | Guenther
* s3-passdb: add define guards for machine_sid.h.Günther Deschner2011-10-141-0/+5
| | | | Guenther
* s3-passdb: use uintX_t at least in headers.Günther Deschner2011-10-141-1/+1
| | | | Guenther
* s3-passdb: move passdb prototypes into passdb.hGünther Deschner2011-10-141-325/+0
| | | | Guenther
* s3-group-mapping: Remove fstrings from GROUP_MAP.Simo Sorce2011-10-129-86/+196
| | | | | | | 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
* s3:dbwrap: change dbwrap_store_uint32() to NTSTATUS return typeMichael Adam2011-10-112-3/+6
| | | | | | | 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
* s3:dbwrap: change dbwrap_store_int32() to NTSTATUS return typeMichael Adam2011-10-111-6/+10
| | | | for consistency and better error propagation
* s3:dbwrap: change dbwrap_fetch_uint32() to NTSTATUS return type (instead of ↵Michael Adam2011-10-112-8/+11
| | | | | | bool) for consistency and better error propagation
* s3:dbwrap: convert dbwrap_fetch_int32() to NTSTATUS return codeMichael Adam2011-10-111-8/+12
| | | | | | 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.
* s3:passdb:account_pol: use dbwrap_fetch_uint32, not dbwrap_fetch_int32 for ↵Michael Adam2011-10-111-3/+12
| | | | | | the DB version This is also stored as uint32_t.
* s3:secrets: convert to use dbwrap wrapper functions onlyMichael Adam2011-10-112-7/+14
| | | | Avoid direct use of the db_record and db_context structs.
* s3:passdb: convert account_pol to use dbwrap wrapper functions onlyMichael Adam2011-10-111-4/+4
| | | | Avoid direct use of the db_record and db_context structs.
* s3:passdb: convert machine_sid to use dbwrap wrapper functions onlyMichael Adam2011-10-111-3/+3
| | | | Avoid direct use of the db_record and db_context structs.
* s3:passdb: convert pdb_tdb to use dbwrap wrapper functions.Michael Adam2011-10-111-46/+61
| | | | Avoid direct use of the db_record and db_context structs
* s3:dbwrap: convert dbwrap_fetch(), dbwrap_fetch_bystring() and ↵Michael Adam2011-10-111-5/+6
| | | | dbwrap_fetch_bystring_upper() to NTSTATUS
* s3-passdb: split out passdb/pdb_ipa.h.Günther Deschner2011-10-114-4/+30
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Tue Oct 11 12:15:36 CEST 2011 on sn-devel-104