1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-12 12:23:50 +03:00
Commit Graph

3554 Commits

Author SHA1 Message Date
Jelmer Vernooij
b3afde0f00 python: Add convenience function for getting command line loadparm context
and default to using system smb.conf.
2008-01-23 23:38:57 +01:00
Jelmer Vernooij
91d7ba5202 build: Remove support for DESCRIPTION setting that is now unused. 2008-01-22 18:49:51 +01:00
Jelmer Vernooij
676fd18fa2 dcerpc: Use manually written .pc files for dcerpc and ndr. 2008-01-22 18:36:14 +01:00
Jelmer Vernooij
5c64d4adaf registry: Use manually written .pc file. 2008-01-22 18:28:51 +01:00
Jelmer Vernooij
c8947fda23 ldb/talloc/tdb: Use manually written pc file. 2008-01-22 18:24:00 +01:00
Jelmer Vernooij
2fc26c0902 tdb: Add URL in pc file. 2008-01-22 18:14:12 +01:00
Jelmer Vernooij
da0952bdd6 ldb: Fix typo. 2008-01-22 17:34:44 +01:00
Jelmer Vernooij
9a5cc88b09 ldb: Increase version number to make it easier to create new Debian snapshots. 2008-01-22 17:13:39 +01:00
Stefan Metzmacher
d2ac8be28d libreplace: getpwent_r/getgrent_r on IRIX are similar to solaris but use size_t
metze
(cherry picked from commit 2f46091511)
2008-01-22 12:24:05 +01:00
Jelmer Vernooij
77b400764e 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.
2008-01-21 03:54:42 +01:00
Jelmer Vernooij
583ea85ae0 ldb: Fix building python modules against system-provided ldb. 2008-01-21 03:54:42 +01:00
Andrew Tridgell
7077df3e2e merged changes from v3-2-test 2008-01-18 15:45:22 +11:00
Andrew Tridgell
c54c087a19 merged tdb changes from ctdb 2008-01-18 15:33:57 +11:00
Jelmer Vernooij
98ebdbe52f registry: Use correct return values. 2008-01-18 03:42:00 +01:00
Jelmer Vernooij
434e4857ce registry: Avoid mapping registry return codes: return the right value in the first place. 2008-01-18 03:42:00 +01:00
Andrew Kroeger
d57792d67b 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.
2008-01-18 03:41:59 +01:00
Jelmer Vernooij
1e31fcb8a0 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.
2008-01-18 03:41:59 +01:00
Andrew Kroeger
94fb39cfd9 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.
2008-01-18 03:41:59 +01:00
Andrew Kroeger
0ed6f1b162 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)".
2008-01-18 03:41:59 +01:00
Jelmer Vernooij
c8b22ef30c registry: Check for more specific LDB return codes, handle changing existing values better. 2008-01-18 03:41:59 +01:00
Andrew Bartlett
ee93b4e2ee 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
2008-01-17 08:53:18 +11:00
Jeremy Allison
9cff25cce1 Fix bug #5121 (unix passwd sync not working on a streams based
system).
Jeremy.

(lib/replace part of 545cd2139c metze)
2008-01-15 14:27:12 +01:00
Jeremy Allison
9f5c443972 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 657bf8c347 metze)
2008-01-15 14:02:34 +01:00
Volker Lendecke
8db9e19650 Fix bug 5055
(lib/replace part of 8bcd2df841 metze)
2008-01-15 13:42:53 +01:00
Jeremy Allison
db4eabf7cd Add MAX_DNS_NAME_LENGTH, remove more pstrings.
Jeremy.

(lib/replace part of a1725f4ff7 metze)
2008-01-15 13:41:37 +01:00
Jeremy Allison
ebc08d23f7 Always define PATH_MAX. Makes code simpler (removes
a bunch of #defines). Remove pstring from msdfs.c.
Jeremy.

(lib/replace part from e203ba2227 metze)
2008-01-15 13:37:37 +01:00
Andrew Tridgell
ed0c3a0f74 merged tdb from ctdb bzr tree 2008-01-15 14:05:47 +11:00
Jelmer Vernooij
0885dc9f81 ldap.py: Use constants where possible. 2008-01-15 02:04:20 +01:00
Jelmer Vernooij
44e1cfd2d0 util: Move asn1 to lib/util to trim down the number of subsystems. 2008-01-15 01:04:38 +01:00
Jelmer Vernooij
df36c78549 libreplace: Escape asterisk. 2008-01-14 22:24:07 +01:00
Jelmer Vernooij
bba8914af5 Try to fix the build on Tru64; avoid single quotes because they get expanded by perl in the build system. 2008-01-13 04:46:11 +01:00
Kai Blin
37ed9fbeee ldb: Get rid of a warning. 2008-01-11 11:12:36 +01:00
Jelmer Vernooij
874c00b1c1 ldap/python: Fix last tests. 2008-01-11 04:06:00 +01:00
Jelmer Vernooij
3558789079 ldb/python: Support comparing Dn's to strings. 2008-01-11 04:05:41 +01:00
Jelmer Vernooij
3a0d14f335 python/ldap: Fix a couple more tests. 2008-01-11 03:27:27 +01:00
Jelmer Vernooij
017aa400c7 Make a few more tests pass. 2008-01-11 03:27:27 +01:00
Jelmer Vernooij
0c27eabbc4 python/ldap: Get further. 2008-01-11 03:27:27 +01:00
Jelmer Vernooij
52f64afd43 python/ldap: Fix some tests. 2008-01-11 03:27:27 +01:00
Jelmer Vernooij
d7a3f9612c python: More work getting the LDAP test to compile again. 2008-01-11 03:27:27 +01:00
Jelmer Vernooij
74209fa6b0 python: Specify right arguments for the ldap test, fix some more calls. 2008-01-11 03:27:26 +01:00
Jelmer Vernooij
583881ae5a ldap/python: Fix some more calls. 2008-01-11 03:27:26 +01:00
Jelmer Vernooij
9eddc27f13 python/ldap: Support controls argument to ldb.search(). 2008-01-11 03:26:45 +01:00
Andrew Bartlett
597f9fe176 Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local 2008-01-11 13:16:08 +11:00
Andrew Bartlett
8099facff9 Rework ldbsearch to avoid segfault when remote LDAP server returns
referrals.

Andrew Bartlett
2008-01-11 13:15:49 +11:00
Andrew Bartlett
c72c39326b Fix segfault when sorting LDAP replies on the client.
Andrew Bartlett
2008-01-11 12:47:51 +11:00
Jelmer Vernooij
b27e5a6853 python/ldap: Wrap parse_control_strings(). 2008-01-11 02:36:59 +01:00
Jelmer Vernooij
1ccbab81d7 ldb/python: Allow comparing a MessageElement to a list or a singleton. 2008-01-11 01:55:56 +01:00
Jelmer Vernooij
a8f90ed34c ldb/python: Implement __len__ for MessageElement. 2008-01-11 01:04:25 +01:00
Jelmer Vernooij
e6498a0780 python/ldb: Add __getitem__ implementation for LdbMessageElement. 2008-01-11 01:04:25 +01:00
Jelmer Vernooij
47d797f788 tdb: Add simple reimplementation of tdbdump in Python as an example of the tdb Python bindings. 2008-01-10 23:41:14 +01:00