summaryrefslogtreecommitdiff
path: root/source4/lib
AgeCommit message (Collapse)AuthorFilesLines
2010-03-16s4:registry - use a macro for reverse byte orderMatthias Dieter Wallnöfer2-10/+4
2010-03-16s4:dsdb Change dsdb_get_schema() callers to use new talloc argumentAndrew Bartlett1-1/+1
This choses an appropriate talloc context to attach the schema too, long enough lived to ensure it does not go away before the operation compleates. Andrew Bartlett
2010-03-16s4:registry - check also for other registry value types in the generic testMatthias Dieter Wallnöfer1-0/+16
2010-03-16s4:registry - add a test for the "REG_DWORD_BIG_ENDIAN" datatypeMatthias Dieter Wallnöfer1-0/+14
2010-03-16s4:registry - introduce the "REG_DWORD_BIG_ENDIAN" datatypeMatthias Dieter Wallnöfer2-4/+26
It's like the normal REG_DWORD type but the byte order swapped
2010-03-15s4:registry - rpc - don't crash when communication partner isn't availableMatthias Dieter Wallnöfer1-4/+4
2010-03-15s4:registry - util.c - treat unsupported and binary values as the same in ↵Matthias Dieter Wallnöfer1-17/+5
the conversion functions We don't need to provide an extra representation for all available registry types. But if we treat all unsupported types as binary we also get our tools (regtree, regshell, regdiff...) working with them in a basic manner.
2010-03-15s4:registry - util.c - move the "REG_NONE" case in the conversion functions ↵Matthias Dieter Wallnöfer1-6/+6
on top of the switch (As in the "reg_value_types" structure)
2010-03-15s4:registry - local testsuite - add a test for REG_QWORDMatthias Dieter Wallnöfer1-1/+15
Change also here to fixed-length HEX values output to test for the right representation.
2010-03-15s4:registry - fix up the output of hexadecimal valuesMatthias Dieter Wallnöfer2-14/+6
Use a fixed-length representation to avoid platform-specific issues.
2010-03-15s4:registry - add support for REG_QWORD valuesMatthias Dieter Wallnöfer2-1/+82
Basically the same as REG_DWORD but these are eight byte long.
2010-03-14s4:registry - util.c - add harder checks for inputs on "reg_val_data_string"Matthias Dieter Wallnöfer1-12/+16
("NULL" result is error on most data types).
2010-03-14s4:registry - ldb.c - provide a mechanism for storing UTF8/binary REG_DWORD ↵Matthias Dieter Wallnöfer1-12/+47
values We need to support this as gd's WINREG torture test shows.
2010-03-14s4:registry - ldb.c - provide a mechansim for storing UTF8/binary ↵Matthias Dieter Wallnöfer1-7/+39
REG_SZ/REG_EXPAND_SZ values We need to support this as gd's WINREG torture test shows.
2010-03-14s4:registry - ldb.c - fix up a strange LDB filterMatthias Dieter Wallnöfer1-1/+1
2010-03-14s4:registry - ldb.c - fix up the memory handling in "reg_ldb_unpack_value"Matthias Dieter Wallnöfer1-3/+8
Don't substitute existing data blobs with new ones and make sure, that the result objects in the data blob don't have memory dependencies of the LDB value input.
2010-03-14s4:registry - ldb.c - check more for possible "Out of memory" circumstancesMatthias Dieter Wallnöfer1-4/+10
2010-03-14s4:registry - ldb.c - remove superfluous "query" variableMatthias Dieter Wallnöfer1-4/+2
2010-03-14s4:registry - ldb.c - Consider result values in "reg_ldb_pack_value"Matthias Dieter Wallnöfer1-17/+59
Break on errors and return NULL and otherwise the message pointer.
2010-03-14s4:registry - ldb.c - Move the "val" structureMatthias Dieter Wallnöfer1-3/+5
Move it into the REG_SZ/REG_EXPAND_SZ case block since it's used only there. Plus convert it from static into dynamic talloc'ed.
2010-03-12s4:lib/registry/rpc: convert to use dcerpc_binding_handle stubsStefan Metzmacher1-16/+17
metze
2010-03-12s4:dcom: add a comment about unused code.Stefan Metzmacher1-1/+1
metze
2010-03-11winreg: add winreg_KeyType enum.Günther Deschner1-1/+1
Guenther
2010-03-11s4-registry: add all winreg types to reg_value_types table.Günther Deschner1-3/+11
Guenther
2010-03-11s4:lib/socket Don't go via a string when resolving addresses in connect_multiAndrew Bartlett1-28/+20
This also removes the special case for IP addresses, and leaves that to the code in the resolver library. Andrew Bartlett
2010-03-11s4:lib/socket Add function to set a port on the socket addressAndrew Bartlett2-0/+14
2010-03-10s4:registry/ldb.c - if "name" isn't set we should return WERR_INVALID_PARAMMatthias Dieter Wallnöfer1-1/+5
2010-03-10s4:lib/registry/ldb.c - fix up registry backend to be more robustMatthias Dieter Wallnöfer1-9/+5
This should let the new WINREG tests written by gd at least pass against us.
2010-03-09Fix typo and convert spaces to tabsSimo Sorce1-4/+4
2010-03-09s4:ldb fix escape parsingSimo Sorce1-2/+24
sscanf can return also on short reads, in this case an invalid escape sequence like '\1k' would be accepted, returning 1 as value and swallowing the 'k'. Use an auxiliar function to validate and convert hex escapes.
2010-03-09Fixed a bug in acl tests - python error when we create user/group/ou with a ↵Nadezhda Ivanova1-23/+23
descriptor.
2010-03-09Added a check for permissions to modify the RDN attribute on rename.Nadezhda Ivanova1-0/+32
Necessary because rdn module will be moved lower than acl in the stack.
2010-03-08LDB:asq module - change counters to "unsigned" where appropriateMatthias Dieter Wallnöfer1-4/+5
2010-03-08LDB:sort module - change counters to "unsigned" where appropriateMatthias Dieter Wallnöfer1-4/+5
2010-03-08LDB:rdn name module - change counters to "unsigned" where appropriateMatthias Dieter Wallnöfer1-2/+3
2010-03-08LDB:paged searches module - change counters to "unsigned" where appropriateMatthias Dieter Wallnöfer1-2/+2
2010-03-08LDB:paged results module - change counters to "unsigned" where appropriateMatthias Dieter Wallnöfer1-4/+4
2010-03-08LDB:common - Change counters to "unsigned" where appropriateMatthias Dieter Wallnöfer11-67/+76
To count LDB objects use variables of type "unsigned (int)" or "long long int" on binary or downto searches. To count characters in strings use "size_t". To calculate differences between pointers use "ptrdiff_t".
2010-03-08s4:LDB TDB index code - reintroduce accidentally removed code partMatthias Dieter Wallnöfer1-1/+3
This was removed by 95d726f3018ef5d249f89d56bde24b7ee0c24ecf. Sorry.
2010-03-08s4:ldb_ldap.c - fix indentationMatthias Dieter Wallnöfer1-1/+1
2010-03-08LDB:TDB backend - change counter variables to "unsigned" where appropriateMatthias Dieter Wallnöfer5-16/+19
2010-03-08LDB:SQLITE3 backend - change counter variables to "unsigned" where appropriateMatthias Dieter Wallnöfer1-8/+10
2010-03-08LDB:LDAP backend - change a counter variable to "unsigned"Matthias Dieter Wallnöfer1-1/+1
2010-03-08LDB:map - make LDB "signed-safe" on counter variables where appropriateMatthias Dieter Wallnöfer3-21/+28
2010-03-08s4:ldif_handlers - Change "unsigned int" to "uint32_t" which fits better hereMatthias Dieter Wallnöfer1-1/+1
2010-03-06s4:lib/registry/ldb.c - fix trailing whitespacesMatthias Dieter Wallnöfer1-6/+6
2010-03-06s4:registry library - fix up "reg_ldb_set_value"Matthias Dieter Wallnöfer1-9/+23
The previous logic was wrong since it tried to add empty data in some cases which always ended in an error. This problem should be fixed with the new logic.
2010-03-06s4:registry library - make "reg_ldb_pack/unpack_value" more robustMatthias Dieter Wallnöfer1-28/+35
This to prevent segmentation faults, wrong server inputs ecc.
2010-03-06s4:libregistry - change counters to be "unsigned"Matthias Dieter Wallnöfer10-40/+41
Also the s4 registry library has to have "unsigned" counters like the Windows one.
2010-03-06LDB:tools - change counters to be unsignedMatthias Dieter Wallnöfer6-32/+38
In most cases we do count LDB objects which are enumerated within the "unsigned" type. Therefore no need to use "signed" counters.