1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

35 Commits

Author SHA1 Message Date
Andrew Bartlett
a01a186a6c libds: Make server role values explicit for easier debugging 2011-11-17 00:34:09 +01:00
Andrew Bartlett
9524e2fce1 param: calculate server role from security, and security from server role
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>
2011-11-17 00:34:08 +01:00
Amitay Isaacs
299ed45670 roles: Add ROLE_AUTO to indicate that the server role is calculated 2011-11-17 00:34:08 +01:00
Matthias Dieter Wallnöfer
6287d0d61c s4:objectclass_attrs LDB module - implement the dSHeuristics length checks correctly
Consider bug #8489

Reviewed-by: abartlet
2011-10-27 18:52:29 +02:00
Dave Craft
b52246bf2f NTDSConnection and NTDSA Site setting flags
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>
2011-07-14 07:05:09 +10:00
Andrew Bartlett
5db74b9607 lib/util Remove samba-util-common!
All of this code is now in common, so we don't need the second
'-common' library any more!

Andrew Bartlett
2011-06-21 09:36:22 +10:00
Günther Deschner
76f0bf61ef libds/common/flag_mapping.h: fix licence/copyright
Guenther
2011-06-10 15:11:45 +02:00
Andrew Tridgell
8b2ba64d60 libds: moved enum security_types to a common header
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-05-08 10:56:27 +02:00
Andrew Tridgell
b1055763d8 libds: added roles.h for server roles
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>
2011-05-03 07:37:07 +02:00
Andrew Bartlett
cec7c53da9 libds: Make flag_mapping a library
This is a tiny library, but otherwise the functions end up in multiple
other libraries.

Andrew Bartlett
2011-04-13 11:47:37 +10:00
Sean Finney
e1e3b5c429 libds/common/flag_mapping.c - fix another build dependency
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
2011-03-01 18:53:40 +01:00
Jelmer Vernooij
59a077d8f5 Fix some types
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Feb 28 23:30:06 CET 2011 on sn-devel-104
2011-02-28 23:30:06 +01:00
Andrew Tridgell
94c04b10db build: moved libds/common/flag_mapping.c into a common subsystem
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-24 11:57:48 +11:00
Andrew Tridgell
ed598ac99b libds: added mS-DS-ReplicatesNCReason flags
these define why a KCC connection was made
2010-11-28 00:16:37 +11:00
Matthias Dieter Wallnöfer
d099f86a37 s4:libds/common/flags.h - fix typo 2010-10-15 08:41:33 +02:00
Andrew Tridgell
9a58cd12b4 libds: added more UF_ -> ACB_ flags mappings
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2010-09-29 09:49:16 -07:00
Matthias Dieter Wallnöfer
4492d0a631 libds:flag_mapping.c - support also the default read-only DC primary group
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-09-24 09:25:42 +10:00
Matthias Dieter Wallnöfer
1e52e72e40 libds:flag_mapping.c - introduce a call which maps the "userAccountControl" to the default primary group RID 2010-09-12 19:23:06 +02:00
Matthias Dieter Wallnöfer
2fb111f731 libds:flag_mapping.c - fix counter variable types 2010-09-12 19:23:06 +02:00
Nadezhda Ivanova
0de795414e Added values for the flags in dSHeuristics
These specify the character position, while the character value of that character
controls behavior
2010-08-26 17:08:01 +03:00
Andrew Tridgell
4e9daa0f03 s4-dsdb: added support for UF_PARTIAL_SECRETS_ACCOUNT
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>
2010-08-17 21:21:50 +10:00
Matthias Dieter Wallnöfer
3b1d74f4b6 libds/common/flags.h - fix a comment's typo 2010-08-10 19:08:56 +02:00
Andrew Bartlett
c4482bf53e libds:common Remove DS_DC_* domain functionality flags
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
2010-06-23 20:10:03 +10:00
Matthias Dieter Wallnöfer
c1e8838bf5 flags.h - fix comment for "GTYPE_SECURITY_UNIVERSAL_GROUP" constant 2010-05-26 17:43:18 +02:00
Nadezhda Ivanova
e2e39117bc Replaced DS_FLAG_ATTR_IS_CRITICAL with SCHEMA_FLAG_ATTR_IS_CRITICAL. 2010-05-03 16:47:56 +02:00
Nadezhda Ivanova
54e68b4949 Added a couple of systemFlags, needed for determining filtered attributes. 2010-05-03 15:38:46 +02:00
Fernando J V da Silva
c023fc217e s4-drs: Do not allow system-critical attributes to be RODC filtered
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-04-22 19:36:14 +10:00
Andrew Tridgell
76a2e936a0 libds: added recyclebin feature GUID 2010-02-12 01:08:11 +11:00
Andrew Tridgell
b7a74aca5e libds: added GUIDs for wellknown AD objects
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2009-12-16 20:56:22 +11:00
Andrew Tridgell
424c464b7f libds: added nTDSDSA options flags 2009-10-15 08:20:36 +11:00
Andrew Tridgell
9cef5f0a53 libds: fixed spelling error 2009-09-28 10:16:28 +10:00
Andrew Tridgell
547a6da58e s4-drs: add defines for replication flags on attributes 2009-09-24 10:37:24 -07:00
Matthias Dieter Wallnöfer
7c71370a0f libds/common/flags: various
- 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
2009-09-17 12:02:58 +02:00
Günther Deschner
05fbe0c7f7 libds: merge the UF<->ACB flag mapping functions.
Guenther
2009-07-13 15:36:07 +02:00
Günther Deschner
8db45607f8 libds: share UF_ flags between samba3 and 4.
Guenther
2009-07-13 15:36:06 +02:00