summaryrefslogtreecommitdiff
path: root/source4/lib
AgeCommit message (Collapse)AuthorFilesLines
2008-01-18merged changes from v3-2-testAndrew Tridgell8-53/+18
(This used to be commit 7077df3e2e3f171532f6a5ac87d45201736c9c11)
2008-01-18merged tdb changes from ctdbAndrew Tridgell3-59/+49
(This used to be commit c54c087a19e36e0522eb4546c9425ae446f0628b)
2008-01-18registry: Use correct return values.Jelmer Vernooij7-32/+53
(This used to be commit 98ebdbe52fd615ea62a3caa17acfe8bb31b8f85d)
2008-01-18registry: Avoid mapping registry return codes: return the right value in the ↵Jelmer Vernooij3-3/+3
first place. (This used to be commit 434e4857cec17d6d9e8983e151c170eed59fc6d1)
2008-01-18When Windows attempts to create a new key, it looks for an available key nameAndrew Kroeger1-7/+13
starting with "New Key #1" and iterating up to "New Key #99" before giving up. ldb_open_key() calls reg_path_to_ldb() to build the appropriate dn from the key name. reg_path_to_ldb() was not catching the error returned by ldb_dn_add_base_fmt() due to the unescaped '#' character, causing the returned dn to be that of the parent key, not the potential new key. Additionally, Windows expects a return value of WERR_BADFILE when a key does not exist, but WERR_NOT_FOUND was being returned instead. Correcting the building of the dn and the providing the expected return value allows new key creation to succeed. When attempting to delete a key, Windows passes the complete path to the key, not just the name of the child key to be deleted. Using reg_path_to_ldb() to build the correct dn allows key deletion to succeed. (This used to be commit d57792d67b865ef43e7f21640b158862627f4b45)
2008-01-18registry: Improve error codes and update tests.Jelmer Vernooij6-20/+23
Rather than map the error returned by the registry to the correct error, return the correct error in the first place. Also deal with the fact that the right error code is now returned in a couple of places. (This used to be commit 1e31fcb8a097810a97e2d4bb1f243f1b34cc2415)
2008-01-18When Windows initially creates a new value, the value name is "New Value #1".Andrew Kroeger1-2/+22
The '#' character was causing problems, as it was not being escaped for the dn, but the failure returned by ldb_dn_add_child_fmt() was not being caught. This was causing the new value to be added on the parent key, not the current key. When attempting to delete the new value (now on the parent key) the same escaping error was returned by ldb_dn_add_child_fmt(), causing the delete to delete the key and not the value. When attempting to rename a value, Windows first tries to ensure the new name does not already exist. When a value does not exist, Windows expects a return value of WERR_BADFILE, but WERR_NOT_FOUND was being returned instead. Providing the WERR_BADFILE that Windows expects allows values to be renamed. (This used to be commit 94fb39cfd967455ce5a554720c1c7e6183f91056)
2008-01-18registry: Properly check return values from ldb_*() functions.Andrew Kroeger1-3/+3
There were a few cases left that attempted to detect errors from ldb_*() function calls using "(ret < 0)". As all LDB_* error codes are greater than zero, there was no chance any errors would be detected. Changed all such tests to use "(ret != LDB_SUCCESS)". (This used to be commit 0ed6f1b1628da5b922f02a5f9a6c60071b6277f2)
2008-01-18registry: Check for more specific LDB return codes, handle changing existing ↵Jelmer Vernooij1-6/+11
values better. (This used to be commit c8b22ef30c7fc0ccc15e9fc9a38fdc639fc4b976)
2008-01-17ldb_map objectClass munging: Don't hard-code 'extensibleObject'.Andrew Bartlett2-32/+52
This allows objectClass munging to be removed, or modified to not include adding an objectClass, or for that objectClass to be something different. Andrew Bartlett (This used to be commit ee93b4e2ee1dd1cd38bcf14b2bb62556a13cec4a)
2008-01-15Fix bug #5121 (unix passwd sync not working on a streams basedJeremy Allison2-0/+5
system). Jeremy. (lib/replace part of 545cd2139cfc9484b733693814d4724d37125942 metze) (This used to be commit 9cff25cce1d39460dbcab006a309bb2984969eed)
2008-01-15Add patches for bug #4866 from jiri sasek - Sun Microsystems - Prague Czech ↵Jeremy Allison2-0/+14
Republic <Jiri.Sasek@Sun.COM> - slightly modified - Jiri please check ! to allow Solaris to get passwords > 8 chars. Jeremy. (lib/replace part of 657bf8c3479d6192f269e3daef1517e77a9fa9cb metze) (This used to be commit 9f5c443972a09a70de7c8d6695b08c3730484c6c)
2008-01-15Fix bug 5055Volker Lendecke1-1/+1
(lib/replace part of 8bcd2df841bae63e7d58c35d4728b7d853471697 metze) (This used to be commit 8db9e196506f530c780d93e16da590566d16a407)
2008-01-15Add MAX_DNS_NAME_LENGTH, remove more pstrings.Jeremy Allison1-0/+4
Jeremy. (lib/replace part of a1725f4ff7ed375808c78ac661b539557748d0a5 metze) (This used to be commit db4eabf7cde1008a40a46e5c40a99e9a73cf3ff5)
2008-01-15Always define PATH_MAX. Makes code simpler (removesJeremy Allison1-0/+4
a bunch of #defines). Remove pstring from msdfs.c. Jeremy. (lib/replace part from e203ba22275320808bc11b17361ad1f2d5b0b897 metze) (This used to be commit ebc08d23f76ecffc90b1fe84c67fc7e6a4c4a6a3)
2008-01-15merged tdb from ctdb bzr treeAndrew Tridgell9-210/+471
(This used to be commit ed0c3a0f74c305b3b8554b05c3f97cf79db8296a)
2008-01-15ldap.py: Use constants where possible.Jelmer Vernooij1-14/+16
(This used to be commit 0885dc9f813e19cd6c28d8259eaeccf1e9b26210)
2008-01-15util: Move asn1 to lib/util to trim down the number of subsystems.Jelmer Vernooij3-0/+829
(This used to be commit 44e1cfd2d0ef62e4ee541cec00581a7151d951b3)
2008-01-14libreplace: Escape asterisk.Jelmer Vernooij1-1/+1
(This used to be commit df36c78549b40ee5e47d5cc79de2eb79f58c567a)
2008-01-13Try to fix the build on Tru64; avoid single quotes because they get expanded ↵Jelmer Vernooij1-1/+1
by perl in the build system. (This used to be commit bba8914af56cb161c275fbbdea2479d6f8bd703c)
2008-01-11ldb: Get rid of a warning.Kai Blin1-1/+1
(This used to be commit 37ed9fbeee37a1d86d6f6841eac5c1a0a85c1fcc)
2008-01-11ldap/python: Fix last tests.Jelmer Vernooij1-60/+53
(This used to be commit 874c00b1c1ef011c85226135144fafdc97d91116)
2008-01-11ldb/python: Support comparing Dn's to strings.Jelmer Vernooij3-0/+19
(This used to be commit 355878907970b396e4031426fda260d981c417eb)
2008-01-11python/ldap: Fix a couple more tests.Jelmer Vernooij1-18/+18
(This used to be commit 3a0d14f33532d88ace770d037c50375fe822dbb6)
2008-01-11Make a few more tests pass.Jelmer Vernooij1-129/+115
(This used to be commit 017aa400c7097cf6132f2bec969b9bbb5237f4d8)
2008-01-11python/ldap: Get further.Jelmer Vernooij1-2/+4
(This used to be commit 0c27eabbc40657493dc72f12b4fbdb07b0a3200f)
2008-01-11python/ldap: Fix some tests.Jelmer Vernooij1-9/+15
(This used to be commit 52f64afd4324eb185303ca192b88ccb632ee8587)
2008-01-11python: More work getting the LDAP test to compile again.Jelmer Vernooij1-36/+23
(This used to be commit d7a3f9612c40000cb265279598c09f6983305656)
2008-01-11python: Specify right arguments for the ldap test, fix some more calls.Jelmer Vernooij1-37/+30
(This used to be commit 74209fa6b097c6cd3c919dc6a67d998de12fa575)
2008-01-11ldap/python: Fix some more calls.Jelmer Vernooij1-74/+47
(This used to be commit 583881ae5a2a173abad9ba1ffd766b009d9ca8cd)
2008-01-11python/ldap: Support controls argument to ldb.search().Jelmer Vernooij4-55/+162
(This used to be commit 9eddc27f13fa2feb56d6b015e66d8c54081487da)
2008-01-11Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-localAndrew Bartlett4-35/+246
(This used to be commit 597f9fe17685fb7909269bc0af04bf4a040e2ad7)
2008-01-11Rework ldbsearch to avoid segfault when remote LDAP server returnsAndrew Bartlett1-12/+10
referrals. Andrew Bartlett (This used to be commit 8099facff99dab4de27ea6f857d0e8f5eaa3db5a)
2008-01-11Fix segfault when sorting LDAP replies on the client.Andrew Bartlett1-2/+2
Andrew Bartlett (This used to be commit c72c39326b263b3aacd178ddc2fc3b1a2906f3d3)
2008-01-11python/ldap: Wrap parse_control_strings().Jelmer Vernooij4-25/+114
(This used to be commit b27e5a68530c4fd6430cbb174b63f8ff2b6f4e53)
2008-01-11ldb/python: Allow comparing a MessageElement to a list or a singleton.Jelmer Vernooij3-10/+22
(This used to be commit 1ccbab81d79f83bb419104f2bbaf2ae7b368e90f)
2008-01-11ldb/python: Implement __len__ for MessageElement.Jelmer Vernooij4-0/+37
(This used to be commit a8f90ed34ce9341080b63c801ef54b82de42b8e6)
2008-01-11python/ldb: Add __getitem__ implementation for LdbMessageElement.Jelmer Vernooij4-0/+73
(This used to be commit e6498a0780dd31dfc623a69432004b606aeaccbe)
2008-01-10tdb: Add simple reimplementation of tdbdump in Python as an example of the ↵Jelmer Vernooij1-0/+12
tdb Python bindings. (This used to be commit 47d797f7885b1e7bcff724496ecb1990e8440eea)
2008-01-10r26701: ldb: Build and install python modules when possible.Jelmer Vernooij2-7/+34
(This used to be commit 7a66d0eff6e2300cc82b4c7585f9c45afcc851a4)
2008-01-10r26700: tdb: Build and install Python bindings when possible.Jelmer Vernooij4-42/+68
(This used to be commit 8d77ea379fef5ad4b2718bc8e0620304588c9239)
2008-01-07r26692: registry: Treat key and value names case-insensitively.Jelmer Vernooij1-0/+10
(This used to be commit 9fc5f098e01145db5b01efb0bf22cdddf0213d20)
2008-01-07r26689: registry: Return max_subkeynamelen, max_valnamelen and ↵Jelmer Vernooij13-44/+171
max_valbufsize in getkeyinfo(). (This used to be commit b06896d2378e536f5044dbe500a5232a89d6d0b5)
2008-01-07r26688: Fix listing remote predefined keys and subkeys. This fixes bug 3431.Jelmer Vernooij4-36/+64
(This used to be commit 846876ad32dc86fe7c367db084e76c670c61b389)
2008-01-06r26684: Trivial cleanup from Matthias Dieter Wallnöfer, from bug 5090Andrew Bartlett1-1/+1
Andrew Bartlett (This used to be commit 0016231edd514e8db620bafc44ce877fcac19ed9)
2008-01-06r26678: Check in auto-generated swig files.Tim Potter2-41/+45
(This used to be commit 62017f049bc0b0f311ba49d03084044faa5e6dcd)
2008-01-06r26677: Implement and test iter{keys,values,items} for tdb bindings.Tim Potter2-3/+32
Use tempfile.mkstemp() instead of os.tmpnam() in tests. (This used to be commit 5c3c131d174ba0f162c210d3e6ca30f2ed2a3ec0)
2008-01-05r26669: Janitorial: Remove uses of global_loadparm.Jelmer Vernooij1-3/+0
(This used to be commit 50c46160d997e0448f51ae09e0f3c79e8519fa41)
2008-01-05r26668: tdb/python: Fix default value of open_flags for tdb.Jelmer Vernooij2-1/+2
(This used to be commit aa438a2febc6562aa6f71505936d0872a6dcd17d)
2008-01-05r26665: registry: Fix tests on bigendian machines.Jelmer Vernooij1-2/+6
(This used to be commit bcd8f50f7952d1e502326f11ddfa8cfe8a982b1b)