summaryrefslogtreecommitdiffstats
path: root/source3/passdb
Commit message (Collapse)AuthorAgeFilesLines
* s3-secrets: add lsa_secret passdb api.Günther Deschner2011-07-312-3/+245
| | | | Guenther
* s3-passdb: add dummy calls to control global (replicated) secrets.Günther Deschner2011-07-312-0/+80
| | | | Guenther
* s3:dbwrap: move all .c and .h files of dbwrap to lib/dbwrap/Michael Adam2011-07-295-5/+5
| | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Fri Jul 29 13:34:22 CEST 2011 on sn-devel-104
* s3:dbwrap: move db_open() to a file dbwrap_open.c of its own.Michael Adam2011-07-293-0/+3
| | | | | | Also start new folder lib/dbwrap/ where dbwrap_open.c is stored and make the fallbacke implementation functoins non-static and create a dbwrap_private.h header file that contains their prototypes.
* s3-waf: the passdb subsystem needs to be called pdbAndrew Tridgell2011-07-281-6/+6
| | | | | | | | | the 'pdb' name is builtin to the passdb module loading code as a fixed string. We need to call the subsystem pdb so that external passdb modules end up in bin/modules/pdb/ where they can be found by the Samba3 module loader Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* First part of fix for bug 8310 - toupper_ascii() is broken on big-endian systemsJeremy Allison2011-07-191-4/+4
| | | | | | | | | | Remove int toupper_ascii(int c); int tolower_ascii(int c); int isupper_ascii(int c); int islower_ascii(int c); and replace with their _m equivalents, as they are identical.
* lib/util Move bitmap.c to lib/utilAndrew Bartlett2011-07-081-0/+1
|
* s3-build link passdb modules against libpassdbAndrew Bartlett2011-07-041-11/+6
| | | | | | | | | | This ensures that they don't include a duplicate copy of pdb_interface.c functions, because they will instead link the library. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Jul 4 12:24:50 CEST 2011 on sn-devel-104
* s3-build allow_undefined_symbols=False is the default nowAndrew Bartlett2011-07-041-1/+0
|
* s3-waf: add some missing tdb dependencies.Günther Deschner2011-06-281-1/+1
| | | | Guenther
* lib/util Remove samba-util-common!Andrew Bartlett2011-06-211-3/+3
| | | | | | | All of this code is now in common, so we don't need the second '-common' library any more! Andrew Bartlett
* tdb_compat: Higher level API fixes.Rusty Russell2011-06-201-2/+2
| | | | | | | | | | | | My previous patches fixed up all direct TDB callers, but there are a few utility functions and the db_context functions which are still using the old -1 / 0 return codes. It's clearer to fix up all the callers of these too, so everywhere is consistent: non-zero means an error. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s3-passdb: Implement new pdb trust calls for the default backendSumit Bose2011-06-121-2/+102
| | | | | | | Signed-off-by: Simo Sorce <idra@samba.org> Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Sun Jun 12 06:45:25 CEST 2011 on sn-devel-104
* s3-param Remove special case for global_myname(), rename to lp_netbios_name()Andrew Bartlett2011-06-092-8/+8
| | | | | | | | There is no reason this can't be a normal constant string in the loadparm system, now that we have lp_set_cmdline() to handle overrides correctly. Andrew Bartlett
* s3-talloc Change TALLOC_ZERO_ARRAY() to talloc_zero_array()Andrew Bartlett2011-06-092-3/+3
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_ARRAY isn't standard talloc.
* s3-talloc Change TALLOC_ZERO_P() to talloc_zero()Andrew Bartlett2011-06-093-3/+3
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_P isn't standard talloc.
* s3-talloc Change TALLOC_P() to talloc()Andrew Bartlett2011-06-094-4/+4
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_P isn't standard talloc.
* s3-talloc Change TALLOC_ARRAY() to talloc_array()Andrew Bartlett2011-06-096-15/+15
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ARRAY isn't standard talloc.
* s3-talloc Change TALLOC_REALLOC_ARRAY() to talloc_realloc()Andrew Bartlett2011-06-091-1/+1
| | | | | | | Using the standard macro makes it easier to move code into common, as TALLOC_REALLOC_ARRAY isn't standard talloc. Andrew Bartlett
* s3:passdb/pdb_samba4.c - remove unused variableMatthias Dieter Wallnöfer2011-06-091-1/+0
| | | | Reviewed-by: Tridge
* s3:passdb/pdb_samba4.c - fix a format specifier warningMatthias Dieter Wallnöfer2011-06-091-1/+1
| | | | Reviewed-by: Tridge
* s3-passdb use new loadparm_init_s3 rather than reloading the smb.confAndrew Bartlett2011-06-061-14/+2
|
* s3:passdb: add GPL/copyright header to machine_sid.hMichael Adam2011-05-311-0/+21
|
* s3:passdb/proto.h: add _PASSDB_PROTO_H_ guardMichael Adam2011-05-311-0/+4
|
* s3:passdb/proto.h: add GPL/copyright comment headerMichael Adam2011-05-311-0/+36
|
* Fix numerous missing dependencies in WAF build scriptsSean Finney2011-05-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the recent consolidation of code between s3 and s4, a number of new dependencies have been implicitly introduced. For example, previous s3 code gained an implicit dependency on talloc after the charset related consolidation (lib/util/charset/charset.h now includes talloc.h). When building against the embedded version of talloc this isn't a problem since the paths are automatically added to the search path, but when building against the external libraries build failures will occur for all components that don't directly or indirectly include talloc as a dependency. Since charset.h is included from util.h, which in turn is included from includes.h, this means most of the codebase (s3 and s4) has such an undeclared dependency. Therefore, samba-util-common and samba-util have been added as dependencies to the s3 and s4 code respectively, for all cases where the source would otherwise fail to build. Additionally, a few other dependencies are added in specific wscript_build files to address similar dependency-related problems. https://bugzilla.samba.org/show_bug.cgi?id=8128 Signed-off-by: Sean Finney <seanius@seanius.net> Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Wed May 25 19:22:13 CEST 2011 on sn-devel-104
* Fix bug #7054 - X account flag does not work when pwdlastset is 0.Jeremy Allison2011-05-241-2/+1
| | | | | | | | | | | | | Don't allow pass_last_set_time to be set to zero (which means "user must change password on next logon") if user object doesn't allow password change. Don't automatically allow user object password change if "user must change password on next logon" is set. Jim please check. Jeremy.
* s3-lib Replace StrnCaseCmp() with strncasecmp_m()Andrew Bartlett2011-05-181-3/+3
| | | | | | | strncasecmp_m() never needs to call to talloc, and via next_codepoint() still has an ASCII fast-path bypassing iconv() calls. Andrew Bartlett
* s3-passdb: added pdb_samba4Andrew Bartlett2011-05-082-0/+2123
| | | | | | | | This uses direct LDB operations and calls to the dsdb library to allow passdb operations (such as pdbedit and smbpasswd) offline, and uses transactions internally for database consistency. Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
* s3-passdb Redirect domain GUID and SID queries to the passdb stackAndrew Bartlett2011-05-081-0/+58
| | | | | | | | | This is done if the passdb module supports PDB_ADS, and ensures that a random SID is never made up locally for these directories. This is only enabled when in the waf build, due to dependency issues. Andrew Bartlett
* s3: only include tdb headers where needed.Günther Deschner2011-05-065-0/+5
| | | | Guenther
* More const fixes. Remove CONST_DISCARD.Jeremy Allison2011-05-061-6/+6
|
* Simple +1 changes in hardcoded lengths when changing from safe_strcpy to ↵Jeremy Allison2011-05-041-3/+3
| | | | strlcpy.
* s3: Fix Coverity ID 2471: UNINITVolker Lendecke2011-04-141-2/+1
| | | | | | | Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu Apr 14 16:22:58 CEST 2011 on sn-devel-104
* s3: Use wbcSidsToUnixIds in create_local_tokenVolker Lendecke2011-04-132-0/+106
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Fix Coverity ID 2470: STRAY_SEMICOLONVolker Lendecke2011-04-131-1/+1
| | | | | | | Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Apr 13 12:57:43 CEST 2011 on sn-devel-104
* libcli/ldap pull LIBCLI_LDAP_MESSAGE and LIBCLI_LDAP_NDR into a libraryAndrew Bartlett2011-04-131-1/+1
| | | | | | This reduces symbol duplication Andrew Bartlett
* s3: Fix Coverity ID 2472, UNINITVolker Lendecke2011-04-111-2/+1
| | | | | | | Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Mon Apr 11 17:14:35 CEST 2011 on sn-devel-104
* s3: Fix Coverity ID 2473, UNINITVolker Lendecke2011-04-111-2/+1
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3:passdb:pdb_ipa: fix a C++ implicit void * cast warningsMichael Adam2011-04-071-1/+2
|
* s3-pdb_ipa: Create DN for new objectSumit Bose2011-04-061-0/+18
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-pdb_ipa: Add ipasam_create_dom_group()Sumit Bose2011-04-061-29/+214
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-pdb_ipa: Add ipasam_create_user()Sumit Bose2011-04-061-44/+297
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-pdb_ipa: Detect IPA serverSumit Bose2011-04-061-1/+7
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-pdb_ipa: Use new smbldap_make_mod_blob() without a return valueSumit Bose2011-04-061-38/+9
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-ipasam: rename of smbldap_make_mod_blob to _smbldap_make_mod_blob.Günther Deschner2011-04-061-4/+4
| | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org>
* s3-pdb_ipa: Fix indentationSumit Bose2011-04-061-13/+12
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-libndr: add ../librpc/ndr/libndr.h include in some places.Günther Deschner2011-03-312-0/+2
| | | | Guenther
* s3-passdb: move LOOKUP_NAME_ flags to passdb where they belong to.Günther Deschner2011-03-301-0/+48
| | | | Guenther
* s3: only include lib/privileges.h where needed.Günther Deschner2011-03-301-0/+2
| | | | | | This finally removes the global lsa.h inclusion. Guenther