Matthieu Patou [Sat, 12 Dec 2009 15:33:53 +0000 (18:33 +0300)]
s4: upgradeprovision rename also when there is a mismatch on the case of name attribute
Renaming not only helps when name attribute is not here
it also helps when the case is not the good one. So
in order to avoid problem and have as much as possible similar provision
we should use the rename whenever a name difference appear.
Matthieu Patou [Sun, 29 Nov 2009 23:37:35 +0000 (02:37 +0300)]
s4: reorder action to permit old provision to be correctly upgraded
Endi Sukma Dewata [Tue, 8 Dec 2009 20:55:16 +0000 (14:55 -0600)]
s4:provision - Remap conflicting thumbnailPhoto and thumbnailLogo OID's.
Volker Lendecke [Mon, 14 Dec 2009 15:48:38 +0000 (16:48 +0100)]
s3: Allow up to 20480 entries in LookupSids, as mandated by the official IDL
Seen in the wild by putting >1000 users into BUILTIN\Users
Andrew Tridgell [Mon, 14 Dec 2009 10:53:40 +0000 (21:53 +1100)]
s4-dsdb: added REVEAL_INTERNALS flag to dsdb_module_search_handle_flags()
Andrew Tridgell [Mon, 14 Dec 2009 07:02:15 +0000 (18:02 +1100)]
s4-devel: support vampire_ad.sh with no initial smb.conf
Andrew Tridgell [Mon, 14 Dec 2009 06:54:04 +0000 (17:54 +1100)]
s4-loadparm: call reload_charcnv() also for a missing smb.conf
bin/net vampire with a missing smb.conf would segfault as the iconv
convenience pointer had not been setup.
Andrew Tridgell [Fri, 11 Dec 2009 06:33:32 +0000 (17:33 +1100)]
s4-dsdb: return a zero guid on error in samdb_result_guid()
Andrew Tridgell [Fri, 11 Dec 2009 03:39:33 +0000 (14:39 +1100)]
heimdal: work around differences between GNU and XSI strerror_r()
This is a fairly ugly workaround, but then again, strerror_r() is a
very ugly mess.
Andrew Tridgell [Thu, 10 Dec 2009 12:46:34 +0000 (23:46 +1100)]
s4-dsdb: use the reveal control to hide/show extended DN components
When reveal is set, then we show deleted linked attributes and all
linkked attribute components. When not set we show a normal extended
DN.
Andrew Tridgell [Thu, 10 Dec 2009 12:45:16 +0000 (23:45 +1100)]
s4-ldb: added new ldb_dn extended components for linked attributes
These will store linked attribute replication meta data
Andrew Tridgell [Thu, 10 Dec 2009 12:44:44 +0000 (23:44 +1100)]
s4-ldb: added a function to filter extended components of a ldb_dn
We need to be able to filter out components that should not be exposed
to users
Andrew Tridgell [Thu, 10 Dec 2009 12:44:05 +0000 (23:44 +1100)]
s4-ldb: added a new "reveal" control
This control will allow inspection of internal ldb values, which would
normally be stripped before being presented to users. The first use
will be stripping linked attribute meta data extended components.
Andrew Tridgell [Thu, 10 Dec 2009 11:45:36 +0000 (22:45 +1100)]
s4-ldb: sort the linearized extended DN by component name
This will make life easier when handling deleted linked attributes
Brian Lu [Mon, 14 Dec 2009 10:08:07 +0000 (11:08 +0100)]
librpc/ndr: avoid comparison_fn_t to fix the openchange build on solaris
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Matthieu Patou [Sun, 13 Dec 2009 15:44:02 +0000 (18:44 +0300)]
add ignore for autogenrated files as they are not used by s3
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Matthieu Patou [Sun, 13 Dec 2009 15:41:53 +0000 (18:41 +0300)]
torture: add new tests for dfsblobs
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Matthieu Patou [Sun, 13 Dec 2009 02:03:03 +0000 (05:03 +0300)]
idl: introduce new file: dfsblobs.idl
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Stefan Metzmacher [Mon, 14 Dec 2009 09:52:56 +0000 (10:52 +0100)]
librpc/ndr: add missing prototypes for relative_short functions
metze
Günther Deschner [Sat, 12 Dec 2009 01:52:41 +0000 (02:52 +0100)]
spoolss: fix spoolss_PrinterData size calculation.
Currently we were crashing in EnumPrinterDataEx when an e.g. an empty (NULL)
string for a separator file was returned.
Guenther
Günther Deschner [Sat, 12 Dec 2009 01:51:44 +0000 (02:51 +0100)]
spoolss: trivial fix for spoolss_FormInfo2 IDL.
Guenther
Günther Deschner [Sat, 12 Dec 2009 00:51:13 +0000 (01:51 +0100)]
s4-smbtorture: check whether a returned buffer size is a multiple of 4 in RPC-SPOOLSS.
This gives a good indication where our IDL (and the s3 spoolss implementation) is still wrong.
Guenther
Karolin Seeger [Mon, 14 Dec 2009 07:58:50 +0000 (08:58 +0100)]
s3:docs: Fix 'make manpages3'.
Karolin
Matthias Dieter Wallnöfer [Sun, 13 Dec 2009 15:13:34 +0000 (16:13 +0100)]
s4:"samdb_set_password_sid" - clean up created objects correctly
- We should clean up such "helper" objects created in this function to don't
have them around until "mem_ctx" is destroyed
- Remove a from my view pointless comment "This is a password set, not change"
since an external argument "user_change" decides this ("modify" or "(re)set")
Matthias Dieter Wallnöfer [Sat, 12 Dec 2009 16:59:05 +0000 (17:59 +0100)]
s4:operational LDB module - cosmetic - reorder an attribute list
This matches the default handling order in the "password_hash" module (it's nice
to have this consistent).
Volker Lendecke [Sat, 12 Dec 2009 15:58:31 +0000 (16:58 +0100)]
s3: Fix a very embarrassing build failure
Matthieu Patou [Thu, 10 Dec 2009 07:04:48 +0000 (10:04 +0300)]
pidl: Introduce new dirrective: relative_short
relative_short is like relative but instead of having the offset coded on 4 bytes
it's coded on 2 bytes. Such things happen in GET_DFS_REFERAL messages.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Matthieu Patou [Thu, 10 Dec 2009 07:04:48 +0000 (10:04 +0300)]
librpc/ndr: add support for relative_short pointers
relative_short is like relative but instead of having the offset coded on 4 bytes
it's coded on 2 bytes. Such things happen in GET_DFS_REFERAL messages.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Matthias Dieter Wallnöfer [Fri, 11 Dec 2009 19:19:16 +0000 (20:19 +0100)]
s4:utils/oLschema2ldif.c - remove (now) unused variables
Björn Jacke [Fri, 11 Dec 2009 12:28:31 +0000 (13:28 +0100)]
s3:docs: document ldap deref
Karolin Seeger [Fri, 11 Dec 2009 10:56:26 +0000 (11:56 +0100)]
s3:loadparm: Change the "ldap deref" value "defualt" to "auto".
That's an established value. Default is a bit confusing.
Karolin
Matthias Dieter Wallnöfer [Fri, 11 Dec 2009 10:17:37 +0000 (11:17 +0100)]
s4:libnet/libnet_become_dc - Fix a small glitch in "becomeDC_drsuapi1_add_entry_send"
We shouldn't use the now uninitialised "status" variable anymore.
Björn Jacke [Thu, 10 Dec 2009 22:19:26 +0000 (23:19 +0100)]
s3: add prototype to fix the build
Günther Deschner [Thu, 10 Dec 2009 19:38:32 +0000 (20:38 +0100)]
s3-selftest: enable RPC-SAMBA3-WINREG.
Very strange we didn't run it before.
Guenther
Günther Deschner [Wed, 9 Dec 2009 14:49:46 +0000 (15:49 +0100)]
s3-rpcclient: allow to set offered size for enumkey command.
Guenther
Günther Deschner [Wed, 2 Dec 2009 23:35:03 +0000 (00:35 +0100)]
s4-smbtorture: add more spoolss_EnumPrinterKey tests for local NDR test.
Guenther
Björn Jacke [Thu, 10 Dec 2009 21:22:54 +0000 (22:22 +0100)]
s3: make own defines for ldap deref types
there are too many naming clashes between different ldap libs and ldb libs.
Let's simply make our own defines. The numbers are well standarized. This also
makes the default for "ldap deref" be "default" which means we won't tell the
ldap library what to do. Ѕo by default it's all up to what the server and our
libs think they should to do.
Björn Jacke [Thu, 10 Dec 2009 20:00:26 +0000 (21:00 +0100)]
s3: add LDAP Alias Dereferencing support
Thanks to Dan Cox for initial patch for 3.0. This closes #2350.
Günther Deschner [Thu, 10 Dec 2009 13:23:49 +0000 (14:23 +0100)]
spoolss: remove unused spoolss_StringArray2.
Guenther
Günther Deschner [Thu, 10 Dec 2009 13:21:12 +0000 (14:21 +0100)]
s4-smbtorture: fix and extend enum printerkey test.
Guenther
Günther Deschner [Thu, 10 Dec 2009 13:20:22 +0000 (14:20 +0100)]
s3-spoolss: fix enumprinter key client and server.
Guenther
Günther Deschner [Thu, 10 Dec 2009 13:27:33 +0000 (14:27 +0100)]
s3: re-run make samba3-idl.
Guenther
Günther Deschner [Thu, 10 Dec 2009 13:19:28 +0000 (14:19 +0100)]
spoolss: use spoolss_KeyNames in spoolss_EnumPrinterKey.
Guenther
Günther Deschner [Thu, 10 Dec 2009 13:18:46 +0000 (14:18 +0100)]
spoolss: add spoolss_KeyNames union.
Guenther
Karolin Seeger [Thu, 10 Dec 2009 13:57:08 +0000 (14:57 +0100)]
s3:packaging: Fix version detection.
Adapted from
728b01fc03.
Thanks god I was not root! It would have delted /*!
Karolin
Nadezhda Ivanova [Thu, 10 Dec 2009 13:49:53 +0000 (15:49 +0200)]
Implementation of sDRightsEffective, allowedAttributesEffective and allowedChildClassesEffective.
Behavior as documented in WSPP and tested. Needs optimisation though.
Karolin Seeger [Thu, 10 Dec 2009 13:26:58 +0000 (14:26 +0100)]
s3:packaging: Fix source dir.
Karolin
Karolin Seeger [Thu, 10 Dec 2009 13:08:43 +0000 (14:08 +0100)]
s3:packaging: Fix typo in comment.
Karolin
Andrew Tridgell [Thu, 10 Dec 2009 06:23:00 +0000 (17:23 +1100)]
s4-ldb: fixed 2 bugs in ldb_dn_set_extended_component()
The first bug was that setting a component twice could cause it to
appear twice in the DN.
The second bug was that using an existing ldb_val from a previous call
of ldb_dn_get_extended_component() as an argument to
ldb_dn_set_extended_component() would cause a valgrind error (as the
array the val pointed into will change).
Andrew Tridgell [Thu, 10 Dec 2009 03:48:56 +0000 (14:48 +1100)]
s4-libcli: GUID_from_ndr_blob() is strict about the blob size
We need to create a blob of the right length
Andrew Tridgell [Thu, 10 Dec 2009 03:36:12 +0000 (14:36 +1100)]
s4-schema: use GUID_to_ndr_blob()
Andrew Tridgell [Thu, 10 Dec 2009 03:35:42 +0000 (14:35 +1100)]
s4-schema: use binsearch.h
Andrew Tridgell [Thu, 10 Dec 2009 03:35:24 +0000 (14:35 +1100)]
util: added binsearch.h for binary array searches
This was moved from the schema_query code. It will now be used in more
than one place, so best to make it a library macro. I think there are
quite a few places that could benefit from this.
Andrew Tridgell [Thu, 10 Dec 2009 03:33:13 +0000 (14:33 +1100)]
s4-dsdb: use GUID_to_ndr_blob()
Andrew Tridgell [Thu, 10 Dec 2009 03:32:47 +0000 (14:32 +1100)]
s4-ldb: use GUID_to_ndr_blob()
Andrew Tridgell [Thu, 10 Dec 2009 03:32:29 +0000 (14:32 +1100)]
s4-libnet: use GUID_to_ndr_blob()
Andrew Tridgell [Thu, 10 Dec 2009 03:32:15 +0000 (14:32 +1100)]
s4-libcli: use GUID_to_ndr_blob()
Andrew Tridgell [Thu, 10 Dec 2009 03:31:52 +0000 (14:31 +1100)]
s4-server: use GUID_to_ndr_blob() in cldap and smb servers
Andrew Tridgell [Thu, 10 Dec 2009 03:31:13 +0000 (14:31 +1100)]
libcli: use GUID_to_ndr_blob()
Andrew Tridgell [Thu, 10 Dec 2009 03:30:46 +0000 (14:30 +1100)]
s3-ldb: use GUID_to_ndr_blob()
this also fixes an error in NTSTATUS handling
Andrew Tridgell [Thu, 10 Dec 2009 03:29:19 +0000 (14:29 +1100)]
libndr: added a GUID_to_ndr_blob() helper function
This can be used in many places that deal with GUIDs
Andrew Tridgell [Thu, 10 Dec 2009 00:27:09 +0000 (11:27 +1100)]
s4-ldb: simplify ldif handlers using new GUID functions
Andrew Tridgell [Thu, 10 Dec 2009 00:26:36 +0000 (11:26 +1100)]
s4-dsdb: simplify samdb_result_guid()
Andrew Tridgell [Thu, 10 Dec 2009 00:26:18 +0000 (11:26 +1100)]
s4-dsdb: simplify linked attributes code using GUID functions
Andrew Tridgell [Thu, 10 Dec 2009 00:25:44 +0000 (11:25 +1100)]
s4-dsdb: simplify schema code using new GUID functions
Andrew Tridgell [Thu, 10 Dec 2009 00:25:13 +0000 (11:25 +1100)]
s4-smb2: use new GUID function in smb2 negprot
Andrew Tridgell [Thu, 10 Dec 2009 00:24:54 +0000 (11:24 +1100)]
s4-libcli: use new GUID functions in libcli
Andrew Tridgell [Thu, 10 Dec 2009 00:23:20 +0000 (11:23 +1100)]
s4-dsdb: use GUID_from_ndr_blob() to create dsdb_get_extended_dn_guid()
Andrew Tridgell [Thu, 10 Dec 2009 00:22:20 +0000 (11:22 +1100)]
librpc: split out a separate GUID_from_ndr_blob() function
This will simplify many of the places that deal with NDR formatted
GUIDs
Günther Deschner [Wed, 9 Dec 2009 14:31:51 +0000 (15:31 +0100)]
s4-smbtorture: enhance spoolss_EnumPrinterKey torture test.
This demonstrates that s3 still does not have that call implemented correctly.
Guenther
Bo Yang [Thu, 10 Dec 2009 11:29:24 +0000 (19:29 +0800)]
s3: check for PAM_RADIO_TYPE.
Signed-off-by: Bo Yang <boyang@samba.org>
Bo Yang [Thu, 10 Dec 2009 09:20:03 +0000 (17:20 +0800)]
s3: Fix build on non-linux platform.
Signed-off-by: Bo Yang <boyang@samba.org>
Karolin Seeger [Wed, 9 Dec 2009 08:15:39 +0000 (09:15 +0100)]
WHATSNEW4: Samba 3.0 is not up-to-date.
Karolin
Andrew Tridgell [Wed, 9 Dec 2009 04:18:37 +0000 (15:18 +1100)]
s4-dsdb: added dsdb_functional_level() helper function
Andrew Tridgell [Wed, 9 Dec 2009 03:39:05 +0000 (14:39 +1100)]
s4-drs: ensure we fill in ncRoot_dn in getncchanges
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Andrew Tridgell [Wed, 9 Dec 2009 03:38:25 +0000 (14:38 +1100)]
s4-drs: use parentGUID attribute in getncchanges
Now that parentGUID is reliable again, use it instead
of building our own
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Andrew Tridgell [Wed, 9 Dec 2009 03:37:26 +0000 (14:37 +1100)]
s4-ldb: fixed nested searches inside ldb modules
We need to keep a search count in ltdb to allow for nesting
of searches inside a module
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Andrew Tridgell [Wed, 9 Dec 2009 03:36:50 +0000 (14:36 +1100)]
s4-ldb: added a missing ltdb_unlock_read()
Andrew Tridgell [Wed, 9 Dec 2009 03:35:46 +0000 (14:35 +1100)]
s4-dsdb: use dsdb_module_search_dn in repl_meta_data
This allows us to search below the current module. That
will be important when we start using the results of this
search to get the linked attributes meta data right
Andrew Tridgell [Wed, 9 Dec 2009 03:34:13 +0000 (14:34 +1100)]
s4-dsdb: fixed steal of parentGUID for empty msg
msg->elements could be NULL before we add parentGUID
Bo Yang [Thu, 10 Dec 2009 06:30:13 +0000 (14:30 +0800)]
s3: Give the user a chance to change password when password will expire soon.
Signed-off-by: Bo Yang <boyang@samba.org>
Björn Jacke [Wed, 9 Dec 2009 01:06:17 +0000 (02:06 +0100)]
s3: keep subsecond times on cross-filesystem moves and don't follow links
Björn Jacke [Wed, 9 Dec 2009 01:04:23 +0000 (02:04 +0100)]
s3:configure: check for lutimes, futimes and futimens
Andrew Bartlett [Wed, 9 Dec 2009 00:53:45 +0000 (11:53 +1100)]
Merge commit 'origin/master' into abartlet-devel
Andrew Bartlett [Wed, 9 Dec 2009 00:52:41 +0000 (11:52 +1100)]
s4: On the way to alpha11
Björn Jacke [Tue, 8 Dec 2009 20:32:51 +0000 (21:32 +0100)]
s3:doc: make dos filetimes description less contradictory
Björn Jacke [Tue, 8 Dec 2009 20:13:19 +0000 (21:13 +0100)]
s3: make sys_posix_fallocate more generic
this is in preparation for other preallocation methods to be introduced.
Günther Deschner [Tue, 8 Dec 2009 13:46:10 +0000 (14:46 +0100)]
s3-spoolss: use SPOOLSS_ARCHITECTURE_ALL in driver enum server code.
Guenther
Günther Deschner [Tue, 1 Dec 2009 23:59:21 +0000 (00:59 +0100)]
spoolss: add more spoolss architectures to IDL.
Guenther
Andrew Bartlett [Tue, 8 Dec 2009 03:12:19 +0000 (14:12 +1100)]
This is alpha10
Andrew Bartlett [Tue, 8 Dec 2009 03:11:45 +0000 (14:11 +1100)]
A WHATSNEW for alpha10
Stefan Metzmacher [Tue, 8 Dec 2009 11:53:51 +0000 (12:53 +0100)]
s4:selftest: skip SMB2-ACLS for now
metze
Stefan Metzmacher [Tue, 8 Dec 2009 10:52:25 +0000 (11:52 +0100)]
s4:selftest: run RAW-STREAMS again
metze
Stefan Metzmacher [Tue, 8 Dec 2009 10:47:06 +0000 (11:47 +0100)]
RAW-STREAMS: convert failing tests to torture api
This is needed as we want to mark failing tests as
known failures.
metze
Günther Deschner [Mon, 7 Dec 2009 17:55:08 +0000 (18:55 +0100)]
spoolss: fix spoolss_DriverInfo8 IDL.
found by RPC-SPOOLSS torture teset.
Guenther
Günther Deschner [Mon, 7 Dec 2009 18:26:45 +0000 (19:26 +0100)]
s4-smbtorture: make level 8 the reference for PrinterDriverEnum test.
Guenther
Günther Deschner [Mon, 7 Dec 2009 15:19:26 +0000 (16:19 +0100)]
s3-spoolss: cleanup _spoolss_EnumPrinterDrivers().
Guenther
Günther Deschner [Mon, 7 Dec 2009 15:18:55 +0000 (16:18 +0100)]
s3-spoolss: remove unused architecture from fill_printer_driver_info1().
Guenther
Günther Deschner [Thu, 3 Dec 2009 18:42:22 +0000 (19:42 +0100)]
s3-spoolss: remove ridiculous amount of duplicate driver code.
Guenther
Günther Deschner [Thu, 3 Dec 2009 18:11:53 +0000 (19:11 +0100)]
s3-spoolss: fully support level 8 drivers.
Guenther