summaryrefslogtreecommitdiff
path: root/source3/passdb
AgeCommit message (Collapse)AuthorFilesLines
2011-07-19First part of fix for bug 8310 - toupper_ascii() is broken on big-endian systemsJeremy Allison1-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.
2011-07-08lib/util Move bitmap.c to lib/utilAndrew Bartlett1-0/+1
2011-07-04s3-build link passdb modules against libpassdbAndrew Bartlett1-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
2011-07-04s3-build allow_undefined_symbols=False is the default nowAndrew Bartlett1-1/+0
2011-06-28s3-waf: add some missing tdb dependencies.Günther Deschner1-1/+1
Guenther
2011-06-21lib/util Remove samba-util-common!Andrew Bartlett1-3/+3
All of this code is now in common, so we don't need the second '-common' library any more! Andrew Bartlett
2011-06-20tdb_compat: Higher level API fixes.Rusty Russell1-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>
2011-06-12s3-passdb: Implement new pdb trust calls for the default backendSumit Bose1-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
2011-06-09s3-param Remove special case for global_myname(), rename to lp_netbios_name()Andrew Bartlett2-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
2011-06-09s3-talloc Change TALLOC_ZERO_ARRAY() to talloc_zero_array()Andrew Bartlett2-3/+3
Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_ARRAY isn't standard talloc.
2011-06-09s3-talloc Change TALLOC_ZERO_P() to talloc_zero()Andrew Bartlett3-3/+3
Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_P isn't standard talloc.
2011-06-09s3-talloc Change TALLOC_P() to talloc()Andrew Bartlett4-4/+4
Using the standard macro makes it easier to move code into common, as TALLOC_P isn't standard talloc.
2011-06-09s3-talloc Change TALLOC_ARRAY() to talloc_array()Andrew Bartlett6-15/+15
Using the standard macro makes it easier to move code into common, as TALLOC_ARRAY isn't standard talloc.
2011-06-09s3-talloc Change TALLOC_REALLOC_ARRAY() to talloc_realloc()Andrew Bartlett1-1/+1
Using the standard macro makes it easier to move code into common, as TALLOC_REALLOC_ARRAY isn't standard talloc. Andrew Bartlett
2011-06-09s3:passdb/pdb_samba4.c - remove unused variableMatthias Dieter Wallnöfer1-1/+0
Reviewed-by: Tridge
2011-06-09s3:passdb/pdb_samba4.c - fix a format specifier warningMatthias Dieter Wallnöfer1-1/+1
Reviewed-by: Tridge
2011-06-06s3-passdb use new loadparm_init_s3 rather than reloading the smb.confAndrew Bartlett1-14/+2
2011-05-31s3:passdb: add GPL/copyright header to machine_sid.hMichael Adam1-0/+21
2011-05-31s3:passdb/proto.h: add _PASSDB_PROTO_H_ guardMichael Adam1-0/+4
2011-05-31s3:passdb/proto.h: add GPL/copyright comment headerMichael Adam1-0/+36
2011-05-25Fix numerous missing dependencies in WAF build scriptsSean Finney1-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
2011-05-24Fix bug #7054 - X account flag does not work when pwdlastset is 0.Jeremy Allison1-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.
2011-05-18s3-lib Replace StrnCaseCmp() with strncasecmp_m()Andrew Bartlett1-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
2011-05-08s3-passdb: added pdb_samba4Andrew Bartlett2-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>
2011-05-08s3-passdb Redirect domain GUID and SID queries to the passdb stackAndrew Bartlett1-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
2011-05-06s3: only include tdb headers where needed.Günther Deschner5-0/+5
Guenther
2011-05-06More const fixes. Remove CONST_DISCARD.Jeremy Allison1-6/+6
2011-05-04Simple +1 changes in hardcoded lengths when changing from safe_strcpy to ↵Jeremy Allison1-3/+3
strlcpy.
2011-04-14s3: Fix Coverity ID 2471: UNINITVolker Lendecke1-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
2011-04-13s3: Use wbcSidsToUnixIds in create_local_tokenVolker Lendecke2-0/+106
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-04-13s3: Fix Coverity ID 2470: STRAY_SEMICOLONVolker Lendecke1-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
2011-04-13libcli/ldap pull LIBCLI_LDAP_MESSAGE and LIBCLI_LDAP_NDR into a libraryAndrew Bartlett1-1/+1
This reduces symbol duplication Andrew Bartlett
2011-04-11s3: Fix Coverity ID 2472, UNINITVolker Lendecke1-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
2011-04-11s3: Fix Coverity ID 2473, UNINITVolker Lendecke1-2/+1
Signed-off-by: Günther Deschner <gd@samba.org>
2011-04-07s3:passdb:pdb_ipa: fix a C++ implicit void * cast warningsMichael Adam1-1/+2
2011-04-06s3-pdb_ipa: Create DN for new objectSumit Bose1-0/+18
Signed-off-by: Günther Deschner <gd@samba.org>
2011-04-06s3-pdb_ipa: Add ipasam_create_dom_group()Sumit Bose1-29/+214
Signed-off-by: Günther Deschner <gd@samba.org>
2011-04-06s3-pdb_ipa: Add ipasam_create_user()Sumit Bose1-44/+297
Signed-off-by: Günther Deschner <gd@samba.org>
2011-04-06s3-pdb_ipa: Detect IPA serverSumit Bose1-1/+7
Signed-off-by: Günther Deschner <gd@samba.org>
2011-04-06s3-pdb_ipa: Use new smbldap_make_mod_blob() without a return valueSumit Bose1-38/+9
Signed-off-by: Günther Deschner <gd@samba.org>
2011-04-06s3-ipasam: rename of smbldap_make_mod_blob to _smbldap_make_mod_blob.Günther Deschner1-4/+4
Guenther Signed-off-by: Günther Deschner <gd@samba.org>
2011-04-06s3-pdb_ipa: Fix indentationSumit Bose1-13/+12
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-31s3-libndr: add ../librpc/ndr/libndr.h include in some places.Günther Deschner2-0/+2
Guenther
2011-03-30s3-passdb: move LOOKUP_NAME_ flags to passdb where they belong to.Günther Deschner1-0/+48
Guenther
2011-03-30s3: only include lib/privileges.h where needed.Günther Deschner1-0/+2
This finally removes the global lsa.h inclusion. Guenther
2011-03-30s3-passdb: move lsa_dom_info and lsa_name_info out of smb.h into passdb.Günther Deschner1-0/+16
Guenther
2011-03-30s3-passdb: move util_builtin.c out of passdb.Günther Deschner1-125/+0
Guenther
2011-03-30s3-passdb: move util_unixsids.c out of passdb.Günther Deschner2-130/+0
Guenther
2011-03-30s3-passdb: move util_wellknown.c out of passdb.Günther Deschner2-183/+0
Guenther
2011-03-30s3-passdb: add machine_sid.h and lookup_sid.hGünther Deschner3-40/+40
Guenther