1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

2688 Commits

Author SHA1 Message Date
Jelmer Vernooij
71db46ea66 r3586: Fix some of the issues with the module init functions.
Both subsystems and modules can now have init functions, which can be
specified in .mk files (INIT_FUNCTION = ...)

The build system will define :
 - SUBSYSTEM_init_static_modules that calls the init functions of all statically compiled modules. Failing to load will generate an error which is not fatal
 - BINARY_init_subsystems that calls the init functions (if defined) for the subsystems the binary depends on

This removes the hack with the "static bool Initialised = " and the
"lazy_init" functions
(This used to be commit 7a8244761b)
2007-10-10 13:05:36 -05:00
Stefan Metzmacher
b012ab557b r3585: check sscanf return code
metze
(This used to be commit 9701abfa3a)
2007-10-10 13:05:35 -05:00
Stefan Metzmacher
e5c8e21129 r3584: fix referral handling
metze
(This used to be commit 4868f1ea85)
2007-10-10 13:05:35 -05:00
Stefan Metzmacher
8408b3428d r3583: - seperate the ldap client code and the ldap parsing code
(vl: we should only sync the parsing code with trunk)

- use hierachical talloc in the ldap client code

metze
(This used to be commit 1e9c0b68ca)
2007-10-10 13:05:35 -05:00
Stefan Metzmacher
eee5cc3b9a r3582: more gcc-4.0 signedness fixes
metze
(This used to be commit 07405f1c67)
2007-10-10 13:05:35 -05:00
Stefan Metzmacher
81f6d0b015 r3581: fix some signedness warnings with gcc-4.0
(there some callers to be fixed later)

metze
(This used to be commit dfb062c63c)
2007-10-10 13:05:35 -05:00
Andrew Tridgell
f458460842 r3580: - on file overwrite in ntcreatex we need to replace the file permissions.
- pvfs now passes BASE-OPENATTR

- pvfs also passes the BASE-DEFER_OPEN test, but it is not a well
  formed test for regular running so I am removing it from the list of
  tests to run in test_posix.sh (the test is covered better by RAW-MUX
  anyway)
(This used to be commit cb76bd218e)
2007-10-10 13:05:35 -05:00
Andrew Tridgell
481bba9e7f r3579: with the gcc warning flag from abartlet we don't need sys_strftime()
(This used to be commit 041f77b6a1)
2007-10-10 13:05:34 -05:00
Andrew Tridgell
800212bc12 r3578: a couple of include changes that should help with FreeBSD
(This used to be commit d8c4a660a0)
2007-10-10 13:05:33 -05:00
Stefan Metzmacher
6c3a5b30e9 r3577: add a torture_join_domain_ads_dc() function,
which will join as a w2k dc joins a ads domain

(this is currently not fully implmented,
 I just have listed the steps we need to do)

metze
(This used to be commit 29cd3d20e3)
2007-10-10 13:05:33 -05:00
Andrew Tridgell
44b5e5a580 r3576: don't consider short share delay timeouts to be an error, so we can
run test_posix.sh in a reaonable time by using posix:sharedelay=100000

this still tests correct multiplex behaviour
(This used to be commit 64a6db5b02)
2007-10-10 13:05:33 -05:00
Andrew Tridgell
b5acd1963a r3575: fixed attribute normalisation in xattr code. RAW-SEARCH now passes again.
(This used to be commit 66bdc6e78c)
2007-10-10 13:05:33 -05:00
Andrew Tridgell
a9158e0d47 r3574: the RAW-OPEN test changes broke a couple of the other tests. This
fixes most of them, although RAW-SEARCH still fails (due to an
interaction with the new xattr code)
(This used to be commit 09b4652b40)
2007-10-10 13:05:33 -05:00
Andrew Tridgell
439c1524fb r3573: added trans2open support to smbd and pvfs, and fine-tuned the open->generic ntvfs mapping code.
(This used to be commit ed844192d7)
2007-10-10 13:05:33 -05:00
Andrew Bartlett
4c06ac06a1 r3572: Thanks to tridge for his patience with my build breakage.
This concludes the proper fixes.

Andrew Bartlett
(This used to be commit c1d025793f)
2007-10-10 13:05:33 -05:00
Andrew Tridgell
e1f38d8138 r3571: rough guesses at what abartlet really wanted to do in his last commit
(which I suspect was missing some pieces)

this at least fixes the build so i can keep going on pvfs. Please review/fix Andrew.
(This used to be commit bffd18d09d)
2007-10-10 13:05:32 -05:00
Andrew Bartlett
ac29f51936 r3570: Export the user's group list from ntlm_auth, via a new command 'UG'
(user groups).  The form of this is not final, but is this should be a
discussion point with the squid team.

