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

54653 Commits

Author SHA1 Message Date
Günther Deschner
c5415e7e09 spoolss: the flags in spoolss_SetPrinterInfo1 are in fact spoolss_PrinterAttributes.
Guenther
2009-07-03 22:05:29 +02:00
Günther Deschner
bee0421f4c s3-spoolss: implement _spoolss_AddPrinter.
Guenther
2009-07-03 22:05:21 +02:00
Günther Deschner
80b62f579f spoolss: fill in spoolss_AddPrinter IDL.
Guenther
2009-07-03 22:05:10 +02:00
Björn Jacke
e9fc7c5e15 heimdal: don't include <ifaddrs.h> without knowing it's there
this is 73dbbe0d54 re-added. abartlet, please pick this to lorikeet.
2009-07-03 19:13:08 +02:00
Björn Jacke
cdf025f012 tdb: fix define of tdbdir when srcdir != "." 2009-07-03 18:24:42 +02:00
Simo Sorce
7119241c0d Sort the signature files 2009-07-03 08:45:30 -04:00
Simo Sorce
30b2014a01 Expose functions need by backend writers
move publicly needed structures and functions in the public header.
Stop installing internal headers.
Update the signature and exports files with the new exposed
function.
2009-07-03 08:45:30 -04:00
Simo Sorce
2738178d13 Restore ABI compatibility for talloc. 2009-07-03 08:45:29 -04:00
Björn Jacke
b54e48b830 s3:configure: fix syntax error in avahi configure test 2009-07-03 14:26:28 +02:00
Jelmer Vernooij
fa453d944d s4: Don't install epdump, since it no longer exists. 2009-07-03 13:12:08 +02:00
Michael Adam
914fa629f2 Revert "[s3]pidfile_create: use check is_default_dyn_CONFIGFILE() since we have it."
This reverts commit 1d3dcd1e420104c23769b691d0b8b7958d5c58a7.

This fixes Bug #6531 (Pid File creation.)

Usually, I would extend is_default_dyn_XYZ() so that it returns true
when dyn_XYZ has not been set yet or when its value is equal to the
compiled in default value XZY. But this would have a change in effect
in popt_common and torture.c: is_default_dyn_CONFIGFILE() is used
there to check whether the config file should be overwritten by the
contents of the environment variable SMB_CONF_PATH. Currently this
is only done when set_dyn_CONFIGFILE() had _not_ previously been called
at all, not even with the same value as the compiled in default.

Michael
2009-07-03 12:41:08 +02:00
Matt Kraai
dcf03b9d43 do not redefine _INT32 2009-07-03 11:50:53 +02:00
Matt Kraai
0b06aa2304 s3:configure: define _LARGEFILE64_SOURCE on QNX 2009-07-03 11:43:52 +02:00
Björn Jacke
06a9678aad s3:pam_smbpass: fix build error on some Linux distros
This addresses bug #6459.
2009-07-03 09:34:21 +02:00
Jelmer Vernooij
c2295ec65b s4 docs: Git has revision SHA's, not numbers. 2009-07-03 00:59:34 +02:00
Jelmer Vernooij
4d9a929f8d s4: Remove stub endpoint mapper script. 2009-07-03 00:59:30 +02:00
Jelmer Vernooij
e6fed3a879 TOSHARG: Fix typo: s/aquire/acquire/ 2009-07-03 00:58:56 +02:00
Jelmer Vernooij
b9cf441f82 pidl: Don't run compile tests inside the tree, won't work yet. 2009-07-03 00:58:48 +02:00
Stefan Metzmacher
909d42278a s3:smbd: add marshalling layer for SMB2 Lock support
metze
2009-07-02 22:25:49 +02:00
Stefan Metzmacher
c281638bc4 s4:libcli: move SMB2 lock flags to smb2_constants.h
metze
2009-07-02 22:25:49 +02:00
Stefan Metzmacher
bc957dc4eb s3:smbd: add marshalling layer for SMB2 Find (QueryDirectory) support
metze
2009-07-02 22:25:49 +02:00
Stefan Metzmacher
74860465ac s3:smbd: add marshalling layer for SMB2 Break support (SMB 2.002 only)
metze
2009-07-02 22:25:49 +02:00
Stefan Metzmacher
d37709d38b s3:smbd: add marshalling layer for SMB2 SetInfo support
metze
2009-07-02 22:25:49 +02:00
Stefan Metzmacher
1df9cb6bc9 s3:smbd: add marshalling layer for SMB2 GetInfo support
metze
2009-07-02 22:25:48 +02:00
Günther Deschner
c4416684f1 spoolss: the flags in spoolss_PrinterInfo1 are in fact spoolss_PrinterAttributes.
Guenther
2009-07-02 22:00:42 +02:00
Günther Deschner
f729abaa94 s4-smbtorture: fix getjob test in RPC-SPOOLSS.
Guenther
2009-07-02 22:00:41 +02:00
Günther Deschner
a45ec4db73 doserrors: print out some more werrors.
Guenther
2009-07-02 22:00:41 +02:00
Stefan Metzmacher
f1dbd58a99 talloc: change TALLOC_MAGIC for version 2.0.0
metze
2009-07-02 23:18:42 +10:00
Andrew Tridgell
0fcd465340 show attribute values in sorted order to make comparison easier 2009-07-02 23:18:41 +10:00
Stefan Metzmacher
d49a0e5f7d s3:smbd: add support for SMB2 Notify
metze
2009-07-02 09:13:56 +02:00
Stefan Metzmacher
b804c30856 s3:smbd: make change_notify_reply() more generic and hide send_nt_replies() behind a callback
This prepares change notify support for SMB2.

