1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-05 09:18:06 +03:00
Commit Graph

56841 Commits

Author SHA1 Message Date
Björn Jacke
19794ea541 Revert "s3:Makefile: fix libtdb dependencies with static build"
This reverts commit da15726630.
2009-10-04 02:20:20 +02:00
Björn Jacke
be348842f5 Revert "s3:Makefile: fix libwbclient dependencies with static build"
This reverts commit d7795f2afa.
2009-10-04 02:20:20 +02:00
Björn Jacke
eae87ffb3f Revert "s3:Makefile: fix libnetapi dependencies with static build"
This reverts commit 110897a057.
2009-10-04 02:20:20 +02:00
Volker Lendecke
d5bd2ec251 s3:winbind: use wb_fill_pwent in wb_getpwsid 2009-10-04 00:14:01 +02:00
Volker Lendecke
c83b80435b s3:winbind: No point in using strequal to detect a 0-length string 2009-10-04 00:14:01 +02:00
Matthias Dieter Wallnöfer
6a4efccb38 s4:ldap.py - commented out the UTF8 tests (and fixed some deletion DNs) 2009-10-03 16:54:19 +02:00
Volker Lendecke
2bd3994ac3 s3:winbind: use talloc_tos() instead of NULL in fillup_pw_field 2009-10-03 16:43:16 +02:00
Volker Lendecke
dc56d42aa3 s3:winbind: Fix a debug message 2009-10-03 16:39:10 +02:00
Matthias Dieter Wallnöfer
957cc4b8b6 s4:ldb_tdb - fix memory leaks 2009-10-03 15:49:40 +02:00
Matthias Dieter Wallnöfer
3393257920 heimdal kerberos - fix memory leak (free the plugin list always - not only in error cases) 2009-10-03 15:49:40 +02:00
Matthias Dieter Wallnöfer
24422fae24 s4:objectclass - Free unused memory from responses 2009-10-03 15:49:40 +02:00
Matthias Dieter Wallnöfer
cb143eafef s4:schema_inferiors - Fix wrong check 2009-10-03 15:49:40 +02:00
Volker Lendecke
70e1d816b3 s3: Make default_[static|shared]_modules a bit more readable 2009-10-03 14:39:51 +02:00
Matthias Dieter Wallnöfer
817208090d s4:ldb.h - add constant for LDAP EXOP password change
Also enhance some other comments.
2009-10-03 13:27:50 +02:00
Matthias Dieter Wallnöfer
02b289f65b heimdal - fix various warnings
- Shadowed variables
- "const" related warnings
- Parameter names which shadow function declarations
- Non-void functions which have no return value

(patch also ported upstream)
2009-10-03 13:20:52 +02:00
Matthias Dieter Wallnöfer
be938ab44b s4:ldap.py - add tests for valid parent and RDN 2009-10-03 12:48:51 +02:00
Andrew Bartlett
4bc9a39eed s4:dsdb Use possibleInferiors to restrict creation of child objects
This also uses systemPossibleInferiors when the 'relax' control is
specified, which is done by the provision.

Andrew Bartlett
2009-10-03 12:37:55 +02:00
Andrew Bartlett
0e028fcb7d s4:dsdb add systemPossibleInferiors to schema code
This allows us to figure out what the system can add, which will not
be in possibleInferiors due to the systemOnly flag.

Andrew Bartlett
2009-10-03 12:37:55 +02:00
Andrew Bartlett
f86beaaad9 s4:dsdb Add objectClass and RDN constraints to objectClass module
These additional constraints are applied, found by the Microsoft testsuite.

 - When the parent is not present, we now return 'NO_SUCH_OBJECT'.
 - Restrict the choice of RDN to the correct one per the schema
 - Honour the allowedChildClasses attribute from the parent's objectClass.

Andrew Bartlett
2009-10-03 12:37:49 +02:00
Andrew Tridgell
dac0346906 ndr: rebuild lsa IDL after recent change 2009-10-03 19:03:14 +10:00
Matthias Dieter Wallnöfer
2904f3378d s4:ldap.py - add a test for the "systemOnly" classes 2009-10-03 10:57:14 +02:00
Matthias Dieter Wallnöfer
90828cc702 s4:dsdb Don't allow creation of systemOnly objectclasses
(except as part of the provision, which specifies the 'relax' control)

Andrew Bartlett
2009-10-03 10:52:53 +02:00
Matthias Dieter Wallnöfer
deb268f7fa s4:rdn_name - fix up the rename operation
A function call was wrong ("ldb_request" rathen than "ldb_next_request").
2009-10-03 10:36:41 +02:00
Andrew Tridgell
e66fa4645a idl: some lsa vars are uint3264 2009-10-03 18:17:24 +10:00
Andrew Tridgell
f21fb4b395 pidl: added int3264 as a base type
This is the type used for a variable that is 32 bits for NDR32 and 64
bits for NDR64
2009-10-03 18:17:23 +10:00
Björn Jacke
777143ef53 s3:Makefile: minor clean up 2009-10-03 00:22:54 +02:00
Björn Jacke
110897a057 s3:Makefile: fix libnetapi dependencies with static build
analogical to previous libtalloc fix
2009-10-03 00:22:53 +02:00
Björn Jacke
fbb6571367 s3:Makefile: eventlogadm dependency cleanup
no need to link against popt lib
2009-10-03 00:22:53 +02:00
Björn Jacke
d7795f2afa s3:Makefile: fix libwbclient dependencies with static build
analogical to previous libtalloc fix
2009-10-03 00:22:53 +02:00
Björn Jacke
da15726630 s3:Makefile: fix libtdb dependencies with static build
analogical to previous libtalloc fix
2009-10-03 00:22:53 +02:00
Björn Jacke
b60d87c207 s3:Makefile: fix talloc dependencies with static build (2nd try)
When configure options --with-libtalloc=no --enable-shared-libs=no are used,
LIBTALLOC_TARGET stays empty. Actually LIBTALLOC_TARGET which is only used for
Makefile dependencies is obsolete as LIBTALLOC contains exactly the targets
that we depend on, libtalloc finally is the target to depend on.
2009-10-03 00:22:52 +02:00
Björn Jacke
99c4480674 Revert "s3:Makefile: fix talloc dependencies with static build"
This reverts commit 2af2334522.