Andrew Bartlett
(This used to be commit cbb0c67d06)
2007-10-10 13:05:32 -05:00
Andrew Bartlett
ed277bb89e r3565: Move PAC parsing into the session_info generation, and out of the
basic krb5 request path.

The idea is that we should not do the extra work, if we are not going
to use the results.

Andrew Bartlett
(This used to be commit 13a2a9e326)
2007-10-10 13:05:32 -05:00
Andrew Bartlett
0af3429b85 r3558: We don't seem to need these as [public] any more.
Andrew Bartlett
(This used to be commit f1d0bb409a)
2007-10-10 13:05:32 -05:00
Andrew Bartlett
dc73064bc5 r3557: Use a switch, not a series of if/else if statements.
Andrew Bartlett
(This used to be commit fb7bc73f58)
2007-10-10 13:05:32 -05:00
Andrew Bartlett
6e3b0a0378 r3556: Remove --enable-krb5developer and --enable-gtkdeveloper, as the new
modular headers confine the warnings, and everwhere else we need them.

Use the gcc option to suppress the silly strftime warning.

Andrew Bartlett
(This used to be commit 0bf3c24590)
2007-10-10 13:05:32 -05:00
Andrew Bartlett
9ced859ac8 r3555: Fix auth_winbind to work with the new auth_util conversion code.
Andrew Bartlett
(This used to be commit 3215f1c6ce)
2007-10-10 13:05:32 -05:00
Andrew Bartlett
2b250bf7fd r3554: Use the new talloc_reference changes to simply the conversion of
returned validation information into the server_info struct.

Also allow for easier expansion to different variations on validation
levels.

Andrew Bartlett
(This used to be commit 316b74029c)
2007-10-10 13:05:31 -05:00
Andrew Bartlett
438a54b8b4 r3553: Allow talloc_reference to take a NULL pointer for the "ptr" argument.
This allows potentially NULL pointers to be referenced, without an if ()
for every use.  (previously, it would segfault).

Update doco, and allow talloc_unlink to match.

Andrew Bartlett
(This used to be commit 59757c7f9d)
2007-10-10 13:05:31 -05:00
Andrew Tridgell
8a5c9c2841 r3552: fixed sense of ACL test
(This used to be commit 630af28a0f)
2007-10-10 13:05:31 -05:00
Andrew Tridgell
b875cdf5db r3551: these utils need system/filesys.h
(This used to be commit 1b945f9f4b)
2007-10-10 13:05:31 -05:00
Andrew Tridgell
d8ddb03e90 r3550: fixed initial attribute on file create (inlusion of FILE_ATTRIBUTE_ARCHIVE)
(This used to be commit b07feaafd1)
2007-10-10 13:05:31 -05:00
Andrew Tridgell
12f4a44cf5 r3549: added support for DOS extended attribute lists (name/value pairs)
stored in posix xattrs
(This used to be commit bad6a88371)
2007-10-10 13:05:31 -05:00
Andrew Tridgell
2b4e716f7a r3548: removed extra net/if.h include
(This used to be commit 1551f211d9)
2007-10-10 13:05:31 -05:00
Andrew Tridgell
a9ecd7a575 r3547: fixed waitpid in fcntl_lock.c (thanks to jbm for pointing this out)
(This used to be commit 864a142409)
2007-10-10 13:05:31 -05:00
Andrew Tridgell
3a7eff64f2 r3546: including includes.h twice causes gcc 3.4 to crash with pch
(This used to be commit 51c1c2af68)
2007-10-10 13:05:30 -05:00
Andrew Tridgell
9fe5fa11d6 r3545: initial support for using extended attributes to hold extended dos attributes of files.
I decided to use IDL/NDR to encode the attribute, as it gives us a
simple way to describe and extend the saved attributes.

The xattr code needs to hook into quite a few more places in the pvfs
code, but this at least gets the basics done. I will start encoding
alternate data streams streams, DOS EAs etc soon using the same basic
mechanism.

I'll probably stick to "version 1" for the xattr.idl for quite a while
even though it will be changing, as I don't expect anyone to be
deploying this in production just yet. Once we have production users
we will need to keep compatibility by supporting all the old version
numbers in xattr.idl.
(This used to be commit c54253ed1b)
2007-10-10 13:05:30 -05:00
Andrew Tridgell
0a8dff9e47 r3544: fixed some #include lines to make them more consistent
(This used to be commit a1a0118bd3)
2007-10-10 13:05:30 -05:00
Andrew Tridgell
e8010adffe r3543: fixed some #include lines to make them more consistent, and fixed
conditional compilation of xattr client code
(This used to be commit 321fb06a62)
2007-10-10 13:05:30 -05:00
Andrew Bartlett
ba8b9d49cd r3542: Re-indent, and fix a use-after-free by doing the talloc_destroy just a
little later.

