summaryrefslogtreecommitdiff
path: root/libds
Commit message (Collapse)AuthorAgeFilesLines
* libds: rename UF_MACHINE_ACCOUNT_MASK to UF_TRUST_ACCOUNT_MASKRalph Boehme2018-03-131-1/+1
| | | | | | | | The name UF_TRUST_ACCOUNT_MASK better reflects the use case and it's not yet used. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* flags.h: Introduce the 2016 function level constantGarming Sam2017-12-141-0/+1
| | | | | Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* Avoid including libds/common/roles.h in public loadparm.h header.Jelmer Vernooij2016-01-131-3/+3
| | | | | | Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-By: Andrew Bartlett <abartlet@samba.org> Reviewed-By: Stefan Metzmacher <metze@samba.org>
* dsdb: Add functional levels for 2012 and 2012R2Andrew Bartlett2015-10-201-1/+3
| | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* dsdb-samldb: Only allow known and settable userAccountControl bits to be setAndrew Bartlett2015-01-221-4/+13
| | | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=10993 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Garming Sam <garming@catalyst.net.nz> Pair-programmed-with: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* libds: UF_PARTIAL_SECRETS_ACCOUNT is a flag, not an account typeAndrew Bartlett2015-01-221-2/+1
| | | | | | | | | | | | | | | | This list should only be of the account exclusive account type bits. Note, this corrects the behaviour in samldb modifies of userAccountControl. This reverts 6cb91a8f33516a33210a25e4019f3f3fbbfe61f2 Bug: https://bugzilla.samba.org/show_bug.cgi?id=10993 Pair-programmed-with: Garming Sam <garming@catalyst.net.nz> Signed-off-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* libds: add UF_PARTIAL_SECRETS_ACCOUNT to UF_ACCOUNT_TYPE_MASKStefan Metzmacher2014-04-021-1/+2
| | | | | | Change-Id: Ie26520c37c393ab4d2e3c5782e3dca46d4d1f83c Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* lib/param: Create a seperate server role for "active directory domain ↵Andrew Bartlett2012-06-151-7/+3
| | | | | | | | | | | | | | | controller" This will allow us to detect from the smb.conf if this is a Samba4 AD DC which will allow smarter handling of (for example) accidentially starting smbd rather than samba. To cope with upgrades from existing Samba4 installs, 'domain controller' is a synonym of 'active directory domain controller' and new parameters 'classic primary domain controller' and 'classic backup domain controller' are added. Andrew Bartlett
* s3-auth: remove "security=server" (depricated since 3.6)Stefan Metzmacher2012-05-151-2/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | "security=server" has a lot of problems in the world with modern security (ntlmv2 and krb5). It was also not very reliable, as it needed a stable connection to the password server for the lifetime of the whole client connection! Please use "security=domain" or "security=ads" is you authentication against remote servers (domain controllers). metze -------------- / \ / REST \ / IN \ / PEACE \ / \ | SEC_SERVER | | security=server | | | | | | 12 May | | | | 2012 | *| * * * | * _________)/\\_//(\/(/\)/\//\/\///|_)_______
* s3-auth: Remove security=share (depricated since 3.6).Andrew Bartlett2012-03-041-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes security=share, which Samba implemented by matching the per-share password provided by the client in the Tree Connect with a selection of usernames supplied by the client, the smb.conf or guessed from the environment. The rationale for the removal is that for the bulk of security=share users, we just we need a very simple way to run a 'trust the network' Samba server, where users mark shares as guest ok. This is still supported, and the smb.conf options are documented at https://wiki.samba.org/index.php/Public_Samba_Server At the same time, this closes the door on one of the most arcane areas of Samba authentication. Naturally, full user-name/password authentication remain available in security=user and above. This includes documentation updates for username and only user, which now only do a small amount of what they used to do. Andrew Bartlett -------------- / \ / REST \ / IN \ / PEACE \ / \ | SEC_SHARE | | security=share | | | | | | 5 March | | | | 2012 | *| * * * | * _________)/\\_//(\/(/\)/\//\/\///|_)_______
* Intersite KCC flagsDave Craft2012-01-141-0/+5
| | | | | | NTDSSITELINK option flags added Signed-off-by: Andrew Tridgell <tridge@samba.org>
* libds: Make server role values explicit for easier debuggingAndrew Bartlett2011-11-171-1/+6
|
* param: calculate server role from security, and security from server roleAndrew Bartlett2011-11-171-1/+1
| | | | | | | | | | | | | This allows smb.conf files from either the samba3 or samba4 tradition to come to the same value of server role, using the information in the smb.conf file. This is important so that tools like 'net getlocalsid' work against a Samba4 AD installation (yes, users have tried this). Andrew Bartlett Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>
* roles: Add ROLE_AUTO to indicate that the server role is calculatedAmitay Isaacs2011-11-171-1/+4
|
* s4:objectclass_attrs LDB module - implement the dSHeuristics length checks ↵Matthias Dieter Wallnöfer2011-10-271-1/+9
| | | | | | | | correctly Consider bug #8489 Reviewed-by: abartlet
* NTDSConnection and NTDSA Site setting flagsDave Craft2011-07-141-0/+20
| | | | | | | | | Flags that were missing from flags.h or were incorrectly defined inline to the kcc_topology.c code (and thus unusable elsewhere). These are the NTDSConnection and NTDSDSA Site settings flags. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util Remove samba-util-common!Andrew Bartlett2011-06-211-1/+1
| | | | | | | All of this code is now in common, so we don't need the second '-common' library any more! Andrew Bartlett
* libds/common/flag_mapping.h: fix licence/copyrightGünther Deschner2011-06-101-0/+22
| | | | Guenther
* libds: moved enum security_types to a common headerAndrew Tridgell2011-05-081-0/+3
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* libds: added roles.h for server rolesAndrew Tridgell2011-05-032-0/+43
| | | | | | | this will allow us to move the server roles in common, which will make it much easier to mix s3/s4 calls in the one C file Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* libds: Make flag_mapping a libraryAndrew Bartlett2011-04-131-3/+5
| | | | | | | This is a tiny library, but otherwise the functions end up in multiple other libraries. Andrew Bartlett
* libds/common/flag_mapping.c - fix another build dependencySean Finney2011-03-011-0/+1
| | | | | | | Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Tue Mar 1 18:53:40 CET 2011 on sn-devel-104
* Fix some typesJelmer Vernooij2011-02-281-1/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Feb 28 23:30:06 CET 2011 on sn-devel-104
* build: moved libds/common/flag_mapping.c into a common subsystemAndrew Tridgell2011-02-243-0/+17
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* libds: added mS-DS-ReplicatesNCReason flagsAndrew Tridgell2010-11-281-1/+11
| | | | these define why a KCC connection was made
* s4:libds/common/flags.h - fix typoMatthias Dieter Wallnöfer2010-10-151-1/+1
|
* libds: added more UF_ -> ACB_ flags mappingsAndrew Tridgell2010-09-292-2/+5
| | | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* libds:flag_mapping.c - support also the default read-only DC primary groupMatthias Dieter Wallnöfer2010-09-241-1/+3
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* libds:flag_mapping.c - introduce a call which maps the "userAccountControl" ↵Matthias Dieter Wallnöfer2010-09-121-0/+13
| | | | to the default primary group RID
* libds:flag_mapping.c - fix counter variable typesMatthias Dieter Wallnöfer2010-09-121-2/+3
|
* Added values for the flags in dSHeuristicsNadezhda Ivanova2010-08-261-0/+23
| | | | | These specify the character position, while the character value of that character controls behavior
* s4-dsdb: added support for UF_PARTIAL_SECRETS_ACCOUNTAndrew Tridgell2010-08-171-0/+1
| | | | | | | when this is in user_account_control the account is a RODC, and we need to set the primaryGroupID to be DOMAIN_RID_READONLY_DCS Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* libds/common/flags.h - fix a comment's typoMatthias Dieter Wallnöfer2010-08-101-1/+1
|
* libds:common Remove DS_DC_* domain functionality flagsAndrew Bartlett2010-06-231-8/+4
| | | | | | These are just a subset of the DS_DOMAIN_ functionality flags, are compared and often confused with each other. Just make them one set. Andrew Bartlett
* flags.h - fix comment for "GTYPE_SECURITY_UNIVERSAL_GROUP" constantMatthias Dieter Wallnöfer2010-05-261-1/+1
|
* Replaced DS_FLAG_ATTR_IS_CRITICAL with SCHEMA_FLAG_ATTR_IS_CRITICAL.Nadezhda Ivanova2010-05-031-3/+0
|
* Added a couple of systemFlags, needed for determining filtered attributes.Nadezhda Ivanova2010-05-031-0/+4
|
* s4-drs: Do not allow system-critical attributes to be RODC filteredFernando J V da Silva2010-04-221-0/+3
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* libds: added recyclebin feature GUIDAndrew Tridgell2010-02-121-0/+3
|
* libds: added GUIDs for wellknown AD objectsAndrew Tridgell2009-12-161-0/+13
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* libds: added nTDSDSA options flagsAndrew Tridgell2009-10-151-0/+7
|
* libds: fixed spelling errorAndrew Tridgell2009-09-281-1/+1
|
* s4-drs: add defines for replication flags on attributesAndrew Tridgell2009-09-241-0/+3
|
* libds/common/flags: variousMatthias Dieter Wallnöfer2009-09-172-28/+36
| | | | | | | | - Reorders the header file to have the order "userAccountFlags", "groupType", "sAMAccountType" (matches the order in the flag_mapping.c and samldb module) - Fixes the group account flags properly up - Fixes the flags for "domain/forestFunctionality" and "domainControllerFunctionality" up
* libds: merge the UF<->ACB flag mapping functions.Günther Deschner2009-07-131-0/+143
| | | | Guenther
* libds: share UF_ flags between samba3 and 4.Günther Deschner2009-07-131-0/+177
Guenther