summaryrefslogtreecommitdiffstats
path: root/source4/dsdb
Commit message (Collapse)AuthorAgeFilesLines
* util: rewrite dlinklist.h so that DLIST_ADD_END() is O(1)Andrew Tridgell2010-02-101-2/+1
| | | | | | | | | | | | | | This changes the meaning of the ->prev pointer in our doubly linked lists to point at the end of the list from the front of the list. That allows us to implement DLIST_ADD_END() and related functions in O(1) time, which can be a huge saving in many places in Samba. This also means that the 'type' argument to various DLIST_*() macros is no longer needed, but I have left it in for now to keep the patchset small, which will make it easier to revert if any problems are found. In the future we should remove the 'type' arguments. (jra. Move the one use of DLIST_TAIL over to the new macros).
* s4-dsdb: update repl_meta_data.c to use new DLIST_ macrosJeremy Allison2010-02-101-3/+2
|
* s4:subtree_delete - "NULL" as format string isn't allowed on FreeBSDMatthias Dieter Wallnöfer2010-02-081-2/+3
| | | | | | | I changed the format string into "(objectClass=*)" which should be an equivalent expression for choosing all available objects. Consider bug 7115 for the issue.
* s4/drs: propagate DRS_ extension flags in code baseKamen Mazdrashki2010-02-051-1/+1
|
* s4:mark the SYSTEM control always as non-criticalMatthias Dieter Wallnöfer2010-02-041-0/+29
| | | | | It is needed to not break the various LDAP backends. For reference look at bug #7040.
* Change uint_t to unsigned int in source4Matt Kraai2010-02-022-10/+10
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4-drs: Reads uSNUrgent and sets Urgent Replication Bit for DS_ReplicaSync ↵Fernando J V da Silva2010-01-282-7/+24
| | | | | | | | | | | when necessary If an urgent replication is necessary, so the uSNUrgent stored is equal to the uSNHighest stored, then when sending the DS_ReplicaSync message it sets the DRSUAPI_DRS_SYNC_URGENT bit on DRS_OPTIONS. Signed-off-by: Fernando J V da Silva <fernandojvsilva@yahoo.com.br> Signed-off-by: Andrew Tridgell <tridge@samba.org>
* idl: switched to using the WSPP names for the 'neighbour' DRS optionsAndrew Tridgell2010-01-181-3/+3
| | | | | | | The documentation shows that all these functions in fact use the same flags variable type. To be consistent between functions, and to allow easy reference to the WSPP docs, it is better for us to also use this generic DrsOptions bitfield rather than one per operations.
* s4-dsdb: isGlobalCatalogReady should be shown by defaultAndrew Tridgell2010-01-171-1/+1
| | | | | This caused repadmin.exe to crash. Thanks to Hongwei for tracking this down for us.
* s4-kcc: added DsReplicaGetInfo pending ops callAndrew Tridgell2010-01-161-1/+30
| | | | Just return 0 pending ops for now
* s4-kcc: added DsReplicaGetInfo CURSORS2 levelAndrew Tridgell2010-01-161-0/+29
|
* s4-idl: in DsReplicaGetInfo unknown2 is actually an enumeration_contextAndrew Tridgell2010-01-161-2/+2
|
* s4-kcc: added support for CURSORS info level in DsReplicaGetInfoAndrew Tridgell2010-01-161-3/+34
|
* s4-dsdb: take advantage of local cursor and sortAndrew Tridgell2010-01-161-37/+0
| | | | | in getncchanges and repl task we don't need the extra load and sort any more.
* s4-dsdb: add our local cursor and sort in dsdb_load_udv_*()Andrew Tridgell2010-01-161-19/+65
| | | | This makes things much simpler for the callers
* s4-dsdb: use dsdb_load_udv_v2() in repl taskAndrew Tridgell2010-01-161-27/+2
|
* s4-dsdb: added dsdb_load_udv_v2() and dsdb_load_udv_v1()Andrew Tridgell2010-01-161-0/+82
|
* s4-kcc: simplify the ReplicaGetInfo implementation a bitAndrew Tridgell2010-01-161-53/+17
|
* s4-kcc: squash a warningAndrew Tridgell2010-01-161-0/+2
|
* s4-drs: framework for DsGetReplInfo(), includes the DS_REPL_INFO_NEIGHBORS ↵Andrew Tridgell2010-01-163-3/+507
| | | | | | | | | | infoType. This patch includes the framework for the implementation of all infoTypes of the DsGetReplInfo() call, and includes the implementation for the first one, the DS_REPL_INFO_NEIGHBORS. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-dsdb: added isGlobalCatalogReadyAndrew Tridgell2010-01-161-0/+12
| | | | needed for dcdiag.exe
* s4-drepl: switch drepl over to using the generic DRS options flagsAndrew Tridgell2010-01-142-7/+5
| | | | WSPP uses a single set of flags for all these DRS operations.
* s4-drs: Uses dsdb_load_partition_usn() with urgent_uSN in s4 codeFernando J V da Silva2010-01-141-1/+1
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-drs: Store uSNUrgent for Urgent ReplicationFernando J V da Silva2010-01-144-18/+121
| | | | | | | | When a object or attribute is created/updated/deleted, according to [MS-ADTS] 3.1.1.5.1.6, it stores the uSNUrgent on @REPLCHANGED for the partitions that it belongs. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4:dsdb: use validate_update moduleStefan Metzmacher2010-01-131-0/+1
| | | | metze
* s4:dsdb/schema: add dsdb_syntax_OID_validate_ldb()Stefan Metzmacher2010-01-131-13/+50
| | | | | | | | This is a very heavy weight way of checking this syntax, but it's very complex and using the existing function should be ok for now. We can optimize it later. metze
* s4:dsdb/schema: add dsdb_syntax_DN_STRING_validate_ldb()Stefan Metzmacher2010-01-131-1/+48
| | | | metze
* s4:dsdb/schema: add dsdb_syntax_DN_BINARY_validate_ldb()Stefan Metzmacher2010-01-131-2/+49
| | | | metze
* s4:dsdb/schema: add dsdb_syntax_DN_validate_ldb()Stefan Metzmacher2010-01-131-1/+139
| | | | metze
* s4:dsdb/schema: add dsdb_syntax_PRESENTATION_ADDRESS_validate_ldb()Stefan Metzmacher2010-01-131-1/+12
| | | | metze
* s4:dsdb/schema: add dsdb_syntax_UNICODE_validate_ldb()Stefan Metzmacher2010-01-131-1/+69
| | | | metze
* s4:dsdb/schema: add dsdb_syntax_DATA_BLOB_validate_ldb()Stefan Metzmacher2010-01-131-8/+61
| | | | metze
* s4:dsdb/schema: add dsdb_syntax_NTTIME_validate_ldb()Stefan Metzmacher2010-01-131-1/+37
| | | | metze
* s4:dsdb/schema: add dsdb_syntax_NTTIME_UTC_validate_ldb()Stefan Metzmacher2010-01-131-1/+49
| | | | metze
* s4:dsdb/schema: add dsdb_syntax_INT64_validate_ldb()Stefan Metzmacher2010-01-131-1/+47
| | | | metze
* s4:dsdb/schema: add dsdb_syntax_INT32_validate_ldb()Stefan Metzmacher2010-01-131-1/+48
| | | | metze
* s4:dsdb/schema: add dsdb_syntax_BOOL_validate_ldb()Stefan Metzmacher2010-01-131-1/+30
| | | | metze
* s4:dsdb: add validate_update moduleStefan Metzmacher2010-01-132-1/+130
| | | | metze
* s4:dsdb/schema: add inftrastructure for dsdb_validate_ldb()Stefan Metzmacher2010-01-132-0/+61
| | | | metze
* s4:dsdb/schema: add dsdb_syntax_DN_STRING_* wrappersStefan Metzmacher2010-01-131-2/+30
| | | | metze
* s4:dsdb/resolve_oids: also resolve oid in search attribute listStefan Metzmacher2010-01-131-4/+55
| | | | metze
* s4:dsdb/schema_load: add a TODO about schema reloadingStefan Metzmacher2010-01-131-1/+11
| | | | metze
* s4:dsdb/repl: reorder dreplsrv_op_notify* functionsStefan Metzmacher2010-01-131-53/+50
| | | | | | | This make the whole async dreplsrv_op_notify_send/recv() readable. metze
* s4:dsdb/repl: change dreplsrv_op_notify_send/recv() to tevent_reqStefan Metzmacher2010-01-132-70/+74
| | | | metze
* s4:dsdb/common: fix major bug in lsa_BinaryString to ldb_val conversation.Stefan Metzmacher2010-01-131-2/+2
| | | | | | | | In lsa_BinaryString length and size are byte counts! TODO: we may need to do byte order conversion in this functions too... metze
* s4:dsdb/common: let samdb_msg_add_uint() call samdb_msg_add_int()Stefan Metzmacher2010-01-131-2/+1
| | | | | | | This is important as LDAP servers always play with int32 values and we have to encode 0x80000000 as "-2147483648" instead of "2147483648". metze
* s4:dsdb/common: let samdb_msg_add_uint64() call samdb_msg_add_int64()Stefan Metzmacher2010-01-131-2/+1
| | | | | | | | This is important as LDAP servers always play with int64 values and we have to encode 0x8000000000000000LL as "-9223372036854775808" instead of "9223372036854775808". metze
* s4:repl_meta_data - Transform a "1" into a "true" on a boolean variableMatthias Dieter Wallnöfer2010-01-101-1/+1
|
* s4-dsdb: added samdb_domain_sid_cache_only()Andrew Tridgell2010-01-101-1/+8
|
* s4-drs: instanceType is always sent, regardless of UDV valuesAndrew Tridgell2010-01-091-4/+6
|