1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

3549 Commits

Author SHA1 Message Date
Jelmer Vernooij
a6a8720025 tdb: Add URL in pc file.
(This used to be commit 2fc26c09026a0f2f74e5c7c86002e662b559d265)
2008-01-22 18:14:12 +01:00
Jelmer Vernooij
45eb6c5b8f ldb: Fix typo.
(This used to be commit da0952bdd6196b23200063cadd866b1d5551a65c)
2008-01-22 17:34:44 +01:00
Jelmer Vernooij
1697f553f1 ldb: Increase version number to make it easier to create new Debian snapshots.
(This used to be commit 9a5cc88b090125b45e61da1ea1c9ac52f5ff6ab2)
2008-01-22 17:13:39 +01:00
Stefan Metzmacher
adbbc8dcc6 libreplace: getpwent_r/getgrent_r on IRIX are similar to solaris but use size_t
metze
(cherry picked from commit 2f460915111066d79f5dc9b4ae4d003918d06852)
(This used to be commit d2ac8be28d3aff59eddbdc6189a255a34c10d502)
2008-01-22 12:24:05 +01:00
Jelmer Vernooij
03023c4f7d build: Demote a bunch of libraries to subsystems. This makes packaging easier and should also make it easier
to migrate to a new build system.
(This used to be commit 77b400764e3dadfa05407343af649ad9298cc085)
2008-01-21 03:54:42 +01:00
Jelmer Vernooij
203d2b10bd ldb: Fix building python modules against system-provided ldb.
(This used to be commit 583ea85ae04c0bc2e70ab2e595e05f76f65c3be1)
2008-01-21 03:54:42 +01:00
Andrew Tridgell
61a015a786 merged changes from v3-2-test
(This used to be commit 7077df3e2e3f171532f6a5ac87d45201736c9c11)
2008-01-18 15:45:22 +11:00
Andrew Tridgell
524d280ad0 merged tdb changes from ctdb
(This used to be commit c54c087a19e36e0522eb4546c9425ae446f0628b)
2008-01-18 15:33:57 +11:00
Jelmer Vernooij
55ad09a01b registry: Use correct return values.
(This used to be commit 98ebdbe52fd615ea62a3caa17acfe8bb31b8f85d)
2008-01-18 03:42:00 +01:00
Jelmer Vernooij
b5ba491012 registry: Avoid mapping registry return codes: return the right value in the first place.
(This used to be commit 434e4857cec17d6d9e8983e151c170eed59fc6d1)
2008-01-18 03:42:00 +01:00
Andrew Kroeger
e490415e2e When Windows attempts to create a new key, it looks for an available key name
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-18 03:41:59 +01:00
Jelmer Vernooij
85d60d2d09 registry: Improve error codes and update tests.
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-18 03:41:59 +01:00
Andrew Kroeger
4d8a60f617 When Windows initially creates a new value, the value name is "New Value #1".
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-18 03:41:59 +01:00
Andrew Kroeger
158a2eed33 registry: Properly check return values from ldb_*() functions.
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-18 03:41:59 +01:00
Jelmer Vernooij
73626c266c registry: Check for more specific LDB return codes, handle changing existing values better.
(This used to be commit c8b22ef30c7fc0ccc15e9fc9a38fdc639fc4b976)
2008-01-18 03:41:59 +01:00
Andrew Bartlett
d5fd15005c ldb_map objectClass munging: Don't hard-code 'extensibleObject'.
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-17 08:53:18 +11:00
Jeremy Allison
b1fcae7241 Fix bug #5121 (unix passwd sync not working on a streams based
system).
Jeremy.