Andrew Bartlett
(This used to be commit b7c2a4fc34)
2007-10-10 13:05:30 -05:00
Andrew Bartlett
c772c75400 r3541: Add support (to be verified with the squid team) for the Squid 3.0
multiplexed helper system.

This system prefixes every request with a number, and we maintian a
state machine for each of these integers.  This means that we can have
multiple outstanding challenges, without the overhead of a whole
ntlm_auth process.

In future, the actual password check will also be async.

Andrew Bartlett
(This used to be commit 9ea34abce3)
2007-10-10 13:05:30 -05:00
Andrew Tridgell
1d97e7b9d8 r3540: added testing of SMBntcancel in the open/open/close mux
testing. Interestingly, w2k3 does not allow the cancel of an
outstanding async open request, whereas it does allow the cancel of an
outstanding async lock request. To support this I have changed the
pvfs_wait interface to provide a enum on why the event is happening,
so the callback can decide what to do.
(This used to be commit f23d6a2800)
2007-10-10 13:05:30 -05:00
Andrew Tridgell
80eef3ea66 r3539: much nicer async open delay code.
The previous code didn't handle the case where the file got renamed or
deleted while waiting for the sharing violation delay. To handle this
we need to make the 2nd open a full open call, including the name
resolve call etc. Luckily this simplifies the logic.

I also expanded the RAW-MUX test to include the case where we do
open/open/open/close/close, with the 3rd open async, and that open
gets retried after both the first close and the 2nd close, with the
first retry failing and the 2nd retry working. The tests the "async
reply after a async reply" logic in pvfs_open().
(This used to be commit eded2ad9c9)
2007-10-10 13:05:29 -05:00
Jelmer Vernooij
96ffc6d945 r3536: Some minor IDL updates/fixes/additions
(This used to be commit 6fab01df00)
2007-10-10 13:05:29 -05:00
Andrew Tridgell
b2617daeb6 r3532: make sharing violation delay in pvfs configurable with "posix:sharedelay = usecs"
(This used to be commit c475877649)
2007-10-10 13:05:29 -05:00
Andrew Tridgell
39cd0639e9 r3531: add support for RAW_OPEN_MKNEW, RAW_OPEN_CREATE and RAW_OPEN_CTEMP in pvfs
(This used to be commit 1d2f0a55c1)
2007-10-10 13:05:29 -05:00
Andrew Tridgell
8fa7f264c6 r3530: make sure we match ntvfs_async_state_pop() with ntvfs_async_state_push()
(This used to be commit 730ae0600e)
2007-10-10 13:05:29 -05:00
Andrew Tridgell
f71a4941f0 r3529: fixed signing support for SMBntcancel requests (no reply means seq
number rises by 1, not 2)
(This used to be commit 201ff734d4)
2007-10-10 13:05:29 -05:00
Andrew Tridgell
c870ae8b89 r3528: added support for the SMBntcancel() operation, which cancels any
outstanding async operation (triggering an immediate timeout).

pvfs now passes the RAW-MUX test
(This used to be commit 3423e2f414)
2007-10-10 13:05:28 -05:00
Stefan Metzmacher
92cac50045 r3527: I hate compiler warnings...
metze
(This used to be commit d264aacfd5)
2007-10-10 13:05:28 -05:00
Andrew Bartlett
7d4809f5af r3524: Remove unused variable.
Andrew Bartlett
(This used to be commit a9f57319b8)
2007-10-10 13:05:28 -05:00
Andrew Tridgell
252e010abf r3523: removed a useless level 0 DEBUG()
(This used to be commit b36967466f)
2007-10-10 13:05:28 -05:00
Andrew Tridgell
00a1262f89 r3522: added async support to most of the ntvfs_map_*() functions, allowing functions like
SMBopenx, SMBread and SMBwrite to be performed async
(This used to be commit 9e80eb18ae)
2007-10-10 13:05:28 -05:00
Tim Potter
500ce03f7c r3521: Collect printer driver names in EnumPrinterDrivers.
(This used to be commit 86f54db1ef)
2007-10-10 13:05:28 -05:00
Andrew Tridgell
d4f667c377 r3520: minor portability fix (for struct timeval)
(This used to be commit ea1ad5897d)
2007-10-10 13:05:28 -05:00