a more correct way to fix the libtalloc dependencies follows
2009-10-03 00:22:52 +02:00
Björn Jacke
7124b4fbeb s3:Makefile: libsmbsharemode dependency cleanup
no need to link against ldap and krb5 libs
2009-10-03 00:22:52 +02:00
Björn Jacke
09936d52d2 s3:Makefile: net utility dependency cleanup
no need to link against iniparser lib
2009-10-03 00:22:52 +02:00
Björn Jacke
e1ebadb85b s3:configure: use --aѕ-needed linker option when supported
Based on a patch from Andreas Schneider but modified that --aѕ-needed is also
used when own libs are not build shared (--enable-shared). Also change order of
options so that user supplied LDFLAGS are put *after* the automatic --aѕ-needed
flag. This way it's pollible to force not use as-needed by setting LDFLAGS
environment variable to "-Wl,--no-as-needed".
2009-10-03 00:22:51 +02:00
Björn Jacke
2aacca010d s3:doc: add some detail about lanman auth parameter
add interesting detail: lm passwords will be removed from databaѕe with
lanman auth = no
2009-10-03 00:22:51 +02:00
Matthias Dieter Wallnöfer
2b9b232912 Revert "s4:LDB/LDAP - Re-allow renames"
This reverts commit 767fce6fcc.

Simo pointed out that the patch generates race conditions. We need to solve this
using a new control.
2009-10-03 00:14:05 +02:00
Matthias Dieter Wallnöfer
2ab27d78b0 s4:repl_meta_data - various
- Add more "talloc_free"s and right error values where needed
- Add a pre-lookup for entries before searching for metadata attribute
  (also suggested by TODO list)
- Now the most part of "ldap.py" works again
2009-10-02 23:28:52 +02:00
Jeremy Allison
6f22cd10ad Remove lots of duplicate code and move it into one
function vfs_stat_fsp(). Stops code looking at fsp->posix_open
except for exceptional circumstances.
Jeremy.
2009-10-02 13:45:38 -07:00
Matthias Dieter Wallnöfer
e218a529e0 s4:ldap.py - add a very special rename test (with invalid - empty RDN) 2009-10-02 21:27:46 +02:00
Matthias Dieter Wallnöfer
b45f56d4ba s4:ldb_ildap - Don't segfault on a empty RDN 2009-10-02 21:27:46 +02:00
Matthias Dieter Wallnöfer
767fce6fcc s4:LDB/LDAP - Re-allow renames
The main problem is that the "rdn_name" module launches on a rename request also
a modification one with the "special attributes" which can't be changed directly.
An introduced flag helps to bypass the restriction.
2009-10-02 21:27:46 +02:00
Jeremy Allison
1cebf2dad1 Missed one VFS_STAT -> VFS_LSTAT
Jeremy.
2009-10-02 11:07:17 -07:00
Jeremy Allison
1e322cf6a9 Fix more use of VFS_STAT when posix pathnames selected.
Jeremy.
2009-10-02 11:05:03 -07:00
Matthias Dieter Wallnöfer
a076d9fb59 s4:ldap.py - major enhancements
- Clean up and reorder it a bit
- Test which adds invalid attributes
- Test which makes sure that the 'distinguishedName' attribute cannot be modified
- Test which makes sure that we cannot change the RDN/'name' attribute through a modify request
2009-10-02 19:29:31 +02:00
Andrew Bartlett
2651603269 s4:ldb Don't allow RDN to be modified with an LDB modify message
Found by the Microsoft testsuite at the AD interop event.

Andrew Bartlett
2009-10-02 19:17:24 +02:00
Matthias Dieter Wallnöfer
d2ac4cbcee s4:rdn_name module - a normal error message should be enough for this failure
I don't think that we really want to have this error printed out on the server
console (stdout) since this hasn't serious results as DB or data corruption
and similar.
2009-10-02 19:17:23 +02:00
Andrew Bartlett
2f211daa47 s4:ldb Don't allow modifcation of distinguishedName 2009-10-02 18:57:08 +02:00
Andrew Bartlett
e6d8226745 s4:dsdb Return correct error on invalid attribute
This error per the Microsoft testsuite
2009-10-02 17:57:12 +02:00
Andrew Bartlett
ab9c232066 s4:dsdb Pass down the exact error code on failure in repl_meta_data 2009-10-02 17:49:46 +02:00