summaryrefslogtreecommitdiff
path: root/source3/passdb
AgeCommit message (Collapse)AuthorFilesLines
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
2011-03-30s3-passdb: add passdb.h where needed.Günther Deschner20-0/+20
Guenther
2011-03-30s3-passdb: move passdb headers to passdb/proto.h.Günther Deschner1-0/+364
Guenther
2011-03-30s3: create_builtin_users/administrators belongs to passdb not auth.Günther Deschner1-0/+158
Guenther
2011-03-30s3-includes: only include system/filesys.h when needed.Günther Deschner5-0/+5
Guenther
2011-03-30s3-includes: only include system/passwd.h when needed.Günther Deschner4-0/+4
Guenther
2011-03-30s3-winbind: remove global inclusion of libwbclient.Günther Deschner3-0/+3
Guenther
2011-03-30lib/util/util_pw: share more code between lib/util/util_pw.c and ↵Günther Deschner2-0/+2
source3/lib/username.c Guenther
2011-03-30lib/util/util_pw: share sys_get{pw,gr} group of calls.Günther Deschner2-0/+2
Guenther
2011-03-27s3: Fix Coverity ID 976: BAD_SIZEOFVolker Lendecke1-1/+1
2011-03-27s3: Fix Coverity ID 513: UNINITVolker Lendecke1-1/+1
2011-03-27s3: Fix Coverity ID 2328: FORWARD_NULLVolker Lendecke1-0/+3
Make startsmbfilepwent robust against an invalid open type
2011-03-24s3-ldapsam: fix ldapsam_create_user() with existing posix accounts.Günther Deschner1-1/+1
We were not taking into account the existing posix attributes and thus failed while trying to add a 2nd uid attribute. Found by Sumit. Guenther
2011-03-24charcnv: removed the allow_badcharcnv and allow_bad_conv options to ↵Andrew Tridgell1-3/+2
convert_string*() we shouldn't accept bad multi-byte strings, it just hides problems Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Mar 24 01:47:26 CET 2011 on sn-devel-104
2011-03-17Fix compiler warning in debug message.Jeremy Allison1-1/+1
2011-03-16s3: Fix Coverity ID 1034, CHECKED_RETURNVolker Lendecke1-3/+1
In all other places we check the result of secrets_init.
2011-03-16s3: Fix a cut&paste error in pdb_ads_connectVolker Lendecke1-1/+1
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Mar 16 08:22:28 CET 2011 on sn-devel-104
2011-03-15s3: Read uidNumber/gidNumber in pdb_ads_sid_to_idVolker Lendecke1-29/+45
Question: How shall we allocate those? Something like the rid allocator? Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Mar 15 09:59:55 CET 2011 on sn-devel-104