metze
2009-07-02 09:11:01 +02:00
Stefan Metzmacher
ef96e8c958 s3:smbd: simplify the notify code a bit and always reply via change_notify_reply() -> send_nt_replies()
metze
2009-07-02 09:11:00 +02:00
Stefan Metzmacher
8b94eb6cc8 s3:smbd: push nttrans and trans2 responses with no data to the client
For sync replies it's not a problem, as construct_reply() will send
the response, but for async replies we would not send the reply to the client.
Currently the notify code works arround this manually, so I assume
we didn't have a bug here. But the next commits will simplify
the notify code.

metze
2009-07-02 09:10:59 +02:00
Stefan Metzmacher
d73bc83c19 s3:smbd: restore the 3.0.x bahavior of send_nt_replies()
We should also set the error code, when we return no parameters or data.

metze
2009-07-02 09:10:59 +02:00
Stefan Metzmacher
f62a331045 s3:smbd: move global notify_changes_by_mid to smbd_server_connection
metze
2009-07-02 09:10:58 +02:00
Stefan Metzmacher
99c1e4f19a s3:smbd: allow the offset to the path being 0 in SMB2 create
metze
2009-07-02 09:10:57 +02:00
Andrew Tridgell
d47bb0a96c we can't use the unique index code for samAccountName
Using ldb unique indexes for samAccountName doesn't work with DRS as
the other DC may send us a deleted record (tombstone record), which
has the same samAccountName as an existing record. That would then
create two records in the same partition with the same samAccountName.

So we needed to put back the logic in samldb.c which explicitly
checked whether a samAccountName already exists on add
2009-07-02 15:57:30 +10:00
Andrew Tridgell
0aec87454b decrypt all objects in a DRS record, not just the first one
We found this as an object came across from w2k3 with zero values,
which caused a segv when we tried to decrypt the first value
2009-07-02 15:33:01 +10:00
Andrew Tridgell
acfb01a8f6 change talloc to 2.0.0
This is needed to prevent samba3 and samba4 from using an ABI
incompatible system version of talloc

See ongoing discussion on the samba-technical mailing list
2009-07-02 15:19:40 +10:00
Andrew Tridgell
465b879902 Changed ldb.ERR_NO_SUCH_OBJECT to LDB_ERR_NO_SUCH_OBJECT.
The LDB_ERR_NO_SUCH_OBJECT varient is not a defined variable. This
should improve error handling in our python code on some
systems. Unfortunately it still doesn't work on mine. I need to trap
Jelmer somewhere where he can't escape some day and force him to
divulge the deep druid secrets of python exception handling ....
2009-07-02 14:55:38 +10:00
Andrew Tridgell
ae8515d31b fixed the pull of drs schema elements
The previous code incorrectly assumed that attributes such as 
subClassOf come over the wire as strings. In fact they come over as 32
bit integers which refer to goversIDs. We have to post-process these
as it sometimes happens that a governsID comes over the wire before
the record that defines what it means.
2009-07-02 14:55:38 +10:00
Andrew Tridgell
865ca9be64 the settings structure needs to be initialised 2009-07-02 14:55:38 +10:00
Andrew Tridgell
0bdaa8b4ac LDB_ERR_INVALID_DN_SYNTAX doesn't exist ...
The correct name is ldb.ERR_INVALID_DN_SYNTAX
2009-07-02 14:55:38 +10:00
Andrew Bartlett
d7af80fc2e s4:param use talloc_unlink() to free iconv context holding references 2009-07-02 14:34:07 +10:00
Matthias Dieter Wallnöfer
5049f61f39 [SAMBA 4 directory] Changes "forceLogoff" and corrects the "subRefs"
- This changes the attribute "forceLogoff" to its' default
  values according to Windows Server 2003 R2
- Also this corrects the "subRefs" attribute of the base-DN which only refers
  to direct child partitions (and therefore not to the complete transitive closure)
2009-07-02 11:21:02 +10:00
Jeremy Allison
82b5fad8be Ensure we don't use delayed writes on POSIX opened files.
Don't remove pending writetime changes if no time changes
are sent in UNIX_BASIC infolevel.
Jeremy
2009-07-01 17:39:10 -07:00
Jeremy Allison
b971860e01 Fix bug #6520 time stamps - e.g. last mod time is not preserved when "unix extensions=yes" are set - and using latest cifs vfs client
Cancel out any pending "sticky" writes or "last write" changes when
doing a UNIX info level set.
Jeremy.
2009-07-01 16:58:14 -07:00
Stefan Metzmacher
a14efbadd5 s3:util: let parent_dirname() correctly return toplevel filenames
metze
2009-07-01 12:53:41 +02:00
Stefan Metzmacher
b292af0c38 s3:onefs_open: remove unused variable passed to parent_dirname()
metze
2009-07-01 12:53:41 +02:00
Stefan Metzmacher
c229239ea4 s3:smbd: remove unused variables passed to parent_dirname()
metze
2009-07-01 12:53:40 +02:00