(lib/replace part of 545cd2139cfc9484b733693814d4724d37125942 metze)
(This used to be commit 9cff25cce1d39460dbcab006a309bb2984969eed)
2008-01-15 14:27:12 +01:00
Jeremy Allison
645c6518d7 Add patches for bug #4866 from jiri sasek - Sun Microsystems - Prague Czech 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-15 14:02:34 +01:00
Volker Lendecke
bab53c5e53 Fix bug 5055
(lib/replace part of 8bcd2df841bae63e7d58c35d4728b7d853471697 metze)
(This used to be commit 8db9e196506f530c780d93e16da590566d16a407)
2008-01-15 13:42:53 +01:00
Jeremy Allison
0aed6d4125 Add MAX_DNS_NAME_LENGTH, remove more pstrings.
Jeremy.

(lib/replace part of a1725f4ff7ed375808c78ac661b539557748d0a5 metze)
(This used to be commit db4eabf7cde1008a40a46e5c40a99e9a73cf3ff5)
2008-01-15 13:41:37 +01:00
Jeremy Allison
50ba04f512 Always define PATH_MAX. Makes code simpler (removes
a bunch of #defines). Remove pstring from msdfs.c.
Jeremy.

(lib/replace part from e203ba22275320808bc11b17361ad1f2d5b0b897 metze)
(This used to be commit ebc08d23f76ecffc90b1fe84c67fc7e6a4c4a6a3)
2008-01-15 13:37:37 +01:00
Andrew Tridgell
9170998427 merged tdb from ctdb bzr tree
(This used to be commit ed0c3a0f74c305b3b8554b05c3f97cf79db8296a)
2008-01-15 14:05:47 +11:00
Jelmer Vernooij
341ee607b3 ldap.py: Use constants where possible.
(This used to be commit 0885dc9f813e19cd6c28d8259eaeccf1e9b26210)
2008-01-15 02:04:20 +01:00
Jelmer Vernooij
939edd0eb7 util: Move asn1 to lib/util to trim down the number of subsystems.
(This used to be commit 44e1cfd2d0ef62e4ee541cec00581a7151d951b3)
2008-01-15 01:04:38 +01:00
Jelmer Vernooij
2e02bb5289 libreplace: Escape asterisk.
(This used to be commit df36c78549b40ee5e47d5cc79de2eb79f58c567a)
2008-01-14 22:24:07 +01:00
Jelmer Vernooij
1e19c859a3 Try to fix the build on Tru64; avoid single quotes because they get expanded by perl in the build system.
(This used to be commit bba8914af56cb161c275fbbdea2479d6f8bd703c)
2008-01-13 04:46:11 +01:00
Kai Blin
28a06a1b25 ldb: Get rid of a warning.
(This used to be commit 37ed9fbeee37a1d86d6f6841eac5c1a0a85c1fcc)
2008-01-11 11:12:36 +01:00
Jelmer Vernooij
1534a4034b ldap/python: Fix last tests.
(This used to be commit 874c00b1c1ef011c85226135144fafdc97d91116)
2008-01-11 04:06:00 +01:00
Jelmer Vernooij
79d466c373 ldb/python: Support comparing Dn's to strings.
(This used to be commit 355878907970b396e4031426fda260d981c417eb)
2008-01-11 04:05:41 +01:00
Jelmer Vernooij
c01396dc24 python/ldap: Fix a couple more tests.
(This used to be commit 3a0d14f33532d88ace770d037c50375fe822dbb6)
2008-01-11 03:27:27 +01:00
Jelmer Vernooij
d2b96bbec0 Make a few more tests pass.
(This used to be commit 017aa400c7097cf6132f2bec969b9bbb5237f4d8)
2008-01-11 03:27:27 +01:00
Jelmer Vernooij
da56ee66b0 python/ldap: Get further.
(This used to be commit 0c27eabbc40657493dc72f12b4fbdb07b0a3200f)
2008-01-11 03:27:27 +01:00
Jelmer Vernooij
5967746c31 python/ldap: Fix some tests.
(This used to be commit 52f64afd4324eb185303ca192b88ccb632ee8587)
2008-01-11 03:27:27 +01:00
Jelmer Vernooij
b344508ca3 python: More work getting the LDAP test to compile again.
(This used to be commit d7a3f9612c40000cb265279598c09f6983305656)
2008-01-11 03:27:27 +01:00
Jelmer Vernooij
410e8f8681 python: Specify right arguments for the ldap test, fix some more calls.
(This used to be commit 74209fa6b097c6cd3c919dc6a67d998de12fa575)
2008-01-11 03:27:26 +01:00
Jelmer Vernooij
a785df0c0a ldap/python: Fix some more calls.
(This used to be commit 583881ae5a2a173abad9ba1ffd766b009d9ca8cd)
2008-01-11 03:27:26 +01:00
Jelmer Vernooij
1d8cdddcd0 python/ldap: Support controls argument to ldb.search().
(This used to be commit 9eddc27f13fa2feb56d6b015e66d8c54081487da)
2008-01-11 03:26:45 +01:00
Andrew Bartlett
6a875cc852 Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
(This used to be commit 597f9fe17685fb7909269bc0af04bf4a040e2ad7)
2008-01-11 13:16:08 +11:00
Andrew Bartlett
f5277a3e21 Rework ldbsearch to avoid segfault when remote LDAP server returns
referrals.

Andrew Bartlett
(This used to be commit 8099facff99dab4de27ea6f857d0e8f5eaa3db5a)
2008-01-11 13:15:49 +11:00
Andrew Bartlett
3dab82394e Fix segfault when sorting LDAP replies on the client.
Andrew Bartlett
(This used to be commit c72c39326b263b3aacd178ddc2fc3b1a2906f3d3)
2008-01-11 12:47:51 +11:00
Jelmer Vernooij
1f4838b8a3 python/ldap: Wrap parse_control_strings().
(This used to be commit b27e5a68530c4fd6430cbb174b63f8ff2b6f4e53)
2008-01-11 02:36:59 +01:00
Jelmer Vernooij
2466d2cc5e ldb/python: Allow comparing a MessageElement to a list or a singleton.
(This used to be commit 1ccbab81d79f83bb419104f2bbaf2ae7b368e90f)
2008-01-11 01:55:56 +01:00
Jelmer Vernooij
c3695026e1 ldb/python: Implement __len__ for MessageElement.
(This used to be commit a8f90ed34ce9341080b63c801ef54b82de42b8e6)
2008-01-11 01:04:25 +01:00
Jelmer Vernooij
9269db983d python/ldb: Add __getitem__ implementation for LdbMessageElement.
(This used to be commit e6498a0780dd31dfc623a69432004b606aeaccbe)
2008-01-11 01:04:25 +01:00
Jelmer Vernooij
6bdd1425b7 tdb: Add simple reimplementation of tdbdump in Python as an example of the tdb Python bindings.
(This used to be commit 47d797f7885b1e7bcff724496ecb1990e8440eea)
2008-01-10 23:41:14 +01:00
Jelmer Vernooij
fd39d2050c r26701: ldb: Build and install python modules when possible.
(This used to be commit 7a66d0eff6e2300cc82b4c7585f9c45afcc851a4)
2008-01-10 09:42:04 -06:00
Jelmer Vernooij
db5b0fcfb8 r26700: tdb: Build and install Python bindings when possible.
(This used to be commit 8d77ea379fef5ad4b2718bc8e0620304588c9239)
2008-01-10 09:21:11 -06:00
Jelmer Vernooij
83a7d865e4 r26692: registry: Treat key and value names case-insensitively.
(This used to be commit 9fc5f098e01145db5b01efb0bf22cdddf0213d20)
2008-01-07 17:48:02 -06:00
Jelmer Vernooij
47f6bbf8cf r26689: registry: Return max_subkeynamelen, max_valnamelen and max_valbufsize in getkeyinfo().
(This used to be commit b06896d2378e536f5044dbe500a5232a89d6d0b5)
2008-01-07 08:18:07 -06:00
Jelmer Vernooij
7f8276b06d r26688: Fix listing remote predefined keys and subkeys. This fixes bug 3431.
(This used to be commit 846876ad32dc86fe7c367db084e76c670c61b389)
2008-01-07 08:18:06 -06:00